wok view broadcom-wl/receipt @ rev 6498
Up: libv4l, libv4l-dev to 0.8.1.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Oct 01 04:09:43 2010 +0000 (2010-10-01) |
parents | 61d60bb7fdb0 |
children | 83c2ce802833 |
line source
1 # SliTaz package receipt.
3 PACKAGE="broadcom-wl"
4 VERSION="5.60.48.36"
5 CATEGORY="network"
6 MAINTAINER="jozee@slitaz.org"
7 SHORT_DESC="Broadcom 802.11abg Linux STA Networking Drivers"
8 DEPENDS="linux"
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 # Rules to configure and make the package.
16 compile_rules() {
18 cd $WOK/$PACKAGE
19 mkdir -p $PACKAGE-$VERSION
20 mv lib src Makefile $PACKAGE-$VERSION
21 cd $src
22 sed -i 's|linux/autoconf.h|generated/autoconf.h|' src/include/linuxver.h
23 [ -d $WOK/linux/taz ] || tazwok cook linux
24 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
25 KBUILD_NOPEDANTIC=1 make -C $WOK/linux/linux-$KERNEL_VERSION M=`pwd`
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
32 EXTRAVERSION=_$KERNEL_VERSION
34 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless
36 # Compress and install module
37 lzma e $src/wl.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.gz
38 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.gz
39 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.gz
40 }
42 # Post install/remove commands for Tazpkg.
43 post_install()
44 {
45 echo "Processing post-install commands..."
46 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
47 }
49 post_remove()
50 {
51 echo "Processing post-remove commands..."
52 depmod -a
53 }