summaryrefslogtreecommitdiff
path: root/network/ndiswrapper/ndiswrapper.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rw@rlworkman.net>2010-05-12 17:43:54 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-12 17:43:54 +0200
commit0730e3738db95c77f2d6c89eb6e60cf7130b27db (patch)
treeebdc04c93f140aa8c58a7ab5ee52906e3a6c4dd0 /network/ndiswrapper/ndiswrapper.SlackBuild
parente5065d0541504ace25535114addd4ec6a402f77c (diff)
downloadslackbuilds-0730e3738db95c77f2d6c89eb6e60cf7130b27db.tar.gz
network/ndiswrapper: Updated for version 1.54
Diffstat (limited to 'network/ndiswrapper/ndiswrapper.SlackBuild')
-rw-r--r--network/ndiswrapper/ndiswrapper.SlackBuild13
1 files changed, 6 insertions, 7 deletions
diff --git a/network/ndiswrapper/ndiswrapper.SlackBuild b/network/ndiswrapper/ndiswrapper.SlackBuild
index 2141fc53fd..8b4e1ca4b8 100644
--- a/network/ndiswrapper/ndiswrapper.SlackBuild
+++ b/network/ndiswrapper/ndiswrapper.SlackBuild
@@ -25,9 +25,9 @@
# Maintained by Robby Workman <rworkman@slackbuilds.org> now
PRGNAM=ndiswrapper
-VERSION=${VERSION:-1.53}
+VERSION=${VERSION:-1.54}
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -35,10 +35,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-# This *should* work, but if it doesn't, let me know. I've walked through
-# the relevant Makefiles and if everything does what I think it does, you
-# should be able to build for something other than the running kernel.
-# Again, let me know if I'm wrong. --rworkman
KERNEL=${KERNEL:-$(uname -r)}
if [ "$ARCH" = "i486" ]; then
@@ -64,6 +60,9 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Patch to build on 2.6.29.x
+patch -p1 < $CWD/ndiswrapper_kernel_2.6.29.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
make KVERS=$KERNEL
@@ -86,7 +85,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
+sed "s%@VERSION@%$KERNEL%" $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n \