wok-next rev 4487

Add broadcom wl linux STA wireless driver
author Rohit Joshi <jozee@slitaz.org>
date Wed Nov 18 10:48:21 2009 +0000 (2009-11-18)
parents 638675539fc5
children 61ed234f88e9
files broadcom-wl/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/broadcom-wl/receipt	Wed Nov 18 10:48:21 2009 +0000
     1.3 @@ -0,0 +1,52 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="broadcom-wl"
     1.7 +VERSION="5.10.91.9.3"
     1.8 +CATEGORY="network"
     1.9 +MAINTAINER="jozee@slitaz.org"
    1.10 +SHORT_DESC="Broadcom 802.11abg Linux STA Networking Drivers"
    1.11 +DEPENDS="linux"
    1.12 +WEB_SITE="http://www.broadcom.com/support/802.11/linux_sta.php"
    1.13 +TARBALL="hybrid-portsrc-x86_32-v${VERSION}.tar.gz"
    1.14 +WGET_URL="http://www.broadcom.com/docs/linux_sta/$TARBALL"
    1.15 +TAGS=""
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +
    1.19 +compile_rules() {
    1.20 + 
    1.21 +	cd $WOK/$PACKAGE
    1.22 +	mkdir -p $PACKAGE-$VERSION
    1.23 +	mv lib src Makefile $PACKAGE-$VERSION
    1.24 +	cd $src
    1.25 +	[ -d $WOK/linux/taz ] || tazwok cook linux
    1.26 +	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.27 +	KBUILD_NOPEDANTIC=1 make -C $WOK/linux/linux-$KERNEL_VERSION M=`pwd`
    1.28 +}
    1.29 +
    1.30 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.31 +genpkg_rules()
    1.32 +{
    1.33 +	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.34 +	EXTRAVERSION=_$KERNEL_VERSION
    1.35 +	
    1.36 +	mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless
    1.37 +	
    1.38 +	# Compress and install module
    1.39 +	lzma e $src/wl.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.gz
    1.40 +	chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.gz
    1.41 +	chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.gz
    1.42 +}
    1.43 +
    1.44 +# Post install/remove commands for Tazpkg.
    1.45 +post_install()
    1.46 +{
    1.47 +	echo "Processing post-install commands..."
    1.48 +	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    1.49 +}
    1.50 +
    1.51 +post_remove()
    1.52 +{
    1.53 +	echo "Processing post-remove commands..."
    1.54 +	depmod -a
    1.55 +}