wok annotate ndiswrapper-driver/receipt @ rev 1851

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