wok-current view broadcom-wl/receipt @ rev 25383
updated units (2.19 -> 2.21)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 17:22:12 2022 +0100 (2022-07-30) |
parents | 429cd2dffc4f |
children | c783f5e13c30 |
line source
1 # SliTaz package receipt.
3 PACKAGE="broadcom-wl"
4 VERSION="5_100_82_112"
5 CATEGORY="network"
6 MAINTAINER="jozee@slitaz.org"
7 LICENSE="other"
8 SHORT_DESC="Broadcom 802.11abg Linux STA Networking Drivers"
9 WEB_SITE="https://web.archive.org/web/20150506062632/http://www.broadcom.com/support/802.11/linux_sta.php"
10 TARBALL="hybrid-portsrc_x86_32-v${VERSION}.tar.gz"
11 WGET_URL="ftp://ftp.fr.freebsd.org/mirrors/rsync.frugalware.org/frugalware-testing/source/network-extra/bcmwl/$TARBALL"
12 TAGS="wireless wifi driver"
14 DEPENDS="linux"
15 BUILD_DEPENDS="linux-module-headers xz"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i 's|ndo_set_multicast_list|ndo_set_rx_mode|' src/wl/sys/wl_linux.c
21 sed -i 's|linux/autoconf.h|generated/autoconf.h|' src/include/linuxver.h
22 for i in semaphore 3.4.0 3.6.0 3.8.0 3.9.0 3.14.0 ; do
23 echo "patch $i ..."
24 patch -Np2 -i $stuff/$i.patch
25 done
26 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd`
27 xz wl.ko
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 EXTRAVERSION=_${kvers}
34 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless
35 # Compress and install module
36 install -o root -m 0644 $src/wl.ko.xz \
37 $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless/wl.ko.xz
38 }
40 # Post install/remove commands for Tazpkg.
41 post_install()
42 {
43 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
44 }
46 post_remove()
47 {
48 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
49 }