summaryrefslogtreecommitdiff
path: root/network/GeoIP
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2011-02-14 01:40:23 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-02-28 09:42:03 -0600
commite28f17b579603f84337d96da63626501a40dd7cb (patch)
tree45d6b2a2010069603e86a352856dd3a1bbc1c913 /network/GeoIP
parent806440bdde034ff5c7a56caee8ff5ec4b2c7f300 (diff)
downloadslackbuilds-e28f17b579603f84337d96da63626501a40dd7cb.tar.gz
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>
Diffstat (limited to 'network/GeoIP')
-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 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 \