diff options
Diffstat (limited to 'network')
-rw-r--r-- | network/ndiswrapper/README | 5 | ||||
-rw-r--r-- | network/ndiswrapper/ndiswrapper.SlackBuild | 46 | ||||
-rw-r--r-- | network/ndiswrapper/ndiswrapper.info | 12 | ||||
-rw-r--r-- | network/ndiswrapper/slack-desc | 2 |
4 files changed, 38 insertions, 27 deletions
diff --git a/network/ndiswrapper/README b/network/ndiswrapper/README index 8edf5b2479..bd1f1a6e26 100644 --- a/network/ndiswrapper/README +++ b/network/ndiswrapper/README @@ -7,3 +7,8 @@ project provides a linux kernel module that loads and runs NDIS Be sure to read the INSTALL file in the package's documentation 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 diff --git a/network/ndiswrapper/ndiswrapper.SlackBuild b/network/ndiswrapper/ndiswrapper.SlackBuild index 3f4d1b4137..2141fc53fd 100644 --- a/network/ndiswrapper/ndiswrapper.SlackBuild +++ b/network/ndiswrapper/ndiswrapper.SlackBuild @@ -22,56 +22,62 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Modified by the SlackBuilds.org project - -set -e +# Maintained by Robby Workman <rworkman@slackbuilds.org> now PRGNAM=ndiswrapper -VERSION=1.47 -KERNEL=$(uname -r | tr '-' '_') # This does not seem configurable +VERSION=${VERSION:-1.53} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) 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 SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar -zxvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -chmod -R a-s,u+w,go+r-w . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -make -make install DESTDIR=$PKG - +make KVERS=$KERNEL +make install KVERS=$KERNEL DESTDIR=$PKG -( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - find . | 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 - -if [ -d $PKG/usr/man ]; then -( cd $PKG/usr/man +( cd $PKG/usr/man || exit 1 find . -type f -exec gzip -9 {} \; for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done ) -fi -# Cleaning up a few things +# Clean up a few things rm $PKG/lib/modules/*/modules.* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION @@ -84,4 +90,4 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n \ - $OUTPUT/$PRGNAM-${VERSION}_$KERNEL-$ARCH-$BUILD$TAG.tgz + $OUTPUT/$PRGNAM-${VERSION}_$(echo $KERNEL | tr - _)-$ARCH-$BUILD$TAG.tgz diff --git a/network/ndiswrapper/ndiswrapper.info b/network/ndiswrapper/ndiswrapper.info index 87b224a4a9..53e400a033 100644 --- a/network/ndiswrapper/ndiswrapper.info +++ b/network/ndiswrapper/ndiswrapper.info @@ -1,8 +1,8 @@ PRGNAM="ndiswrapper" -VERSION="1.47" +VERSION="1.53" HOMEPAGE="http://ndiswrapper.sourceforge.net" -DOWNLOAD="http://downloads.sourceforge.net/ndiswrapper/ndiswrapper-1.47.tar.gz" -MD5SUM="df02cbf0e514797f98a108d8566cb417" -MAINTAINER="Martin Lefebvre" -EMAIL="dadexter@sekurity.com" -APPROVED="rworkman" +DOWNLOAD="http://downloads.sourceforge.net/ndiswrapper/ndiswrapper-1.53.tar.gz" +MD5SUM="393c6e6ab0803963148e18538601cdec" +MAINTAINER="Robby Workman" +EMAIL="rw@rlworkman.net" +APPROVED="Erik Hanson" diff --git a/network/ndiswrapper/slack-desc b/network/ndiswrapper/slack-desc index 2b21c98f52..831e784696 100644 --- a/network/ndiswrapper/slack-desc +++ b/network/ndiswrapper/slack-desc @@ -5,7 +5,7 @@ # 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: Some vendors do not release specifications of the hardware or |