wok annotate broadcom-wl/receipt @ rev 20321
Fix busybox, etherboot & mgetty
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 20 21:26:43 2018 +0200 (2018-05-20) |
parents | 5bafc5ba9b44 |
children | 564f7f9745bd |
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@20286 | 23 patch -Np1 -i $stuff/$i.patch |
pascal@20286 | 24 done |
slaxemulator@7133 | 25 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd` |
pascal@15621 | 26 xz wl.ko |
jozee@4487 | 27 } |
jozee@4487 | 28 |
jozee@4487 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4487 | 30 genpkg_rules() |
jozee@4487 | 31 { |
pankso@15855 | 32 EXTRAVERSION=_${kvers} |
pankso@15855 | 33 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless |
jozee@4487 | 34 # Compress and install module |
pankso@15855 | 35 install -o root -m 0644 $src/wl.ko.xz \ |
pankso@15855 | 36 $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless/wl.ko.xz |
jozee@4487 | 37 } |
jozee@4487 | 38 |
jozee@4487 | 39 # Post install/remove commands for Tazpkg. |
jozee@4487 | 40 post_install() |
jozee@4487 | 41 { |
al@18673 | 42 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
jozee@4487 | 43 } |
jozee@4487 | 44 |
jozee@4487 | 45 post_remove() |
jozee@4487 | 46 { |
al@18673 | 47 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
jozee@4487 | 48 } |