wok view ndiswrapper-driver/receipt @ rev 25148

updated privoxy (3.0.28 -> 3.0.33)
author Hans-G?nter Theisgen
date Wed Jun 29 16:30:00 2022 +0100 (2022-06-29)
parents 25d5b5a73d2e
children ad0bc3efbf37
line source
1 # SliTaz package receipt.
3 PACKAGE="ndiswrapper-driver"
4 VERSION="1.63"
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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/ndiswrapper/files/stable/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*/ndiswrapper-||;s|.tar.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's|error Multiple|echo Multiple|' driver/Makefile
31 make KBUILD=/usr/src/linux \
32 KVER=linux-${kvers}-slitaz
34 xz driver/ndiswrapper.ko
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 EXTRAVERSION=_${kvers}
41 mkdir -p $fs/sbin
42 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/misc
44 # Install utilities
45 install -o root -m 0755 $src/utils/loadndisdriver \
46 $fs/sbin/
47 install -o root -m 0644 $src/driver/ndiswrapper.ko.xz \
48 $fs/lib/modules/${kvers}-slitaz/kernel/misc/ndiswrapper.ko.xz
49 }
51 # Post install/remove commands for Tazpkg.
52 post_install()
53 {
54 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
55 }
57 post_remove()
58 {
59 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
60 }