diff options
author | Audrius Kažukauskas <neobug@tornado.ktu.lt> | 2010-05-13 00:36:54 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:36:54 +0200 |
commit | 38e7cd7dcf5974277530b9a37141073419858dea (patch) | |
tree | 78f17bd8cb18b71fd62b9a53d5ae1e60f640aee9 /network/kismet/kismet.SlackBuild | |
parent | ea769d945cb3649ed034de38e12e7d6016e31eba (diff) | |
download | slackbuilds-38e7cd7dcf5974277530b9a37141073419858dea.tar.gz |
network/kismet: Updated for version 2008_05_R1
Diffstat (limited to 'network/kismet/kismet.SlackBuild')
-rw-r--r-- | network/kismet/kismet.SlackBuild | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/network/kismet/kismet.SlackBuild b/network/kismet/kismet.SlackBuild index 18866a7506..ad2babf0f7 100644 --- a/network/kismet/kismet.SlackBuild +++ b/network/kismet/kismet.SlackBuild @@ -6,6 +6,7 @@ PRGNAM=kismet VERSION=2008_05_R1 +SRCVER=$(echo $VERSION | tr _ -) ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -17,10 +18,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 # Exit on most errors @@ -28,9 +32,9 @@ set -e # Exit on most errors rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$(echo $VERSION | tr _ -) -tar xvf $CWD/$PRGNAM-$(echo $VERSION | tr _ -).tar.gz -cd $PRGNAM-$(echo $VERSION | tr _ -) +rm -rf $PRGNAM-$SRCVER +tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz +cd $PRGNAM-$SRCVER chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -38,6 +42,7 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc/kismet \ --localstatedir=/var \ --mandir=/usr/man \ @@ -47,8 +52,10 @@ 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 || true - find . | xargs file | grep "shared object" | 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 ) ( cd $PKG/usr/man @@ -72,4 +79,4 @@ mv $PKG/etc/kismet/ap_manuf $PKG/etc/kismet/ap_manuf.new mv $PKG/etc/kismet/client_manuf $PKG/etc/kismet/client_manuf.new cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |