wok-current annotate ndiswrapper-driver64/receipt @ rev 24830

busybox-1.31.1: inserted CONFIG_FEATURE_SYSLOG_INFO=y in config and config-ssfs
author Hans-G?nter Theisgen
date Thu Mar 24 06:49:50 2022 +0100 (2022-03-24)
parents 4e6b812a279f
children 25d5b5a73d2e
rev   line source
pascal@20394 1 # SliTaz package receipt.
pascal@20394 2
pascal@20394 3 PACKAGE="ndiswrapper-driver64"
Hans-G?nter@21530 4 VERSION="1.62"
pascal@20394 5 CATEGORY="system-tools"
Hans-G?nter@21530 6 TAGS="windows wireless network"
pascal@20394 7 SHORT_DESC="Add Windows network drivers support to Linux kernel."
pascal@20394 8 MAINTAINER="erjo@slitaz.org"
pascal@20394 9 LICENSE="GPL"
Hans-G?nter@21530 10 WEB_SITE="https://sourceforge.net/projects/ndiswrapper"
Hans-G?nter@21530 11
pascal@20394 12 SOURCE="ndiswrapper"
pascal@20394 13 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@20394 14 WGET_URL="$SF_MIRROR/$SOURCE/stable/$TARBALL"
Hans-G?nter@21530 15
pascal@20395 16 PROVIDE="ndiswrapper-driver:linux64"
pascal@20395 17 DEPENDS="linux64"
pascal@20394 18 BUILD_DEPENDS="linux64-module-headers xz uclibc-cross-compiler-x86_64"
pascal@20394 19
pascal@20394 20 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
pascal@20394 21
pascal@24402 22 # What is the latest version available today?
pascal@24402 23 current_version()
pascal@24402 24 {
pascal@24402 25 wget -O - https://sourceforge.net/projects/ndiswrapper/files/stable/ 2>/dev/null | \
pascal@24402 26 sed '/scope="row/!d;s|.*/ndiswrapper-||;s|.tar.*||;q'
pascal@24402 27 }
pascal@24402 28
pascal@24402 29 # Rules to configure and make the package.
pascal@20394 30 # Rules to configure and make the package.
pascal@20394 31 compile_rules()
pascal@20394 32 {
pascal@20394 33 sed -i 's|error Multiple|echo Multiple|' driver/Makefile
Hans-G?nter@21530 34
pascal@20394 35 make KBUILD=/usr/src/linux KVER=linux-${kvers}-slitaz64
Hans-G?nter@21530 36
pascal@20394 37 xz driver/ndiswrapper.ko
pascal@20394 38 }
pascal@20394 39
pascal@20394 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20394 41 genpkg_rules()
pascal@20394 42 {
pascal@20394 43 EXTRAVERSION=_${kvers}
Hans-G?nter@21530 44 mkdir -p $fs/sbin
Hans-G?nter@21530 45 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/misc
pascal@20394 46
pascal@20394 47 # Install utilities
Hans-G?nter@21530 48 install -o root -m 0755 $src/utils/loadndisdriver \
Hans-G?nter@21530 49 $fs/sbin/
pascal@20394 50 install -o root -m 0644 $src/driver/ndiswrapper.ko.xz \
pascal@20394 51 $fs/lib/modules/${kvers}-slitaz64/kernel/misc/ndiswrapper.ko.xz
pascal@20394 52 }
pascal@20396 53
pascal@20396 54 # Post install/remove commands for Tazpkg.
pascal@20396 55 post_install()
pascal@20396 56 {
pascal@20396 57 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
pascal@20396 58 }
pascal@20396 59
pascal@20396 60 post_remove()
pascal@20396 61 {
pascal@20396 62 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
pascal@20396 63 }