wok annotate ndiswrapper/receipt @ rev 999
receipt the rox-filer locales
author | Pierre-Jean Fichet <sygne@ombres.eu> |
---|---|
date | Sun Jul 06 16:50:31 2008 +0200 (2008-07-06) |
parents | 5149ba870916 |
children | 564e60fb4085 |
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@784 | 7 MAINTAINER="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` |
pascal@911 | 31 EXTRAVERSION=_$KERNEL_VERSION |
erjo@582 | 32 |
erjo@582 | 33 mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc |
erjo@582 | 34 |
erjo@582 | 35 # Install utilities |
erjo@582 | 36 install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/ |
erjo@582 | 37 install -o root -m 755 $src/utils/ndiswrapper $fs/usr/sbin/ |
erjo@582 | 38 install -o root -m 755 $src/utils/ndiswrapper-buginfo $fs/usr/sbin/ |
erjo@582 | 39 strip -s $fs/sbin/load* |
erjo@582 | 40 |
erjo@582 | 41 # Compress and install module |
erjo@582 | 42 #./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz |
erjo@582 | 43 install -o root -m O644 $src/driver/ndiswrapper.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc |
erjo@582 | 44 } |
erjo@582 | 45 |
erjo@582 | 46 post_install() |
erjo@582 | 47 { |
erjo@582 | 48 echo "Processing post-install commands..." |
pascal@851 | 49 depmod -a -b /$1 |
erjo@582 | 50 } |
erjo@582 | 51 |
erjo@582 | 52 post_remove() |
erjo@582 | 53 { |
erjo@582 | 54 echo "Processing post-remove commands..." |
erjo@582 | 55 depmod -a |
erjo@582 | 56 } |