wok-current annotate broadcom-wl/receipt @ rev 25692

Up gnutls CVE-2024-28834, CVE-2024-28835, Up python3 CVE-2023-52425, CVE-2024-0450, CVE-2023-6597
author Stanislas Leduc <shann@slitaz.org>
date Fri Mar 22 16:28:42 2024 +0000 (6 months ago)
parents c783f5e13c30
children
rev   line source
jozee@4487 1 # SliTaz package receipt.
jozee@4487 2
jozee@4487 3 PACKAGE="broadcom-wl"
shann@25643 4 VERSION="6_30_223_271"
jozee@4487 5 CATEGORY="network"
shann@25643 6 MAINTAINER="maintainer@slitaz.org"
pascal@15610 7 LICENSE="other"
jozee@4487 8 SHORT_DESC="Broadcom 802.11abg Linux STA Networking Drivers"
shann@25643 9 WEB_SITE="https://www.broadcom.com/support/download-search/?pf=Wireless+LAN+Infrastructure"
shann@25643 10 TARBALL="hybrid-v35-nodebug-pcoem-$VERSION.tar.gz"
shann@25643 11 WGET_URL="https://docs.broadcom.com/docs-and-downloads/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 {
shann@25643 20 # Use wlan instead eth
shann@25643 21 sed -i -e '/BRCM_WLAN_IFNAME/s/eth/wlan/' src/wl/sys/wl_linux.c
shann@25643 22
shann@25643 23 while read file; do
shann@25643 24 [ -f done.$file ] && continue
shann@25643 25 echo "Apply $file..."
shann@25643 26 patch -p1 < $stuff/$file || return 1
shann@25643 27 cp $stuff/$file done.$file
shann@25643 28 done <<EOT
shann@25643 29 001-null-pointer-fix.patch
shann@25643 30 002-rdtscl.patch
shann@25643 31 003-linux47.patch
shann@25643 32 004-linux48.patch
shann@25643 33 005-debian-fix-kernel-warnings.patch
shann@25643 34 006-linux411.patch
shann@25643 35 007-linux412.patch
shann@25643 36 008-linux415.patch
shann@25643 37 009-fix_mac_profile_discrepancy.patch
shann@25643 38 014-linux414.patch
shann@25673 39 016-linux51.patch
shann@25673 40 017-linux56.patch
shann@25673 41 018-linux59.patch
shann@25643 42 EOT
shann@25643 43
shann@25643 44 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd`
shann@25643 45 xz wl.ko
jozee@4487 46 }
jozee@4487 47
jozee@4487 48 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@4487 49 genpkg_rules()
jozee@4487 50 {
shann@25643 51 EXTRAVERSION=_${kvers}
shann@25643 52 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless
shann@25643 53 # Compress and install module
shann@25643 54 install -o root -m 0644 $src/wl.ko.xz \
shann@25643 55 $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless/wl.ko.xz
jozee@4487 56 }
jozee@4487 57
jozee@4487 58 # Post install/remove commands for Tazpkg.
jozee@4487 59 post_install()
jozee@4487 60 {
shann@25643 61 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
jozee@4487 62 }
jozee@4487 63
jozee@4487 64 post_remove()
jozee@4487 65 {
shann@25643 66 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
jozee@4487 67 }