wok view broadcom-wl64/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents 2a1d69e69015
children
line source
1 # SliTaz package receipt.
3 PACKAGE="broadcom-wl64"
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_64-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"
13 PROVIDE="broadcom-wl:linux64"
15 DEPENDS="linux"
16 BUILD_DEPENDS="linux64-module-headers xz uclibc-cross-compiler-x86_64"
18 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
24 sed '/hybrid-portsrc_x86_32-v/!d;s|.*hybrid-portsrc_x86_32-v||;s|.tar.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 sed -i 's|ndo_set_multicast_list|ndo_set_rx_mode|' src/wl/sys/wl_linux.c
31 sed -i 's|linux/autoconf.h|generated/autoconf.h|' src/include/linuxver.h
32 for i in semaphore 3.4.0 3.6.0 3.8.0 3.9.0 3.14.0 ; do
33 echo "patch $i ..."
34 patch -Np2 -i $stuff/$i.patch
35 done
36 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd`
37 xz wl.ko
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 EXTRAVERSION=_${kvers}
44 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/drivers/net/wireless
45 # Compress and install module
46 install -o root -m 0644 $src/wl.ko.xz \
47 $fs/lib/modules/${kvers}-slitaz64/kernel/drivers/net/wireless/wl.ko.xz
48 }
50 # Post install/remove commands for Tazpkg.
51 post_install()
52 {
53 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
54 }
56 post_remove()
57 {
58 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
59 }