wok view linux-libre-wireless/receipt @ rev 20604

Up linux-libre (3.18.129)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 17 23:42:42 2018 +0100 (10 months ago)
parents 051931e905b0
children 66b9e8e13683
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-libre-wireless"
4 VERSION="3.18.129-gnu"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux Libre kernel wireless modules."
7 MAINTAINER="gokhlayeh@slitaz.org"
8 LICENSE="GPL2"
9 PROVIDE="linux-wireless"
10 WANTED="linux-libre"
11 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/"
12 DEPENDS="linux-libre-crypto wireless_tools"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 local path
18 path=lib/modules/$VERSION-slitaz/kernel
19 mkdir -p $fs/$path
21 export src
22 export _pkg
24 $wanted_stuff/list_modules.sh drivers/net/wireless drivers/staging/wlan-ng \
25 drivers/staging/rt2860 drivers/staging/rt2870 drivers/staging/echo \
26 drivers/leds net/wireless net/mac80211 drivers/staging/rtl8192e/r8192e_pci.ko.xz \
27 drivers/staging/rtl8187se/r8187se.ko.xz \
28 drivers/staging/rtl8192u/r8192u_usb.ko.xz drivers/staging/crystalhd/crystalhd.ko.xz \
29 drivers/staging/sm7xx/sm7xx.ko.xz | while read module; do
30 dir=$path/$(dirname $module)
31 [ -d $fs/$dir ] || mkdir -p $fs/$dir
32 cp -a $install/$path/$module $fs/$dir
33 done
35 for i in $(cat $wanted_stuff/modules-$VERSION.list); do
36 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
37 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
38 fi
39 done
40 }
42 # Post install/remove commands for Tazpkg.
43 post_install()
44 {
45 chroot "$1/" depmod -a $VERSION-slitaz
46 }
48 post_remove()
49 {
50 chroot "$1/" depmod -a $VERSION-slitaz
51 }