wok-next annotate ndiswrapper/receipt @ rev 1495
Up imagemagick (6.4.3-10)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 05 13:05:29 2008 +0000 (2008-10-05) |
parents | 17d849de3b0b |
children | 3d99ecce2d4b |
rev | line source |
---|---|
erjo@582 | 1 # SliTaz package receipt. |
erjo@582 | 2 |
erjo@582 | 3 PACKAGE="ndiswrapper" |
erjo@1011 | 4 VERSION="1.53" |
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 TARBALL="$PACKAGE-$VERSION.tar.gz" |
erjo@582 | 10 WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/" |
erjo@582 | 11 WGET_URL="http://dfn.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL |
erjo@582 | 12 http://puzzle.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL" |
erjo@582 | 13 |
erjo@582 | 14 # Rules to configure and make the package. |
erjo@582 | 15 compile_rules() |
erjo@582 | 16 { |
erjo@582 | 17 |
pascal@1453 | 18 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
erjo@582 | 19 if [ ! -d $WOK/linux/linux-$KERNEL_VERSION ]; then |
erjo@582 | 20 tazwok cook linux |
erjo@582 | 21 fi |
erjo@582 | 22 cd $src |
erjo@582 | 23 make KBUILD=$WOK/linux/linux-$KERNEL_VERSION KVER=$KERNEL_VERSION |
erjo@582 | 24 } |
erjo@582 | 25 |
erjo@582 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@582 | 27 genpkg_rules() |
erjo@582 | 28 { |
pascal@1453 | 29 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
pascal@911 | 30 EXTRAVERSION=_$KERNEL_VERSION |
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..." |
pascal@1455 | 48 depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz |
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 } |