diff options
author | Yalla-One <yallaone@gmail.com> | 2010-05-13 00:35:25 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:35:25 +0200 |
commit | e4ff062e00bb49fdfd2334908e55cdabedfaecf5 (patch) | |
tree | 0dea4782ba6687eca034b311b7c87fe0338e1ae9 /network/GeoIP/GeoIP.SlackBuild | |
parent | efb2e4e956fd986c1b204f7e8b5b52f08f6c84a6 (diff) | |
download | slackbuilds-e4ff062e00bb49fdfd2334908e55cdabedfaecf5.tar.gz |
network/GeoIP: Updated for version 1.4.5
Diffstat (limited to 'network/GeoIP/GeoIP.SlackBuild')
-rw-r--r-- | network/GeoIP/GeoIP.SlackBuild | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/network/GeoIP/GeoIP.SlackBuild b/network/GeoIP/GeoIP.SlackBuild index f4201c08af..dfa33cb87d 100644 --- a/network/GeoIP/GeoIP.SlackBuild +++ b/network/GeoIP/GeoIP.SlackBuild @@ -14,14 +14,15 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOCUMENTATION="AUTHORS COPYING ChangeLog INSTALL README TODO" - if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi set -e @@ -39,6 +40,7 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --datadir=/usr/share \ --localstatedir=/var \ @@ -53,8 +55,10 @@ make install DESTDIR=$PKG mv $PKG/etc/GeoIP.conf $PKG/etc/GeoIP.conf.new ( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null ) ( cd $PKG/usr/man || exit 1 @@ -63,7 +67,9 @@ mv $PKG/etc/GeoIP.conf $PKG/etc/GeoIP.conf.new ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCUMENTATION $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS COPYING ChangeLog INSTALL README TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install @@ -71,4 +77,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |