aboutsummaryrefslogtreecommitdiff
path: root/network/madwifi-tools/madwifi-tools.SlackBuild
diff options
context:
space:
mode:
authorNobody <nobody@nowhere>2010-05-12 17:43:46 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 17:43:46 +0200
commite5060186375f6f61b2b2fb4835726fdee09cce11 (patch)
treea2292529a1ee4de41e5bf3108a47b18750c8a12b /network/madwifi-tools/madwifi-tools.SlackBuild
parentf5490957cedf7301009d08526552c2e9f2014c34 (diff)
network/madwifi-tools: Updated for version 0.9.4
Diffstat (limited to 'network/madwifi-tools/madwifi-tools.SlackBuild')
-rw-r--r--network/madwifi-tools/madwifi-tools.SlackBuild38
1 files changed, 20 insertions, 18 deletions
diff --git a/network/madwifi-tools/madwifi-tools.SlackBuild b/network/madwifi-tools/madwifi-tools.SlackBuild
index 63cf7c8fdd825..4866c85150c33 100644
--- a/network/madwifi-tools/madwifi-tools.SlackBuild
+++ b/network/madwifi-tools/madwifi-tools.SlackBuild
@@ -3,44 +3,46 @@
## Slackware build script for madwifi-tools
## Written by hollywoodb (hollywoodb@fastmail.fm)
-## Maintained by Robby Workman <rworkman@slackbuilds.org>
+## Modified by Larry Hajali <larryhaja[at]gmail[dot]com>
-NAME=madwifi
-PKG_NAME=madwifi-tools
+PRGNAM=madwifi
VERSION=0.9.4
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKG_NAME=madwifi-tools
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
-PKG=${PKG:-$TMP/package-$NAME}
+PKG=${PKG:-$TMP/package-$PKG_NAME}
OUTPUT=${OUTPUT:-/tmp}
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
-rm -rf $NAME-$VERSION
-tar xvf $CWD/$NAME-$VERSION.tar.gz || exit 1
-cd $NAME-$VERSION || exit 1
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
sed -i 's|/usr/local|/usr|g' tools/Makefile
-make tools || exit 1
-make install-tools DESTDIR=$PKG || exit 1
+make tools
+make install-tools DESTDIR=$PKG
-find $PKG | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-find $PKG | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+find $PKG | xargs file | grep -e "executable" -e "shared object" | \
+ grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
-mkdir -p $PKG/usr/doc/$NAME-$VERSION
-cp -a {COPYRIGHT,INSTALL,README,THANKS} \
- $PKG/usr/doc/$NAME-$VERSION/
-cp -a {docs/WEP-HOWTO.txt,docs/users-guide.pdf,docs/users-guide.tex} \
- $PKG/usr/doc/$NAME-$VERSION/
-cat $CWD/$PKG_NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ COPYRIGHT INSTALL README THANKS docs/{WEP-HOWTO.txt,users-guide.pdf} \
+ $PKG/usr/doc/$PRGNAM-$VERSION/
+cat $CWD/$PKG_NAME.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc