wok-6.x view ndiswrapper-driver64/receipt @ rev 24483
updated discount and discount-dev (2.2.6 -> 2.2.7)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 18 15:05:42 2022 +0100 (2022-02-18) |
parents | 4e6b812a279f |
children | 25d5b5a73d2e |
line source
1 # SliTaz package receipt.
3 PACKAGE="ndiswrapper-driver64"
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 PROVIDE="ndiswrapper-driver:linux64"
17 DEPENDS="linux64"
18 BUILD_DEPENDS="linux64-module-headers xz uclibc-cross-compiler-x86_64"
20 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - https://sourceforge.net/projects/ndiswrapper/files/stable/ 2>/dev/null | \
26 sed '/scope="row/!d;s|.*/ndiswrapper-||;s|.tar.*||;q'
27 }
29 # Rules to configure and make the package.
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 sed -i 's|error Multiple|echo Multiple|' driver/Makefile
35 make KBUILD=/usr/src/linux KVER=linux-${kvers}-slitaz64
37 xz driver/ndiswrapper.ko
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 EXTRAVERSION=_${kvers}
44 mkdir -p $fs/sbin
45 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/misc
47 # Install utilities
48 install -o root -m 0755 $src/utils/loadndisdriver \
49 $fs/sbin/
50 install -o root -m 0644 $src/driver/ndiswrapper.ko.xz \
51 $fs/lib/modules/${kvers}-slitaz64/kernel/misc/ndiswrapper.ko.xz
52 }
54 # Post install/remove commands for Tazpkg.
55 post_install()
56 {
57 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
58 }
60 post_remove()
61 {
62 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
63 }