wok-6.x view ndiswrapper-driver/receipt @ rev 21104
deluge: update deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 19 13:23:30 2019 +0100 (2019-03-19) |
parents | 45359819b214 |
children | 4e6b812a279f |
line source
1 # SliTaz package receipt.
3 PACKAGE="ndiswrapper-driver"
4 VERSION="1.61"
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/"
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 {
21 sed -i 's|error Multiple|echo Multiple|' driver/Makefile
22 make KBUILD=/usr/src/linux KVER=linux-${kvers}-slitaz
23 xz driver/ndiswrapper.ko
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 EXTRAVERSION=_${kvers}
30 mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/${kvers}-slitaz/kernel/misc
32 # Install utilities
33 install -o root -m 0755 $src/utils/loadndisdriver $fs/sbin/
34 install -o root -m 0644 $src/driver/ndiswrapper.ko.xz \
35 $fs/lib/modules/${kvers}-slitaz/kernel/misc/ndiswrapper.ko.xz
36 }
38 # Post install/remove commands for Tazpkg.
39 post_install()
40 {
41 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
42 }
44 post_remove()
45 {
46 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
47 }