wok view broadcom-wl/receipt @ rev 17683
Up crosstool-ng (1.20.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 20 21:41:13 2015 +0100 (2015-02-20) |
parents | 445cae9c0563 |
children | 86d61e110274 |
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="http://www.broadcom.com/support/802.11/linux_sta.php"
10 TARBALL="hybrid-portsrc_x86_32-v${VERSION}.tar.gz"
11 WGET_URL="http://www.broadcom.com/docs/linux_sta/$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 patch -Np1 -i $stuff/semaphore.patch
23 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd`
24 xz wl.ko
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 EXTRAVERSION=_${kvers}
31 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless
32 # Compress and install module
33 install -o root -m 0644 $src/wl.ko.xz \
34 $fs/lib/modules/${kvers}-slitaz/kernel/drivers/net/wireless/wl.ko.xz
35 }
37 # Post install/remove commands for Tazpkg.
38 post_install()
39 {
40 echo "Processing post-install commands..."
41 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
42 }
44 post_remove()
45 {
46 echo "Processing post-remove commands..."
47 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
48 }