aboutsummaryrefslogtreecommitdiff
path: root/network/conntrack-tools/conntrack-tools.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/conntrack-tools/conntrack-tools.SlackBuild')
-rw-r--r--network/conntrack-tools/conntrack-tools.SlackBuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/network/conntrack-tools/conntrack-tools.SlackBuild b/network/conntrack-tools/conntrack-tools.SlackBuild
index 5ba3ce2517966..0ace6912cc78f 100644
--- a/network/conntrack-tools/conntrack-tools.SlackBuild
+++ b/network/conntrack-tools/conntrack-tools.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for conntrack-tools
-# Copyright 2006-2008 Robby Workman, Northport, Alabama, USA
+# Copyright 2006-2009 Robby Workman, Northport, Alabama, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=conntrack-tools
-VERSION=0.9.8
+VERSION=0.9.12
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -35,10 +35,13 @@ OUTPUT=${OUTPUT:-/tmp}
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
@@ -60,6 +63,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc/conntrackd \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
@@ -75,7 +79,10 @@ cat doc/stats/conntrackd.conf > $PKG/etc/conntrackd/conntrackd.conf.sample
find $PKG | xargs file | grep -e "executable" -e "shared object"| grep ELF | \
cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-gzip -9 $PKG/usr/man/man8/*.?
+( 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
+)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog INSTALL TODO doc/cli doc/sync doc/manual \