aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network/arp-scan/arp-scan.SlackBuild37
-rw-r--r--network/arp-scan/arp-scan.info9
2 files changed, 32 insertions, 14 deletions
diff --git a/network/arp-scan/arp-scan.SlackBuild b/network/arp-scan/arp-scan.SlackBuild
index 715ce267e03ac..66f4fb964b61c 100644
--- a/network/arp-scan/arp-scan.SlackBuild
+++ b/network/arp-scan/arp-scan.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for arp-scan
-# Copyright 2006-2007 Robby Workman (http://rlworkman.net)
+# Copyright 2006-2008 Robby Workman, Northport, Alabama, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,10 +23,11 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=arp-scan
-VERSION=1.5
+VERSION=1.7
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -36,26 +37,42 @@ 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 || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R a-s,u+w,go+r-w .
+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 \
--prefix=/usr \
- || exit 1
+ --mandir=/usr/man \
+ --disable-static \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
-make || exit 1
-make install-strip DESTDIR=$PKG || exit 1
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-gzip -9 $PKG/usr/man/man?/*
+( 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 NEWS README TODO \
diff --git a/network/arp-scan/arp-scan.info b/network/arp-scan/arp-scan.info
index 76c1e1550384c..8d0ee6499e63a 100644
--- a/network/arp-scan/arp-scan.info
+++ b/network/arp-scan/arp-scan.info
@@ -1,8 +1,9 @@
PRGNAM="arp-scan"
-VERSION="1.5"
+VERSION="1.7"
HOMEPAGE="http://www.nta-monitor.com/tools/arp-scan/"
-DOWNLOAD="http://www.nta-monitor.com/tools/arp-scan/download/arp-scan-1.5.tar.gz"
-MD5SUM="85b0e04323ce3a423f60ab905a589856"
+DOWNLOAD="http://www.nta-monitor.com/tools/arp-scan/download/arp-scan-1.7.tar.gz"
+MD5SUM="a9927dba2b1dbdfd1c3b3bb09615fc14"
MAINTAINER="Robby Workman"
EMAIL="rw@rlworkman.net"
-APPROVED="rworkman"
+APPROVED="Michiel"
+