wok annotate broadcom-wl/receipt @ rev 5371
Fixed bug #316 - 3 missing BUILD_DEPENDS in slim package.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Apr 30 03:51:49 2010 +0000 (2010-04-30) |
parents | 4273e906522b |
children | 5b16d6f757fd |
rev | line source |
---|---|
jozee@4487 | 1 # SliTaz package receipt. |
jozee@4487 | 2 |
jozee@4487 | 3 PACKAGE="broadcom-wl" |
pankso@5252 | 4 VERSION="5.60.48.36" |
jozee@4487 | 5 CATEGORY="network" |
jozee@4487 | 6 MAINTAINER="jozee@slitaz.org" |
jozee@4487 | 7 SHORT_DESC="Broadcom 802.11abg Linux STA Networking Drivers" |
jozee@4487 | 8 DEPENDS="linux" |
jozee@4487 | 9 WEB_SITE="http://www.broadcom.com/support/802.11/linux_sta.php" |
jozee@4487 | 10 TARBALL="hybrid-portsrc-x86_32-v${VERSION}.tar.gz" |
jozee@4487 | 11 WGET_URL="http://www.broadcom.com/docs/linux_sta/$TARBALL" |
jozee@4932 | 12 TAGS="wireless wifi driver" |
jozee@4487 | 13 |
jozee@4487 | 14 # Rules to configure and make the package. |
jozee@4487 | 15 |
jozee@4487 | 16 compile_rules() { |
jozee@4487 | 17 |
jozee@4487 | 18 cd $WOK/$PACKAGE |
jozee@4487 | 19 mkdir -p $PACKAGE-$VERSION |
jozee@4487 | 20 mv lib src Makefile $PACKAGE-$VERSION |
jozee@4487 | 21 cd $src |
jozee@4487 | 22 [ -d $WOK/linux/taz ] || tazwok cook linux |
jozee@4487 | 23 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
jozee@4487 | 24 KBUILD_NOPEDANTIC=1 make -C $WOK/linux/linux-$KERNEL_VERSION M=`pwd` |
jozee@4487 | 25 } |
jozee@4487 | 26 |
jozee@4487 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4487 | 28 genpkg_rules() |
jozee@4487 | 29 { |
jozee@4487 | 30 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
jozee@4487 | 31 EXTRAVERSION=_$KERNEL_VERSION |
jozee@4487 | 32 |
jozee@4487 | 33 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless |
jozee@4487 | 34 |
jozee@4487 | 35 # Compress and install module |
jozee@4487 | 36 lzma e $src/wl.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.gz |
jozee@4487 | 37 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.gz |
jozee@4487 | 38 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.gz |
jozee@4487 | 39 } |
jozee@4487 | 40 |
jozee@4487 | 41 # Post install/remove commands for Tazpkg. |
jozee@4487 | 42 post_install() |
jozee@4487 | 43 { |
jozee@4487 | 44 echo "Processing post-install commands..." |
jozee@4487 | 45 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
jozee@4487 | 46 } |
jozee@4487 | 47 |
jozee@4487 | 48 post_remove() |
jozee@4487 | 49 { |
jozee@4487 | 50 echo "Processing post-remove commands..." |
jozee@4487 | 51 depmod -a |
jozee@4487 | 52 } |