wok-next view ndiswrapper-driver/receipt @ rev 15584
Add some licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 30 17:02:58 2013 +0000 (2013-11-30) |
parents | ab6b8c6c469c |
children | 293a7bce6d7f |
line source
1 # SliTaz package receipt.
3 PACKAGE="ndiswrapper-driver"
4 VERSION="1.57"
5 CATEGORY="system-tools"
6 SHORT_DESC="Add Windows network drivers support to Linux kernel."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL"
9 SOURCE="ndiswrapper"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/"
12 WGET_URL="$SF_MIRROR/$SOURCE/stable/$VERSION/$TARBALL"
13 TAGS="windows wireless network"
15 DEPENDS="linux"
16 BUILD_DEPENDS="linux-module-headers xz"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
22 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
23 cd $src
24 patch -Np1 -i $stuff/kernel-2.6.35.patch
25 patch -Np1 -i $stuff/kernel-2.6.36.patch
26 make KBUILD=/usr/src/linux KVER=linux-$KERNEL_VERSION-slitaz
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
33 EXTRAVERSION=_${KERNEL_VERSION%.*}
35 mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
37 # Install utilities
38 install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/
40 # Compress and install module
41 # $stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz
42 cp $src/driver/ndiswrapper.ko \
43 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/
44 xz $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko
45 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.xz
46 chmod 644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.xz
47 }
49 post_install()
50 {
51 echo "Processing post-install commands..."
52 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
53 }
55 post_remove()
56 {
57 echo "Processing post-remove commands..."
58 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
59 }