wok view ndiswrapper-driver/receipt @ rev 20552

Update get-palemoon for 28.2.2 (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Dec 11 10:30:11 2018 +0100 (2018-12-11)
parents 8a51ff352615
children 20661c276bcf
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/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 {
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 }