From e28f17b579603f84337d96da63626501a40dd7cb Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Mon, 14 Feb 2011 01:40:23 -0600 Subject: 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 --- network/GeoIP/GeoIP.SlackBuild | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'network') diff --git a/network/GeoIP/GeoIP.SlackBuild b/network/GeoIP/GeoIP.SlackBuild index 3f451d533c..4e85800f1e 100644 --- a/network/GeoIP/GeoIP.SlackBuild +++ b/network/GeoIP/GeoIP.SlackBuild @@ -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 \ -- cgit v1.2.3