diff options
author | Robby Workman <rw@rlworkman.net> | 2010-05-13 00:38:50 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:38:50 +0200 |
commit | 42be282add0d1d8597cd9fce499e6c3bababcb09 (patch) | |
tree | f0dc851d410a952f0bd1f0bbbe91c63640ad14ce /network/xtables-addons/xtables-addons.SlackBuild | |
parent | feee49b7aaa070793e1970a7bdefe124ed907a71 (diff) | |
download | slackbuilds-42be282add0d1d8597cd9fce499e6c3bababcb09.tar.gz |
network/xtables-addons: Updated for version 1.18
Diffstat (limited to 'network/xtables-addons/xtables-addons.SlackBuild')
-rw-r--r-- | network/xtables-addons/xtables-addons.SlackBuild | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/network/xtables-addons/xtables-addons.SlackBuild b/network/xtables-addons/xtables-addons.SlackBuild index 28bdd7ac65..b3d5cccdb1 100644 --- a/network/xtables-addons/xtables-addons.SlackBuild +++ b/network/xtables-addons/xtables-addons.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=xtables-addons -VERSION=1.12 +VERSION=1.18 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -37,10 +37,16 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" + SRCARCH=x86 elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" + SRCARCH=x86 elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" + SRCARCH=x86 fi set -e @@ -61,14 +67,15 @@ find . \ CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --with-kbuild=/lib/modules/${KERNEL}/build \ --with-ksource=/lib/modules/${KERNEL}/source \ - --build=$ARCH-slackware-linux + --build=$ARCH-slackware-linux || true -make -make install DESTDIR=$PKG +make SRCARCH=$SRCARCH +make install DESTDIR=$PKG SRCARCH=$SRCARCH # Hrm, we don't want to install these rm -f $PKG/lib/modules/${KERNEL}/modules.* @@ -80,13 +87,12 @@ rm -f $PKG/lib/modules/${KERNEL}/modules.* xargs strip --strip-unneeded 2> /dev/null ) -# Compress man pages ( cd $PKG/usr/man find . -type f -exec gzip -9 {} \; for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done ) -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a INSTALL LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -95,4 +101,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc sed "s/@KERNEL@/$KERNEL/" $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} |