wok-next diff ndiswrapper/receipt @ rev 655
Up: slitaz-configs (1.6) - Ob is the default WM, no more system.jwmrc
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 22 22:37:21 2008 +0200 (2008-04-22) |
parents | |
children | fab97211d72f |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ndiswrapper/receipt Tue Apr 22 22:37:21 2008 +0200 1.3 @@ -0,0 +1,55 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="ndiswrapper" 1.7 +VERSION="1.52" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="Add Windows network drivers support to Linux kernel." 1.10 +MAINTAINER="Erjo <erjo@slitaz.org>" 1.11 +DEPENDS="" 1.12 +#WANTED="linux" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 +WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/" 1.15 +WGET_URL="http://dfn.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL 1.16 + http://puzzle.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + 1.22 + KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g` 1.23 + if [ ! -d $WOK/linux/linux-$KERNEL_VERSION ]; then 1.24 + tazwok cook linux 1.25 + fi 1.26 + cd $src 1.27 + make KBUILD=$WOK/linux/linux-$KERNEL_VERSION KVER=$KERNEL_VERSION 1.28 +} 1.29 + 1.30 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.31 +genpkg_rules() 1.32 +{ 1.33 + KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g` 1.34 + 1.35 + mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc 1.36 + 1.37 + # Install utilities 1.38 + install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/ 1.39 + install -o root -m 755 $src/utils/ndiswrapper $fs/usr/sbin/ 1.40 + install -o root -m 755 $src/utils/ndiswrapper-buginfo $fs/usr/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 1.52 +} 1.53 + 1.54 +post_remove() 1.55 +{ 1.56 + echo "Processing post-remove commands..." 1.57 + depmod -a 1.58 +}