libraries/libnfnetlink: Updated for version 0.0.41

This commit is contained in:
Robby Workman 2010-05-12 17:41:35 +02:00 committed by David Somero
parent 343a654881
commit c7b5f27c3a
2 changed files with 16 additions and 8 deletions

View file

@ -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

View file

@ -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"