wok annotate ndiswrapper-driver/receipt @ rev 6743

Added linux-modules-headers as a build depend to ndiswrapper-driver.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Oct 17 01:49:18 2010 +0000 (2010-10-17)
parents ff6152ea645e
children 778986b73eb9
rev   line source
erjo@1851 1 # SliTaz package receipt.
erjo@1851 2
erjo@1851 3 PACKAGE="ndiswrapper-driver"
pankso@5301 4 VERSION="1.56"
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"
pascal@1885 8 DEPENDS="linux lzma"
slaxemulator@6743 9 BUILD_DEPENDS="slitaz-toolchain linux-module-headers"
erjo@1851 10 SOURCE="ndiswrapper"
erjo@1851 11 TARBALL="$SOURCE-$VERSION.tar.gz"
erjo@1851 12 WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/"
slaxemulator@5434 13 WGET_URL="$SF_MIRROR/$SOURCE/stable/$VERSION/$TARBALL"
jozee@4969 14 TAGS="windows wireless network"
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 cd $src
slaxemulator@6743 22 make KBUILD=/usr/src/linux KVER=linux-$KERNEL_VERSION-slitaz
erjo@1851 23 }
erjo@1851 24
erjo@1851 25 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1851 26 genpkg_rules()
erjo@1851 27 {
erjo@1851 28 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
erjo@1851 29 EXTRAVERSION=_$KERNEL_VERSION
erjo@1851 30
erjo@1851 31 mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
erjo@1851 32
erjo@1851 33 # Install utilities
erjo@1851 34 install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/
erjo@1851 35 strip -s $fs/sbin/load*
erjo@1851 36
erjo@1851 37 # Compress and install module
erjo@1851 38 #./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz
pascal@1885 39 lzma e $src/driver/ndiswrapper.ko \
pascal@1885 40 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.gz
pascal@1885 41 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.gz
pascal@1885 42 chmod O644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.gz
erjo@1851 43 }
erjo@1851 44
erjo@1851 45 post_install()
erjo@1851 46 {
erjo@1851 47 echo "Processing post-install commands..."
pascal@2926 48 chroot "$1/" depmod -a ${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 }