wok view ndiswrapper-driver/receipt @ rev 4938

add/improve TAGS i* receipts
author Rohit Joshi <jozee@slitaz.org>
date Tue Feb 16 14:37:58 2010 +0000 (2010-02-16)
parents 09588e205d31
children bee79018e13a
line source
1 # SliTaz package receipt.
3 PACKAGE="ndiswrapper-driver"
4 VERSION="1.55"
5 CATEGORY="system-tools"
6 SHORT_DESC="Add Windows network drivers support to Linux kernel."
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="linux lzma"
9 BUILD_DEPENDS="slitaz-toolchain"
10 SOURCE="ndiswrapper"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/"
13 WGET_URL="$SF_MIRROR/$SOURCE/files/stable/$VERSION/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
19 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
20 if [ ! -d $WOK/linux/linux-$KERNEL_VERSION ]; then
21 tazwok cook linux
22 fi
23 cd $src
24 make KBUILD=$WOK/linux/linux-$KERNEL_VERSION KVER=$KERNEL_VERSION
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
31 EXTRAVERSION=_$KERNEL_VERSION
33 mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
35 # Install utilities
36 install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/
37 strip -s $fs/sbin/load*
39 # Compress and install module
40 #./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz
41 lzma e $src/driver/ndiswrapper.ko \
42 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.gz
43 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.gz
44 chmod O644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.gz
45 }
47 post_install()
48 {
49 echo "Processing post-install commands..."
50 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
51 }
53 post_remove()
54 {
55 echo "Processing post-remove commands..."
56 depmod -a
57 }