wok-current view ndiswrapper-driver/receipt @ rev 6786
Up: pygtk to 2.22.0.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Oct 18 16:44:00 2010 +0000 (2010-10-18) |
parents | ff6152ea645e |
children | 778986b73eb9 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ndiswrapper-driver"
4 VERSION="1.56"
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 linux-module-headers"
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 make KBUILD=/usr/src/linux KVER=linux-$KERNEL_VERSION-slitaz
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
29 EXTRAVERSION=_$KERNEL_VERSION
31 mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
33 # Install utilities
34 install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/
35 strip -s $fs/sbin/load*
37 # Compress and install module
38 #./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz
39 lzma e $src/driver/ndiswrapper.ko \
40 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.gz
41 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.gz
42 chmod O644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.gz
43 }
45 post_install()
46 {
47 echo "Processing post-install commands..."
48 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
49 }
51 post_remove()
52 {
53 echo "Processing post-remove commands..."
54 depmod -a
55 }