aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorJoe Rozner <livinded@deadbytes.net>2010-05-11 22:24:05 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 22:24:05 +0200
commit88fb200b26a4e3c92f41c4d05c07185dbd338ff9 (patch)
treec63b55b4b7e09aef1241dbbe10b86260da943c0c /libraries
parentf967fea66010351b0940d13bcd8ad54b59464a67 (diff)
libraries/libnet: Updated for version 1.1.2.1
Diffstat (limited to 'libraries')
-rw-r--r--libraries/libnet/libnet.SlackBuild40
-rw-r--r--libraries/libnet/libnet.info2
2 files changed, 22 insertions, 20 deletions
diff --git a/libraries/libnet/libnet.SlackBuild b/libraries/libnet/libnet.SlackBuild
index 9674a85d47575..e75e8d4f67ad9 100644
--- a/libraries/libnet/libnet.SlackBuild
+++ b/libraries/libnet/libnet.SlackBuild
@@ -1,15 +1,18 @@
#!/bin/sh
-set -e
-# Slackbuild for lidnet
+# Slackbuild for libnet
# Joe Rozner livinded@deabytes.net
# Wednesday 08/22/2007
+# Modified by Roberto Neri <rneri@libero.it> to
+# - remove CVS directories from source tree and miscellaneous script cleanup
+
PRGNAM=libnet
-VERSION=1.1.2.1
+VERSION=${VERSION:-1.1.2.1}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -19,45 +22,44 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM
-tar xvf $CWD/$PRGNAM.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM
chown -R root:root .
chmod -R u+w,go+r,a-s .
+find . -type d -name CVS | sort -r | xargs rm -rf
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
- --localstatedir=/var
+ --localstatedir=/var \
+ --build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
-
-( 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
-)
+make install-strip DESTDIR=$PKG
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README VERSION doc/* $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-rm -rf $PKG/usr/doc/$PRGNAM-$VERSION/CVS
-
-mv $PKG/usr/doc/$PRGNAM-$VERSION/man/ $PKG/usr/
-rm -rf $PKG/usr/man/CVS # WTH is this?
+cp -a doc/man $PKG/usr/
( 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
+cp -a README VERSION doc/html $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $TMP/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/libraries/libnet/libnet.info b/libraries/libnet/libnet.info
index 9ce595eb15fd4..f311b1c661a30 100644
--- a/libraries/libnet/libnet.info
+++ b/libraries/libnet/libnet.info
@@ -1,7 +1,7 @@
PRGNAM="libnet"
VERSION="1.1.2.1"
HOMEPAGE="http://www.packetfactory.net/projects/libnet/"
-DOWNLOAD="http://www.packetfactory.net/libnet/dist/libnet.tar.gz"
+DOWNLOAD="http://www.packetfactory.net/libnet/dist/libnet-1.1.2.1.tar.gz"
MD5SUM="be845c41170d72c7db524f3411b50256"
MAINTAINER="Joe Rozner"
EMAIL="livinded@deadbytes.net"