wok-current annotate ndiswrapper/receipt @ rev 755
Add: b43-fwcutter, cabextract, unshield, pure-ftpd, pure-ftpd-extras. fix DEPNDS in ndiswrapper
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Wed May 07 01:14:00 2008 +0200 (2008-05-07) |
parents | e8a7c24fcf1d |
children | a075ff895254 |
rev | line source |
---|---|
erjo@582 | 1 # SliTaz package receipt. |
erjo@582 | 2 |
erjo@582 | 3 PACKAGE="ndiswrapper" |
erjo@582 | 4 VERSION="1.52" |
erjo@582 | 5 CATEGORY="system-tools" |
erjo@582 | 6 SHORT_DESC="Add Windows network drivers support to Linux kernel." |
erjo@582 | 7 MAINTAINER="Erjo <erjo@slitaz.org>" |
erjo@755 | 8 DEPENDS="perl" |
erjo@582 | 9 #WANTED="linux" |
erjo@582 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
erjo@582 | 11 WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/" |
erjo@582 | 12 WGET_URL="http://dfn.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL |
erjo@582 | 13 http://puzzle.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL" |
erjo@582 | 14 |
erjo@582 | 15 # Rules to configure and make the package. |
erjo@582 | 16 compile_rules() |
erjo@582 | 17 { |
erjo@582 | 18 |
erjo@582 | 19 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g` |
erjo@582 | 20 if [ ! -d $WOK/linux/linux-$KERNEL_VERSION ]; then |
erjo@582 | 21 tazwok cook linux |
erjo@582 | 22 fi |
erjo@582 | 23 cd $src |
erjo@582 | 24 make KBUILD=$WOK/linux/linux-$KERNEL_VERSION KVER=$KERNEL_VERSION |
erjo@582 | 25 } |
erjo@582 | 26 |
erjo@582 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@582 | 28 genpkg_rules() |
erjo@582 | 29 { |
erjo@582 | 30 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g` |
erjo@582 | 31 |
erjo@582 | 32 mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc |
erjo@582 | 33 |
erjo@582 | 34 # Install utilities |
erjo@582 | 35 install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/ |
erjo@582 | 36 install -o root -m 755 $src/utils/ndiswrapper $fs/usr/sbin/ |
erjo@582 | 37 install -o root -m 755 $src/utils/ndiswrapper-buginfo $fs/usr/sbin/ |
erjo@582 | 38 strip -s $fs/sbin/load* |
erjo@582 | 39 |
erjo@582 | 40 # Compress and install module |
erjo@582 | 41 #./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz |
erjo@582 | 42 install -o root -m O644 $src/driver/ndiswrapper.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc |
erjo@582 | 43 } |
erjo@582 | 44 |
erjo@582 | 45 post_install() |
erjo@582 | 46 { |
erjo@582 | 47 echo "Processing post-install commands..." |
erjo@582 | 48 depmod -a |
erjo@582 | 49 } |
erjo@582 | 50 |
erjo@582 | 51 post_remove() |
erjo@582 | 52 { |
erjo@582 | 53 echo "Processing post-remove commands..." |
erjo@582 | 54 depmod -a |
erjo@582 | 55 } |