diff options
Diffstat (limited to 'network/madwifi-driver/madwifi-driver.SlackBuild')
-rw-r--r-- | network/madwifi-driver/madwifi-driver.SlackBuild | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/network/madwifi-driver/madwifi-driver.SlackBuild b/network/madwifi-driver/madwifi-driver.SlackBuild index 9a729fd5d9..547c0ad93a 100644 --- a/network/madwifi-driver/madwifi-driver.SlackBuild +++ b/network/madwifi-driver/madwifi-driver.SlackBuild @@ -3,42 +3,30 @@ ## Slackware build script for madwifi-driver ## Written by hollywoodb (hollywoodb@fastmail.fm) -## Modified by the SlackBuilds.org project +## Maintained by Robby Workman <rworkman@slackbuilds.org> -## Feel free to use, modify, redistribute this script. -## If you make changes please modify the "Written by" -## so that I don't recieve emails about a script I -## did not write. Thanks. - -if [ "$(id -u)" != "0" ]; then - echo "This script must be run as root!" - exit -fi - -KERNELVERSION=${KERNELVERSION:-`uname -r`} +KERNELVERSION=${KERNELVERSION:-$(uname -r)} KERNELPATH=${KERNELPATH:-/lib/modules/${KERNELVERSION}/build} NAME=madwifi -VERSION=0.9.2.1 -ARCHIVE=tar.bz2 +VERSION=0.9.4 PKG_NAME=madwifi-driver -PKG_VERS=$VERSION\_$KERNELVERSION +PKG_VERS=$(echo ${VERSION}_$KERNELVERSION | tr '-' '_') ARCH=${ARCH:-i486} -CWD=`pwd` +CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=${PKG:-$TMP/package-$NAME} OUTPUT=${OUTPUT:-/tmp} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP || exit 1 rm -rf $NAME-$VERSION -tar jxvf $CWD/$NAME-$VERSION.$ARCHIVE || exit 1 +tar xvf $CWD/$NAME-$VERSION.tar.gz || exit 1 cd $NAME-$VERSION || exit 1 - chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -53,6 +41,7 @@ cat $CWD/$PKG_NAME.SlackBuild > $PKG/usr/doc/$PKG_NAME-$PKG_VERS/$PKG_NAME.Slack mkdir -p $PKG/install cat $CWD/slack-desc.driver > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PKG_NAME-$PKG_VERS-$ARCH-$BUILD$TAG.tgz |