wok view broadcom-wl/receipt @ rev 25689
updated mmv (1.01b-18 -> 2.6)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 13 10:48:47 2024 +0100 (7 months ago) |
parents | 2a1d69e69015 |
children |
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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
21 sed '/hybrid-portsrc_x86_32-v/!d;s|.*hybrid-portsrc_x86_32-v||;s|.tar.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|ndo_set_multicast_list|ndo_set_rx_mode|' src/wl/sys/wl_linux.c
28 sed -i 's|linux/autoconf.h|generated/autoconf.h|' src/include/linuxver.h
29 for i in semaphore 3.4.0 3.6.0 3.8.0 3.9.0 3.14.0 ; do
30 echo "patch $i ..."
31 patch -Np2 -i $stuff/$i.patch
32 done
33 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd`
34 xz wl.ko
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 EXTRAVERSION=_${kvers}
41 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless
42 # Compress and install module
43 install -o root -m 0644 $src/wl.ko.xz \
44 $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless/wl.ko.xz
45 }
47 # Post install/remove commands for Tazpkg.
48 post_install()
49 {
50 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
51 }
53 post_remove()
54 {
55 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
56 }