wok-next annotate linux-acpi/receipt @ rev 18117
Up: cookutils (741): add descriptions.txt to the bundle.tar.lzma
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Jun 07 00:49:14 2015 +0300 (2015-06-07) |
parents | eb689de65d7e |
children | 08cf996a2307 |
rev | line source |
---|---|
pascal@521 | 1 # SliTaz package receipt. |
pascal@521 | 2 |
pascal@521 | 3 PACKAGE="linux-acpi" |
pascal@15670 | 4 VERSION="3.2.53" |
pascal@521 | 5 CATEGORY="base-system" |
pascal@521 | 6 SHORT_DESC="The Linux kernel acpi modules." |
pascal@2926 | 7 DEPENDS="linux" |
pankso@3864 | 8 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 9 LICENSE="GPL2" |
pascal@521 | 10 WANTED="linux" |
pascal@521 | 11 WEB_SITE="http://www.kernel.org/" |
pascal@521 | 12 |
pascal@521 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@521 | 14 genpkg_rules() |
pascal@521 | 15 { |
pascal@521 | 16 local path |
pankso@15855 | 17 path=lib/modules/$VERSION-slitaz/kernel |
pascal@521 | 18 mkdir -p $fs/$path |
pankso@15855 | 19 export src install |
pankso@12285 | 20 $wanted_stuff/list_modules.sh drivers/acpi drivers/platform/x86 | \ |
pascal@521 | 21 while read module; do |
pascal@521 | 22 dir=$path/$(dirname $module) |
pascal@521 | 23 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@15603 | 24 cp -a $install/$path/$module $fs/$dir |
pascal@886 | 25 done |
slaxemulator@7239 | 26 |
pankso@12285 | 27 for i in $(cat $wanted_stuff/modules.list); do |
pankso@12285 | 28 if [ -f $fs/$path/$i ]; then |
pankso@15855 | 29 rm -f $fs/$path/$i |
pankso@15855 | 30 fi |
slaxemulator@7239 | 31 done |
pascal@521 | 32 } |
pascal@521 | 33 |
pascal@521 | 34 # Post install/remove commands for Tazpkg. |
pascal@521 | 35 post_install() |
pascal@521 | 36 { |
pankso@15855 | 37 chroot "$root/" depmod -a $VERSION-slitaz |
pascal@521 | 38 } |
pascal@521 | 39 |
pascal@521 | 40 post_remove() |
pascal@521 | 41 { |
pankso@15855 | 42 chroot "$root/" depmod -a $VERSION-slitaz |
pascal@521 | 43 } |
pascal@521 | 44 |