wok annotate linux-wireless/receipt @ rev 12608

consonance: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 29 09:02:07 2012 +0200 (2012-04-29)
parents d1768332cee0
children 829b8ae84e70
rev   line source
pascal@521 1 # SliTaz package receipt.
pascal@521 2
pascal@521 3 PACKAGE="linux-wireless"
pankso@12285 4 VERSION="3.2.14"
pankso@12285 5 BASEVER="${VERSION:0:3}"
pascal@521 6 CATEGORY="base-system"
pascal@521 7 SHORT_DESC="The Linux kernel wireless modules."
pankso@3864 8 MAINTAINER="devel@slitaz.org"
pascal@521 9 WANTED="linux"
pascal@521 10 WEB_SITE="http://www.kernel.org/"
taziden@1904 11 DEPENDS="linux-crypto wireless_tools"
erjo@1903 12
pascal@521 13 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@521 14 genpkg_rules()
pascal@521 15 {
pascal@521 16 local path
pankso@12285 17 path=lib/modules/$BASEVER-slitaz/kernel
pascal@521 18 mkdir -p $fs/$path
erjo@1851 19
pascal@886 20 export src
pascal@886 21 export _pkg
erjo@1851 22
slaxemulator@9700 23 $wanted_stuff/list_modules.sh drivers/net/wireless drivers/staging/wlan-ng \
pankso@12285 24 drivers/staging/echo drivers/leds net/wireless net/mac80211 \
pankso@12285 25 drivers/staging/rtl8192e/r8192e_pci.ko.gz drivers/staging/rtl8712/r8712u.ko.gz \
pankso@12285 26 drivers/staging/rtl8187se/r8187se.ko.gz drivers/staging/rtl8192u/r8192u_usb.ko.gz \
pankso@12285 27 drivers/staging/crystalhd/crystalhd.ko.gz \
pascal@9060 28 drivers/staging/sm7xx/sm7xx.ko.gz | while read module; do
pascal@521 29 dir=$path/$(dirname $module)
pascal@521 30 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@521 31 cp -a $_pkg/$path/$module $fs/$dir
pascal@886 32 done
slaxemulator@7239 33
pankso@12285 34 for i in $(cat $wanted_stuff/modules.list); do
pankso@12285 35 if [ -f $fs/$path/$i ]; then
pankso@12285 36 rm -f $fs/$path/$i
slaxemulator@7239 37 fi
slaxemulator@7239 38 done
pascal@521 39 }
pascal@521 40
pascal@521 41 # Post install/remove commands for Tazpkg.
pascal@521 42 post_install()
pascal@521 43 {
pankso@12285 44 chroot "$1/" depmod -a $BASEVER-slitaz
pascal@521 45 }
pascal@521 46
pascal@521 47 post_remove()
pascal@521 48 {
pankso@12285 49 chroot "$1/" depmod -a $BASEVER-slitaz
pascal@521 50 }
pascal@521 51