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