network/ndiswrapper: Updated for version 1.54

This commit is contained in:
Robby Workman 2010-05-12 17:43:54 +02:00 committed by Erik Hanson
parent e5065d0541
commit 0730e3738d
6 changed files with 33 additions and 22 deletions

View File

@ -11,4 +11,4 @@ directory for instructions on configuring your wireless card.
If you'd like to build the module for a kernel that isn't currently
running on the system, you should be able to pass that kernel's
"uname -r" output on the command line as the value of KERNEL, as in:
KERNEL=2.6.25 ./ndiswrapper.SlackBuild
KERNEL=2.6.29.3 ./ndiswrapper.SlackBuild

View File

@ -1,4 +1,2 @@
#!/bin/sh
chroot . /sbin/depmod -a
chroot . /sbin/depmod -a @VERSION@

View File

@ -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 \

View File

@ -1,8 +1,8 @@
PRGNAM="ndiswrapper"
VERSION="1.53"
HOMEPAGE="http://ndiswrapper.sourceforge.net"
DOWNLOAD="http://downloads.sourceforge.net/ndiswrapper/ndiswrapper-1.53.tar.gz"
MD5SUM="393c6e6ab0803963148e18538601cdec"
VERSION="1.54"
HOMEPAGE="http://sourceforge.net/projects/ndiswrapper/"
DOWNLOAD="http://downloads.sourceforge.net/ndiswrapper/ndiswrapper-1.54.tar.gz"
MD5SUM="fc9ebd3985967727da494ec298ad4487"
MAINTAINER="Robby Workman"
EMAIL="rw@rlworkman.net"
APPROVED="Erik Hanson"

View File

@ -0,0 +1,14 @@
# fix C syntax error and field name in conditional netdev ops struct,
# triggering on kernel >= 2.6.29 and CONFIG_NET_POLL_CONTROLLER=y.
--- a/driver/wrapndis.c
+++ b/driver/wrapndis.c
@@ -1744,7 +1744,7 @@ static const struct net_device_ops ndis_
.ndo_set_mac_address = ndis_set_mac_address,
.ndo_get_stats = ndis_get_stats,
#ifdef CONFIG_NET_POLL_CONTROLLER
- .poll_controller = ndis_poll_controller;
+ .ndo_poll_controller = ndis_poll_controller,
#endif
};
#endif

View File

@ -5,15 +5,15 @@
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler--------------------------------------------------|
|-----handy-ruler------------------------------------------------------|
ndiswrapper: ndiswrapper (wrapper for NDIS drivers)
ndiswrapper:
ndiswrapper:
ndiswrapper: Some vendors do not release specifications of the hardware or
ndiswrapper: providea linux driver for their wireless network cards. This
ndiswrapper: project provides a linux kernel module that loads and runs NDIS
ndiswrapper: (Windows network driver API) drivers supplied by the vendors.
ndiswrapper:
ndiswrapper:
ndiswrapper:
ndiswrapper:
ndiswrapper:
ndiswrapper:
ndiswrapper:
ndiswrapper:
ndiswrapper:
ndiswrapper: