wok view linux-wireless/receipt @ rev 12370
Up: libcdio to 0.83.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Apr 19 21:48:35 2012 +0000 (2012-04-19) |
parents | d1768332cee0 |
children | 829b8ae84e70 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-wireless"
4 VERSION="3.2.14"
5 BASEVER="${VERSION:0:3}"
6 CATEGORY="base-system"
7 SHORT_DESC="The Linux kernel wireless modules."
8 MAINTAINER="devel@slitaz.org"
9 WANTED="linux"
10 WEB_SITE="http://www.kernel.org/"
11 DEPENDS="linux-crypto wireless_tools"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 local path
17 path=lib/modules/$BASEVER-slitaz/kernel
18 mkdir -p $fs/$path
20 export src
21 export _pkg
23 $wanted_stuff/list_modules.sh drivers/net/wireless drivers/staging/wlan-ng \
24 drivers/staging/echo drivers/leds net/wireless net/mac80211 \
25 drivers/staging/rtl8192e/r8192e_pci.ko.gz drivers/staging/rtl8712/r8712u.ko.gz \
26 drivers/staging/rtl8187se/r8187se.ko.gz drivers/staging/rtl8192u/r8192u_usb.ko.gz \
27 drivers/staging/crystalhd/crystalhd.ko.gz \
28 drivers/staging/sm7xx/sm7xx.ko.gz | while read module; do
29 dir=$path/$(dirname $module)
30 [ -d $fs/$dir ] || mkdir -p $fs/$dir
31 cp -a $_pkg/$path/$module $fs/$dir
32 done
34 for i in $(cat $wanted_stuff/modules.list); do
35 if [ -f $fs/$path/$i ]; then
36 rm -f $fs/$path/$i
37 fi
38 done
39 }
41 # Post install/remove commands for Tazpkg.
42 post_install()
43 {
44 chroot "$1/" depmod -a $BASEVER-slitaz
45 }
47 post_remove()
48 {
49 chroot "$1/" depmod -a $BASEVER-slitaz
50 }