wok-6.x view linux-acpi/receipt @ rev 2987
Up: postfix (2.5.5)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Mon May 11 15:45:26 2009 +0200 (2009-05-11) |
parents | 6b82b3287054 |
children | 9059daaaa23d |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-acpi"
4 VERSION="2.6.25.5"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux kernel acpi modules."
7 DEPENDS="linux"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 WANTED="linux"
10 WEB_SITE="http://www.kernel.org/"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 genpkg_rules()
14 {
15 local path
16 path=lib/modules/$VERSION-slitaz/kernel
17 mkdir -p $fs/$path
18 export src
19 export _pkg
20 $src/list_modules.sh drivers/acpi drivers/misc/thinkpad_acpi.ko.gz \
21 drivers/misc/acer-wmi.ko.gz drivers/misc/asus-laptop.ko.gz \
22 drivers/misc/fujitsu-laptop.ko.gz drivers/misc/msi-laptop.ko.gz \
23 drivers/misc/sony-laptop.ko.gz drivers/misc/tc1100-wmi.ko.gz | \
24 while read module; do
25 dir=$path/$(dirname $module)
26 [ -d $fs/$dir ] || mkdir -p $fs/$dir
27 cp -a $_pkg/$path/$module $fs/$dir
28 done
29 }
31 # Post install/remove commands for Tazpkg.
32 post_install()
33 {
34 chroot "$1/" depmod -a $VERSION-slitaz
35 }
37 post_remove()
38 {
39 depmod -a
40 }