wok-stable diff ndiswrapper-driver/receipt @ rev 1852
Fix: sudo, keep pr?vious sudoers file.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Dec 14 11:08:31 2008 +0100 (2008-12-14) |
parents | |
children | d5139637d409 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ndiswrapper-driver/receipt Sun Dec 14 11:08:31 2008 +0100 1.3 @@ -0,0 +1,55 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="ndiswrapper-driver" 1.7 +VERSION="1.53" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="Add Windows network drivers support to Linux kernel." 1.10 +MAINTAINER="erjo@slitaz.org" 1.11 +DEPENDS="linux" 1.12 +BUILD_DEPENDS="slitaz-toolchain" 1.13 +SOURCE="ndiswrapper" 1.14 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.15 +WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/" 1.16 +WGET_URL="http://dfn.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL 1.17 + http://puzzle.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL" 1.18 + 1.19 +# Rules to configure and make the package. 1.20 +compile_rules() 1.21 +{ 1.22 + 1.23 + KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.24 + if [ ! -d $WOK/linux/linux-$KERNEL_VERSION ]; then 1.25 + tazwok cook linux 1.26 + fi 1.27 + cd $src 1.28 + make KBUILD=$WOK/linux/linux-$KERNEL_VERSION KVER=$KERNEL_VERSION 1.29 +} 1.30 + 1.31 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.32 +genpkg_rules() 1.33 +{ 1.34 + KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.35 + EXTRAVERSION=_$KERNEL_VERSION 1.36 + 1.37 + mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc 1.38 + 1.39 + # Install utilities 1.40 + install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/ 1.41 + strip -s $fs/sbin/load* 1.42 + 1.43 + # Compress and install module 1.44 + #./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz 1.45 + install -o root -m O644 $src/driver/ndiswrapper.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc 1.46 +} 1.47 + 1.48 +post_install() 1.49 +{ 1.50 + echo "Processing post-install commands..." 1.51 + depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz 1.52 +} 1.53 + 1.54 +post_remove() 1.55 +{ 1.56 + echo "Processing post-remove commands..." 1.57 + depmod -a 1.58 +}