wok view ndiswrapper-driver64/receipt @ rev 21054
updated inxi (2.3.0 -> 3.0.32.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 13 14:46:05 2019 +0100 (2019-03-13) |
parents | 45359819b214 |
children | 4e6b812a279f |
line source
1 # SliTaz package receipt.
3 PACKAGE="ndiswrapper-driver64"
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/"
12 WGET_URL="$SF_MIRROR/$SOURCE/stable/$TARBALL"
13 TAGS="windows wireless network"
14 PROVIDE="ndiswrapper-driver:linux64"
16 DEPENDS="linux64"
17 BUILD_DEPENDS="linux64-module-headers xz uclibc-cross-compiler-x86_64"
19 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 sed -i 's|error Multiple|echo Multiple|' driver/Makefile
25 make KBUILD=/usr/src/linux KVER=linux-${kvers}-slitaz64
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/usr/sbin $fs/sbin $fs/lib/modules/${kvers}-slitaz64/kernel/misc
35 # Install utilities
36 install -o root -m 0755 $src/utils/loadndisdriver $fs/sbin/
37 install -o root -m 0644 $src/driver/ndiswrapper.ko.xz \
38 $fs/lib/modules/${kvers}-slitaz64/kernel/misc/ndiswrapper.ko.xz
39 }
41 # Post install/remove commands for Tazpkg.
42 post_install()
43 {
44 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
45 }
47 post_remove()
48 {
49 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
50 }