wok-6.x view linux-wireless/receipt @ rev 13214

Up mongodb (2.0.6)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 10 13:21:07 2012 +0200 (2012-08-10)
parents 6f536abe4f0b
children 416fab3c90c0
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.xz drivers/staging/rtl8712/r8712u.ko.xz \
26 drivers/staging/rtl8187se/r8187se.ko.xz drivers/staging/rtl8192u/r8192u_usb.ko.xz \
27 drivers/staging/crystalhd/crystalhd.ko.xz \
28 drivers/staging/sm7xx/sm7xx.ko.xz | 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 }