wok view ndiswrapper-driver/receipt @ rev 15823

bazaar-tools, transmission: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 24 14:19:06 2014 +0000 (2014-01-24)
parents 3765f181a6d5
children db5b03f42dd9
line source
1 # SliTaz package receipt.
3 PACKAGE="ndiswrapper-driver"
4 VERSION="1.59"
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/$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 make KBUILD=/usr/src/linux KVER=linux-$KERNEL_VERSION-slitaz
25 xz driver/ndiswrapper.ko
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
32 EXTRAVERSION=_${KERNEL_VERSION%.*}
34 mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
36 # Install utilities
37 install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/
39 cp $src/driver/ndiswrapper.ko.xz \
40 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/
41 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.xz
42 chmod 644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.xz
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 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
55 }