wok view linux-libre-acpi/receipt @ rev 19577

unetbootin: slitaz support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 24 11:44:11 2016 +0100 (2016-12-24)
parents ad59999b3fce
children 9e8d7fd12ee2
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-libre-acpi"
4 VERSION="2.6.37-gnu"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux Libre kernel acpi modules."
7 DEPENDS="linux-libre"
8 MAINTAINER="gokhlayeh@slitaz.org"
9 LICENSE="GPL2"
10 PROVIDE="linux-acpi"
11 WANTED="linux-libre"
12 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/"
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
20 export src
21 export _pkg
22 $wanted_stuff/list_modules.sh drivers/acpi drivers/platform/x86/thinkpad_acpi.ko.gz \
23 drivers/platform/x86/asus-laptop.ko.gz drivers/platform/x86/eeepc-wmi.ko.gz \
24 drivers/platform/x86/msi-laptop.ko.gz drivers/platform/x86/panasonic-laptop.ko.gz \
25 drivers/platform/x86/sony-laptop.ko.gz drivers/platform/x86/acer-wmi.ko.gz \
26 drivers/platform/x86/hp-wmi.ko.gz drivers/platform/x86/wmi.ko.gz \
27 drivers/platform/x86/classmate-laptop.ko.gz drivers/platform/x86/topstar-laptop.ko.gz | \
28 while read module; do
29 dir=$path/$(dirname $module)
30 [ -d $fs/$dir ] || mkdir -p $fs/$dir
31 cp -a $install/$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 }