summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libraries/libnfnetlink/libnfnetlink.SlackBuild16
-rw-r--r--libraries/libnfnetlink/libnfnetlink.info8
2 files changed, 16 insertions, 8 deletions
diff --git a/libraries/libnfnetlink/libnfnetlink.SlackBuild b/libraries/libnfnetlink/libnfnetlink.SlackBuild
index 1ee8d8674a..a4cd741532 100644
--- a/libraries/libnfnetlink/libnfnetlink.SlackBuild
+++ b/libraries/libnfnetlink/libnfnetlink.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for libnfnetlink
-# 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=libnfnetlink
-VERSION=0.0.39
+VERSION=0.0.41
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} \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--enable-static=no \
--build=$ARCH-slackware-linux
@@ -67,8 +71,12 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-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
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/libraries/libnfnetlink/libnfnetlink.info b/libraries/libnfnetlink/libnfnetlink.info
index f226843eca..b0478881cf 100644
--- a/libraries/libnfnetlink/libnfnetlink.info
+++ b/libraries/libnfnetlink/libnfnetlink.info
@@ -1,8 +1,8 @@
PRGNAM="libnfnetlink"
-VERSION="0.0.39"
+VERSION="0.0.41"
HOMEPAGE="http://www.netfilter.org/projects/libnfnetlink/"
-DOWNLOAD="http://www.netfilter.org/projects/libnfnetlink/files/libnfnetlink-0.0.39.tar.bz2"
-MD5SUM="348fed8c1edbe5b873ffc7b192140093"
+DOWNLOAD="ftp://ftp.netfilter.org/pub/libnfnetlink/libnfnetlink-0.0.41.tar.bz2"
+MD5SUM="5d844ea1f557bad0364d5b85cd10c796"
MAINTAINER="Robby Workman"
EMAIL="rw@rlworkman.net"
-APPROVED="David Somero"
+APPROVED="dsomero"