wok-6.x annotate ndiswrapper-driver64/receipt @ rev 25558

Up libqcow (20221124)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 24 09:03:56 2023 +0000 (18 months ago)
parents ad0bc3efbf37
children
rev   line source
pascal@20394 1 # SliTaz package receipt.
pascal@20394 2
pascal@20394 3 PACKAGE="ndiswrapper-driver64"
Hans-G?nter@24962 4 VERSION="1.63"
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"
pascal@25509 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"
Hans-G?nter@24962 18 BUILD_DEPENDS="linux64-module-headers uclibc-cross-compiler-x86_64 xz"
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
Hans-G?nter@24962 35 make KBUILD=/usr/src/linux \
Hans-G?nter@24962 36 KVER=linux-${kvers}-slitaz64
Hans-G?nter@21530 37
pascal@20394 38 xz driver/ndiswrapper.ko
pascal@20394 39 }
pascal@20394 40
pascal@20394 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20394 42 genpkg_rules()
pascal@20394 43 {
pascal@20394 44 EXTRAVERSION=_${kvers}
Hans-G?nter@21530 45 mkdir -p $fs/sbin
Hans-G?nter@21530 46 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/misc
pascal@20394 47
pascal@20394 48 # Install utilities
Hans-G?nter@21530 49 install -o root -m 0755 $src/utils/loadndisdriver \
Hans-G?nter@21530 50 $fs/sbin/
pascal@20394 51 install -o root -m 0644 $src/driver/ndiswrapper.ko.xz \
pascal@20394 52 $fs/lib/modules/${kvers}-slitaz64/kernel/misc/ndiswrapper.ko.xz
pascal@20394 53 }
pascal@20396 54
pascal@20396 55 # Post install/remove commands for Tazpkg.
pascal@20396 56 post_install()
pascal@20396 57 {
pascal@20396 58 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
pascal@20396 59 }
pascal@20396 60
pascal@20396 61 post_remove()
pascal@20396 62 {
pascal@20396 63 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
pascal@20396 64 }