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

Up: ufraw (0.18) with Gimp plug-in and maintain package
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 07 23:52:05 2012 +0200 (2012-05-07)
parents abe27fd0192d
children 03a6791abff6
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-libre-wireless"
4 VERSION="2.6.37-libre"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux Libre kernel wireless modules."
7 MAINTAINER="gokhlayeh@slitaz.org"
8 PROVIDE="linux-wireless"
9 WANTED="linux-libre"
10 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/"
11 DEPENDS="linux-libre-crypto wireless_tools"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 local path
17 path=lib/modules/$VERSION-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/rt2860 drivers/staging/rt2870 drivers/staging/echo \
25 drivers/leds net/wireless net/mac80211 drivers/staging/rtl8192e/r8192e_pci.ko.gz \
26 drivers/staging/rtl8187se/r8187se.ko.gz \
27 drivers/staging/rtl8192u/r8192u_usb.ko.gz 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-$VERSION.list); do
35 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
36 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
37 fi
38 done
39 }
41 # Post install/remove commands for Tazpkg.
42 post_install()
43 {
44 chroot "$1/" depmod -a $VERSION-slitaz
45 }
47 post_remove()
48 {
49 chroot "$1/" depmod -a $VERSION-slitaz
50 }