wok-current annotate ndiswrapper-driver64/receipt @ rev 23702
Up tazlito (525)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 28 07:57:17 2020 +0000 (2020-04-28) |
parents | 20661c276bcf |
children | afae00265386 |
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@20394 | 22 # Rules to configure and make the package. |
pascal@20394 | 23 compile_rules() |
pascal@20394 | 24 { |
pascal@20394 | 25 sed -i 's|error Multiple|echo Multiple|' driver/Makefile |
Hans-G?nter@21530 | 26 |
pascal@20394 | 27 make KBUILD=/usr/src/linux KVER=linux-${kvers}-slitaz64 |
Hans-G?nter@21530 | 28 |
pascal@20394 | 29 xz driver/ndiswrapper.ko |
pascal@20394 | 30 } |
pascal@20394 | 31 |
pascal@20394 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20394 | 33 genpkg_rules() |
pascal@20394 | 34 { |
pascal@20394 | 35 EXTRAVERSION=_${kvers} |
Hans-G?nter@21530 | 36 mkdir -p $fs/sbin |
Hans-G?nter@21530 | 37 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/misc |
pascal@20394 | 38 |
pascal@20394 | 39 # Install utilities |
Hans-G?nter@21530 | 40 install -o root -m 0755 $src/utils/loadndisdriver \ |
Hans-G?nter@21530 | 41 $fs/sbin/ |
pascal@20394 | 42 install -o root -m 0644 $src/driver/ndiswrapper.ko.xz \ |
pascal@20394 | 43 $fs/lib/modules/${kvers}-slitaz64/kernel/misc/ndiswrapper.ko.xz |
pascal@20394 | 44 } |
pascal@20396 | 45 |
pascal@20396 | 46 # Post install/remove commands for Tazpkg. |
pascal@20396 | 47 post_install() |
pascal@20396 | 48 { |
pascal@20396 | 49 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 |
pascal@20396 | 50 } |
pascal@20396 | 51 |
pascal@20396 | 52 post_remove() |
pascal@20396 | 53 { |
pascal@20396 | 54 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 |
pascal@20396 | 55 } |