aboutsummaryrefslogtreecommitdiff
path: root/libraries/libnet/libnet.SlackBuild
diff options
context:
space:
mode:
authorJoe Rozner <livinded@deadbytes.net>2010-05-12 17:41:33 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 17:41:33 +0200
commit73c6b2bdf057925ce0bb1bde1242c068499decd5 (patch)
treee5f20d48c98410647f9991a1af8641db4e95e2bf /libraries/libnet/libnet.SlackBuild
parentf912a2fd081f2f8c65686b5a6ce549b26aede8ed (diff)
libraries/libnet: Updated for version 1.1.4
Diffstat (limited to 'libraries/libnet/libnet.SlackBuild')
-rw-r--r--libraries/libnet/libnet.SlackBuild36
1 files changed, 23 insertions, 13 deletions
diff --git a/libraries/libnet/libnet.SlackBuild b/libraries/libnet/libnet.SlackBuild
index e75e8d4f67ad9..ef7f126897355 100644
--- a/libraries/libnet/libnet.SlackBuild
+++ b/libraries/libnet/libnet.SlackBuild
@@ -8,7 +8,7 @@
# - remove CVS directories from source tree and miscellaneous script cleanup
PRGNAM=libnet
-VERSION=${VERSION:-1.1.2.1}
+VERSION=${VERSION:-1.1.4}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -20,10 +20,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
- elif [ "$ARCH" = "i686" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- elif [ "$ARCH" = "x86_64" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -31,31 +34,38 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM
+rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM
+cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R u+w,go+r,a-s .
-find . -type d -name CVS | sort -r | xargs rm -rf
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
- ./configure \
+./configure \
--prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --mandir=/usr/man \
+ --enable-static=no \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
-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
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
+cp -a \
+ README doc/{BUGS,CHANGELOG,CONTRIB,COPYING,DESIGN_NOTES,MIGRATION} \
+ doc/{PACKET_BUILDING,PORTED,RAWSOCKET_NON_SEQUITUR,TODO} \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a doc/html/{*.png,*.gif,*.html,*.css} $PKG/usr/doc/$PRGNAM-$VERSION/html
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install