wok-next annotate linux-acpi/receipt @ rev 14754

linux: add default initrd
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 16 20:18:01 2013 +0200 (2013-06-16)
parents 416fab3c90c0
children 051931e905b0
rev   line source
pascal@521 1 # SliTaz package receipt.
pascal@521 2
pascal@521 3 PACKAGE="linux-acpi"
pascal@14175 4 VERSION="3.2.40"
pankso@12285 5 BASEVER="${VERSION:0:3}"
pascal@521 6 CATEGORY="base-system"
pascal@521 7 SHORT_DESC="The Linux kernel acpi modules."
pascal@2926 8 DEPENDS="linux"
pankso@3864 9 MAINTAINER="devel@slitaz.org"
pascal@14657 10 LICENSE="GPL2"
pascal@521 11 WANTED="linux"
pascal@521 12 WEB_SITE="http://www.kernel.org/"
pascal@521 13
pascal@521 14 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@521 15 genpkg_rules()
pascal@521 16 {
pascal@521 17 local path
pankso@12285 18 path=lib/modules/$BASEVER-slitaz/kernel
pascal@521 19 mkdir -p $fs/$path
pascal@886 20 export src
pascal@886 21 export _pkg
pankso@12285 22 $wanted_stuff/list_modules.sh drivers/acpi drivers/platform/x86 | \
pascal@521 23 while read module; do
pascal@521 24 dir=$path/$(dirname $module)
pascal@521 25 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@521 26 cp -a $_pkg/$path/$module $fs/$dir
pascal@886 27 done
slaxemulator@7239 28
pankso@12285 29 for i in $(cat $wanted_stuff/modules.list); do
pankso@12285 30 if [ -f $fs/$path/$i ]; then
pankso@12285 31 rm -f $fs/$path/$i
slaxemulator@7239 32 fi
slaxemulator@7239 33 done
pascal@521 34 }
pascal@521 35
pascal@521 36 # Post install/remove commands for Tazpkg.
pascal@521 37 post_install()
pascal@521 38 {
pankso@12285 39 chroot "$1/" depmod -a $BASEVER-slitaz
pascal@521 40 }
pascal@521 41
pascal@521 42 post_remove()
pascal@521 43 {
pankso@12285 44 chroot "$1/" depmod -a $BASEVER-slitaz
pascal@521 45 }
pascal@521 46