network/GeoIP: Install data file to /var/lib/GeoIP/

(and add a compat link to /usr/share/GeoIP/ so that nobody
knows the difference)   :-)

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Robby Workman 2011-02-14 01:40:23 -06:00
parent 806440bdde
commit e28f17b579

View file

@ -5,7 +5,7 @@
PRGNAM=GeoIP
VERSION=1.4.5
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
@ -66,13 +66,15 @@ make install DESTDIR=$PKG
# Let's not clobber config files
mv $PKG/etc/GeoIP.conf $PKG/etc/GeoIP.conf.new
# Other distros (and some other software) look in /var/lib/GeoIP/
mkdir -p $PKG/var/lib
mv $PKG/usr/share/GeoIP $PKG/var/lib
ln -s ../../var/lib/GeoIP $PKG/usr/share/GeoIP
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
( cd $PKG/usr/man || exit 1
find . -type f -exec gzip -9 {} \;
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)
find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \