aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network/GeoIP/GeoIP.SlackBuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/network/GeoIP/GeoIP.SlackBuild b/network/GeoIP/GeoIP.SlackBuild
index 3f451d533c552..4e85800f1e3ba 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 \