wok-next annotate linux-sched/receipt @ rev 9666
xorg-xrandr: clean-up receipt
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 01 14:19:21 2011 +0200 (2011-05-01) |
parents | 03d4663c81fa |
children | d1768332cee0 |
rev | line source |
---|---|
pascal@2165 | 1 # SliTaz package receipt. |
pascal@2165 | 2 |
pascal@2165 | 3 PACKAGE="linux-sched" |
slaxemulator@8085 | 4 VERSION="2.6.37" |
pascal@2165 | 5 CATEGORY="base-system" |
pascal@2165 | 6 SHORT_DESC="The Linux kernel sched modules." |
pankso@3864 | 7 MAINTAINER="devel@slitaz.org" |
pascal@2926 | 8 DEPENDS="linux" |
pascal@2165 | 9 WANTED="linux" |
pascal@2165 | 10 WEB_SITE="http://www.kernel.org/" |
pascal@2165 | 11 |
pascal@2165 | 12 |
pascal@2165 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2165 | 14 genpkg_rules() |
pascal@2165 | 15 { |
pascal@2165 | 16 local path |
pascal@2165 | 17 path=lib/modules/$VERSION-slitaz/kernel |
pascal@2165 | 18 mkdir -p $fs/$path |
pascal@2165 | 19 |
pascal@2165 | 20 export src |
pascal@2165 | 21 export _pkg |
pascal@2165 | 22 |
slaxemulator@8681 | 23 $WOK/$WANTED/stuff/list_modules.sh net/sched | while read module; do |
pascal@2165 | 24 dir=$path/$(dirname $module) |
pascal@2165 | 25 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@2165 | 26 cp -a $_pkg/$path/$module $fs/$dir |
pascal@2165 | 27 done |
pascal@2165 | 28 } |
pascal@2165 | 29 |
pascal@2165 | 30 # Post install/remove commands for Tazpkg. |
pascal@2165 | 31 post_install() |
pascal@2165 | 32 { |
pascal@2990 | 33 chroot "$1/" depmod -a $VERSION-slitaz |
pascal@2165 | 34 } |
pascal@2165 | 35 |
pascal@2165 | 36 post_remove() |
pascal@2165 | 37 { |
slaxemulator@8681 | 38 chroot "$1/" depmod -a $VERSION-slitaz |
pascal@2165 | 39 } |
pascal@2165 | 40 |