wok view ndiswrapper-driver/receipt @ rev 15448
Up: edbus-dev (1.7.9)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Nov 05 20:58:00 2013 +0100 (2013-11-05) |
parents | b9368eac086f |
children | 3765f181a6d5 |
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 DEPENDS="linux"
9 BUILD_DEPENDS="linux-module-headers xz"
10 SOURCE="ndiswrapper"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/"
13 WGET_URL="$SF_MIRROR/$SOURCE/stable/$VERSION/$TARBALL"
14 TAGS="windows wireless network"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
20 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
21 cd $src
22 patch -Np1 -i $stuff/kernel-2.6.35.patch
23 patch -Np1 -i $stuff/kernel-2.6.36.patch
24 make KBUILD=/usr/src/linux KVER=linux-$KERNEL_VERSION-slitaz
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/
38 # Compress and install module
39 # $stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz
40 cp $src/driver/ndiswrapper.ko \
41 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/
42 xz $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko
43 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.xz
44 chmod 644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.xz
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 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
57 }