wok-current view ndiswrapper-driver64/receipt @ rev 24962

updated ndiswrapper packages (1.62 -> 1.63)
author Hans-G?nter Theisgen
date Sun Apr 24 07:20:09 2022 +0100 (2022-04-24)
parents afae00265386
children 6da3642bd96b
line source
1 # SliTaz package receipt.
3 PACKAGE="ndiswrapper-driver64"
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 PROVIDE="ndiswrapper-driver:linux64"
17 DEPENDS="linux64"
18 BUILD_DEPENDS="linux64-module-headers uclibc-cross-compiler-x86_64 xz"
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 \
36 KVER=linux-${kvers}-slitaz64
38 xz driver/ndiswrapper.ko
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 EXTRAVERSION=_${kvers}
45 mkdir -p $fs/sbin
46 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/misc
48 # Install utilities
49 install -o root -m 0755 $src/utils/loadndisdriver \
50 $fs/sbin/
51 install -o root -m 0644 $src/driver/ndiswrapper.ko.xz \
52 $fs/lib/modules/${kvers}-slitaz64/kernel/misc/ndiswrapper.ko.xz
53 }
55 # Post install/remove commands for Tazpkg.
56 post_install()
57 {
58 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
59 }
61 post_remove()
62 {
63 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
64 }