wok-6.x view ndiswrapper-driver/receipt @ rev 21530

updated ndiswrapper packages (1.61 -> 1.62)
author Hans-G?nter Theisgen
date Sat May 04 17:09:57 2019 +0100 (2019-05-04)
parents 20661c276bcf
children afae00265386
line source
1 # SliTaz package receipt.
3 PACKAGE="ndiswrapper-driver"
4 VERSION="1.62"
5 CATEGORY="system-tools"
6 TAGS="windows wireless network"
7 SHORT_DESC="Add Windows network drivers support to Linux kernel."
8 MAINTAINER="erjo@slitaz.org"
9 LICENSE="GPL"
10 WEB_SITE="https://sourceforge.net/projects/ndiswrapper"
12 SOURCE="ndiswrapper"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="$SF_MIRROR/$SOURCE/stable/$TARBALL"
16 DEPENDS="linux"
17 BUILD_DEPENDS="linux-module-headers xz"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -i 's|error Multiple|echo Multiple|' driver/Makefile
24 make KBUILD=/usr/src/linux KVER=linux-${kvers}-slitaz
26 xz driver/ndiswrapper.ko
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 EXTRAVERSION=_${kvers}
33 mkdir -p $fs/sbin
34 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/misc
36 # Install utilities
37 install -o root -m 0755 $src/utils/loadndisdriver \
38 $fs/sbin/
39 install -o root -m 0644 $src/driver/ndiswrapper.ko.xz \
40 $fs/lib/modules/${kvers}-slitaz/kernel/misc/ndiswrapper.ko.xz
41 }
43 # Post install/remove commands for Tazpkg.
44 post_install()
45 {
46 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
47 }
49 post_remove()
50 {
51 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
52 }