wok-current view broadcom-wl/receipt @ rev 15429
Up: thunderbird-langpack-zh_CN (17.0.9esr)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Nov 03 21:52:58 2013 +0100 (2013-11-03) |
parents | ab6b8c6c469c |
children | 8873e661671a |
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 SHORT_DESC="Broadcom 802.11abg Linux STA Networking Drivers"
8 WEB_SITE="http://www.broadcom.com/support/802.11/linux_sta.php"
9 TARBALL="hybrid-portsrc_x86_32-v${VERSION}.tar.gz"
10 WGET_URL="http://www.broadcom.com/docs/linux_sta/$TARBALL"
11 TAGS="wireless wifi driver"
13 DEPENDS="linux"
14 BUILD_DEPENDS="linux-module-headers xz"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 sed -i 's|ndo_set_multicast_list|ndo_set_rx_mode|' src/wl/sys/wl_linux.c
20 sed -i 's|linux/autoconf.h|generated/autoconf.h|' src/include/linuxver.h
21 patch -Np1 -i $stuff/semaphore.patch
22 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd`
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
29 EXTRAVERSION=_$KERNEL_VERSION
31 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless
33 # Compress and install module
34 cp $src/wl.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/
35 xz $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko
36 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.xz
37 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.xz
38 }
40 # Post install/remove commands for Tazpkg.
41 post_install()
42 {
43 echo "Processing post-install commands..."
44 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
45 }
47 post_remove()
48 {
49 echo "Processing post-remove commands..."
50 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
51 }