wok annotate broadcom-wl/receipt @ rev 15374
Up apache-mod-perl (2.0.8)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Oct 17 18:09:17 2013 +0000 (2013-10-17) |
parents | ab6b8c6c469c |
children | 8873e661671a |
rev | line source |
---|---|
jozee@4487 | 1 # SliTaz package receipt. |
jozee@4487 | 2 |
jozee@4487 | 3 PACKAGE="broadcom-wl" |
pascal@12764 | 4 VERSION="5_100_82_112" |
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 WEB_SITE="http://www.broadcom.com/support/802.11/linux_sta.php" |
pascal@12768 | 9 TARBALL="hybrid-portsrc_x86_32-v${VERSION}.tar.gz" |
jozee@4487 | 10 WGET_URL="http://www.broadcom.com/docs/linux_sta/$TARBALL" |
jozee@4932 | 11 TAGS="wireless wifi driver" |
jozee@4487 | 12 |
pascal@15056 | 13 DEPENDS="linux" |
pascal@15056 | 14 BUILD_DEPENDS="linux-module-headers xz" |
pascal@15056 | 15 |
jozee@4487 | 16 # Rules to configure and make the package. |
pascal@15056 | 17 compile_rules() |
pascal@15056 | 18 { |
pascal@13215 | 19 sed -i 's|ndo_set_multicast_list|ndo_set_rx_mode|' src/wl/sys/wl_linux.c |
pascal@5446 | 20 sed -i 's|linux/autoconf.h|generated/autoconf.h|' src/include/linuxver.h |
pankso@9699 | 21 patch -Np1 -i $stuff/semaphore.patch |
slaxemulator@7133 | 22 KBUILD_NOPEDANTIC=1 make -C /usr/src/linux M=`pwd` |
jozee@4487 | 23 } |
jozee@4487 | 24 |
jozee@4487 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4487 | 26 genpkg_rules() |
jozee@4487 | 27 { |
jozee@4487 | 28 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
jozee@4487 | 29 EXTRAVERSION=_$KERNEL_VERSION |
jozee@4487 | 30 |
jozee@4487 | 31 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless |
jozee@4487 | 32 |
jozee@4487 | 33 # Compress and install module |
pascal@13278 | 34 cp $src/wl.ko $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/ |
pascal@13278 | 35 xz $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko |
pascal@13278 | 36 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.xz |
pascal@13278 | 37 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/net/wireless/wl.ko.xz |
jozee@4487 | 38 } |
jozee@4487 | 39 |
jozee@4487 | 40 # Post install/remove commands for Tazpkg. |
jozee@4487 | 41 post_install() |
jozee@4487 | 42 { |
jozee@4487 | 43 echo "Processing post-install commands..." |
jozee@4487 | 44 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
jozee@4487 | 45 } |
jozee@4487 | 46 |
jozee@4487 | 47 post_remove() |
jozee@4487 | 48 { |
jozee@4487 | 49 echo "Processing post-remove commands..." |
slaxemulator@8308 | 50 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
jozee@4487 | 51 } |