wok-6.x view broadcom-wl/receipt @ rev 14809
(Up: Apache (2.4.4)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Wed Jul 17 13:31:24 2013 +0200 (2013-07-17) |
parents | ac4d10ab5a3a |
children | a821394747f8 |
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 DEPENDS="linux"
9 BUILD_DEPENDS="linux-module-headers xz"
10 WEB_SITE="http://www.broadcom.com/support/802.11/linux_sta.php"
11 TARBALL="hybrid-portsrc_x86_32-v${VERSION}.tar.gz"
12 WGET_URL="http://www.broadcom.com/docs/linux_sta/$TARBALL"
13 TAGS="wireless wifi driver"
15 # Rules to configure and make the package.
17 compile_rules() {
19 cd $WOK/$PACKAGE
20 mkdir -p $PACKAGE-$VERSION
21 mv lib src Makefile $PACKAGE-$VERSION
22 cd $src
23 sed -i 's|ndo_set_multicast_list|ndo_set_rx_mode|' src/wl/sys/wl_linux.c
24 sed -i 's|linux/autoconf.h|generated/autoconf.h|' src/include/linuxver.h
25 patch -Np1 -i $stuff/semaphore.patch
26 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd`
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
33 EXTRAVERSION=_$KERNEL_VERSION
35 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless
37 # Compress and install module
38 cp $src/wl.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/
39 xz $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko
40 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.xz
41 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.xz
42 }
44 # Post install/remove commands for Tazpkg.
45 post_install()
46 {
47 echo "Processing post-install commands..."
48 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
49 }
51 post_remove()
52 {
53 echo "Processing post-remove commands..."
54 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
55 }