wok-current annotate linux-wireless/receipt @ rev 18104
Up zsh (5.0.7)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 01 11:13:52 2015 +0200 (2015-06-01) |
parents | eb689de65d7e |
children | 08cf996a2307 |
rev | line source |
---|---|
pascal@521 | 1 # SliTaz package receipt. |
pascal@521 | 2 |
pascal@521 | 3 PACKAGE="linux-wireless" |
pascal@15670 | 4 VERSION="3.2.53" |
pascal@521 | 5 CATEGORY="base-system" |
pascal@521 | 6 SHORT_DESC="The Linux kernel wireless modules." |
pankso@3864 | 7 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 8 LICENSE="GPL2" |
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@15855 | 17 path=lib/modules/$VERSION-slitaz/kernel |
pascal@521 | 18 mkdir -p $fs/$path |
erjo@1851 | 19 |
pankso@15855 | 20 export src install |
erjo@1851 | 21 |
slaxemulator@9700 | 22 $wanted_stuff/list_modules.sh drivers/net/wireless drivers/staging/wlan-ng \ |
pankso@12285 | 23 drivers/staging/echo drivers/leds net/wireless net/mac80211 \ |
pascal@12638 | 24 drivers/staging/rtl8192e/r8192e_pci.ko.xz drivers/staging/rtl8712/r8712u.ko.xz \ |
pascal@12638 | 25 drivers/staging/rtl8187se/r8187se.ko.xz drivers/staging/rtl8192u/r8192u_usb.ko.xz \ |
pascal@12638 | 26 drivers/staging/crystalhd/crystalhd.ko.xz \ |
pascal@12638 | 27 drivers/staging/sm7xx/sm7xx.ko.xz | while read module; do |
pascal@521 | 28 dir=$path/$(dirname $module) |
pascal@521 | 29 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@15603 | 30 cp -a $install/$path/$module $fs/$dir |
pascal@886 | 31 done |
slaxemulator@7239 | 32 |
pankso@12285 | 33 for i in $(cat $wanted_stuff/modules.list); do |
pankso@12285 | 34 if [ -f $fs/$path/$i ]; then |
pankso@12285 | 35 rm -f $fs/$path/$i |
slaxemulator@7239 | 36 fi |
slaxemulator@7239 | 37 done |
pascal@521 | 38 } |
pascal@521 | 39 |
pascal@521 | 40 # Post install/remove commands for Tazpkg. |
pascal@521 | 41 post_install() |
pascal@521 | 42 { |
pankso@15855 | 43 chroot "$root/" depmod -a $VERSION-slitaz |
pascal@521 | 44 } |
pascal@521 | 45 |
pascal@521 | 46 post_remove() |
pascal@521 | 47 { |
pankso@15855 | 48 chroot "$root/" depmod -a $VERSION-slitaz |
pascal@521 | 49 } |
pascal@521 | 50 |