wok annotate linux-appletalk/receipt @ rev 2926
linux modules depends on depmod
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 07 09:37:08 2009 +0200 (2009-05-07) |
parents | 13c1216335ad |
children | 9059daaaa23d |
rev | line source |
---|---|
pascal@2159 | 1 # SliTaz package receipt. |
pascal@2159 | 2 |
pascal@2159 | 3 PACKAGE="linux-appletalk" |
pascal@2159 | 4 VERSION="2.6.25.5" |
pascal@2159 | 5 CATEGORY="base-system" |
pascal@2159 | 6 SHORT_DESC="The Linux kernel appletalk modules." |
pascal@2159 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@2926 | 8 DEPENDS="linux" |
pascal@2159 | 9 WANTED="linux" |
pascal@2159 | 10 WEB_SITE="http://www.kernel.org/" |
pascal@2159 | 11 |
pascal@2159 | 12 |
pascal@2159 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2159 | 14 genpkg_rules() |
pascal@2159 | 15 { |
pascal@2159 | 16 local path |
pascal@2159 | 17 path=lib/modules/$VERSION-slitaz/kernel |
pascal@2159 | 18 mkdir -p $fs/$path |
pascal@2159 | 19 |
pascal@2159 | 20 export src |
pascal@2159 | 21 export _pkg |
pascal@2159 | 22 |
pascal@2166 | 23 $src/list_modules.sh drivers/net/appletalk net/appletalk \ |
pascal@2166 | 24 net/802/p8022.ko.gz | while read module; do |
pascal@2159 | 25 dir=$path/$(dirname $module) |
pascal@2159 | 26 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@2159 | 27 cp -a $_pkg/$path/$module $fs/$dir |
pascal@2159 | 28 done |
pascal@2159 | 29 } |
pascal@2159 | 30 |
pascal@2159 | 31 # Post install/remove commands for Tazpkg. |
pascal@2159 | 32 post_install() |
pascal@2159 | 33 { |
pascal@2926 | 34 chroot "$1/" depmod -a $VERSION-slitaz |
pascal@2159 | 35 } |
pascal@2159 | 36 |
pascal@2159 | 37 post_remove() |
pascal@2159 | 38 { |
pascal@2159 | 39 depmod -a $VERSION-slitaz |
pascal@2159 | 40 } |
pascal@2159 | 41 |