wok annotate broadcom-wl/receipt @ rev 22080
updated unrar (5.4.5 -> 5.8.3)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Oct 29 17:51:33 2019 +0100 (2019-10-29) |
parents | 10a263b71ff0 |
children | 429cd2dffc4f |
rev | line source |
---|---|
jozee@4487 | 1 # SliTaz package receipt. |
jozee@4487 | 2 |
jozee@4487 | 3 PACKAGE="broadcom-wl" |
pascal@12764 | 4 VERSION="5_100_82_112" |
jozee@4487 | 5 CATEGORY="network" |
jozee@4487 | 6 MAINTAINER="jozee@slitaz.org" |
pascal@15610 | 7 LICENSE="other" |
jozee@4487 | 8 SHORT_DESC="Broadcom 802.11abg Linux STA Networking Drivers" |
jozee@4487 | 9 WEB_SITE="http://www.broadcom.com/support/802.11/linux_sta.php" |
pascal@12768 | 10 TARBALL="hybrid-portsrc_x86_32-v${VERSION}.tar.gz" |
jozee@4487 | 11 WGET_URL="http://www.broadcom.com/docs/linux_sta/$TARBALL" |
jozee@4932 | 12 TAGS="wireless wifi driver" |
jozee@4487 | 13 |
pascal@15056 | 14 DEPENDS="linux" |
pascal@15056 | 15 BUILD_DEPENDS="linux-module-headers xz" |
pascal@15056 | 16 |
jozee@4487 | 17 # Rules to configure and make the package. |
pascal@15056 | 18 compile_rules() |
pascal@15056 | 19 { |
pascal@13215 | 20 sed -i 's|ndo_set_multicast_list|ndo_set_rx_mode|' src/wl/sys/wl_linux.c |
pascal@5446 | 21 sed -i 's|linux/autoconf.h|generated/autoconf.h|' src/include/linuxver.h |
pascal@20321 | 22 for i in semaphore 3.4.0 3.6.0 3.8.0 3.9.0 3.14.0 ; do |
pascal@20324 | 23 echo "patch $i ..." |
pascal@20324 | 24 patch -Np2 -i $stuff/$i.patch |
pascal@20286 | 25 done |
slaxemulator@7133 | 26 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd` |
pascal@15621 | 27 xz wl.ko |
jozee@4487 | 28 } |
jozee@4487 | 29 |
jozee@4487 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4487 | 31 genpkg_rules() |
jozee@4487 | 32 { |
pankso@15855 | 33 EXTRAVERSION=_${kvers} |
pankso@15855 | 34 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless |
jozee@4487 | 35 # Compress and install module |
pankso@15855 | 36 install -o root -m 0644 $src/wl.ko.xz \ |
pankso@15855 | 37 $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless/wl.ko.xz |
jozee@4487 | 38 } |
jozee@4487 | 39 |
jozee@4487 | 40 # Post install/remove commands for Tazpkg. |
jozee@4487 | 41 post_install() |
jozee@4487 | 42 { |
al@18673 | 43 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
jozee@4487 | 44 } |
jozee@4487 | 45 |
jozee@4487 | 46 post_remove() |
jozee@4487 | 47 { |
al@18673 | 48 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
jozee@4487 | 49 } |