summaryrefslogtreecommitdiff
path: root/network/kismet/kismet.SlackBuild
diff options
context:
space:
mode:
authorAudrius Kažukauskas <neobug@tornado.ktu.lt>2010-05-11 22:25:29 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 22:25:29 +0200
commitd3744df78fe78d7d3ede322baea95ce1fe3cd8ee (patch)
tree823a79c5e77997375116f43c329ee42186d6b451 /network/kismet/kismet.SlackBuild
parent23f30af0330536b4da221b0774fb4c26bf7c578b (diff)
downloadslackbuilds-d3744df78fe78d7d3ede322baea95ce1fe3cd8ee.tar.gz
network/kismet: Updated for version 2008_05_R1
Diffstat (limited to 'network/kismet/kismet.SlackBuild')
-rw-r--r--network/kismet/kismet.SlackBuild13
1 files changed, 8 insertions, 5 deletions
diff --git a/network/kismet/kismet.SlackBuild b/network/kismet/kismet.SlackBuild
index 1dc819b5a7..18866a7506 100644
--- a/network/kismet/kismet.SlackBuild
+++ b/network/kismet/kismet.SlackBuild
@@ -5,7 +5,7 @@
# Modified by Robby Workman <rworkman@slackbuilds.org>
PRGNAM=kismet
-VERSION=2007_10_R1
+VERSION=2008_05_R1
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -19,6 +19,8 @@ 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 # Exit on most errors
@@ -38,13 +40,14 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--sysconfdir=/etc/kismet \
--localstatedir=/var \
- --mandir=/usr/man
+ --mandir=/usr/man \
+ --build=$ARCH-slackware-linux
-make
-make install MANGRP=root DESTDIR=$PKG
+make
+make install MANGRP=root 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 "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
)