wok-6.x annotate ndiswrapper-driver/receipt @ rev 24510

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