wok-current annotate linux-aoe/receipt @ rev 12015
Add linux-nbd & linux-aoe
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 06 11:55:34 2012 +0100 (2012-03-06) |
parents | |
children | 829b8ae84e70 |
rev | line source |
---|---|
pascal@12015 | 1 # SliTaz package receipt. |
pascal@12015 | 2 |
pascal@12015 | 3 PACKAGE="linux-aoe" |
pascal@12015 | 4 VERSION="2.6.37" |
pascal@12015 | 5 CATEGORY="base-system" |
pascal@12015 | 6 SHORT_DESC="The Linux kernel ATA over Ethernet modules." |
pascal@12015 | 7 MAINTAINER="devel@slitaz.org" |
pascal@12015 | 8 WANTED="linux" |
pascal@12015 | 9 WEB_SITE="http://www.kernel.org/" |
pascal@12015 | 10 |
pascal@12015 | 11 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@12015 | 12 genpkg_rules() |
pascal@12015 | 13 { |
pascal@12015 | 14 local path |
pascal@12015 | 15 path=lib/modules/$VERSION-slitaz/kernel |
pascal@12015 | 16 mkdir -p $fs/$path |
pascal@12015 | 17 export src |
pascal@12015 | 18 export _pkg |
pascal@12015 | 19 $wanted_stuff/list_modules.sh drivers/block/aoe/aoe.ko.gz | \ |
pascal@12015 | 20 while read module; do |
pascal@12015 | 21 dir=$path/$(dirname $module) |
pascal@12015 | 22 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@12015 | 23 cp -a $_pkg/$path/$module $fs/$dir |
pascal@12015 | 24 done |
pascal@12015 | 25 } |
pascal@12015 | 26 |
pascal@12015 | 27 # Post install/remove commands for Tazpkg. |
pascal@12015 | 28 post_install() |
pascal@12015 | 29 { |
pascal@12015 | 30 chroot "$1/" depmod -a $VERSION-slitaz |
pascal@12015 | 31 } |
pascal@12015 | 32 |
pascal@12015 | 33 post_remove() |
pascal@12015 | 34 { |
pascal@12015 | 35 chroot "$1/" depmod -a $VERSION-slitaz |
pascal@12015 | 36 } |
pascal@12015 | 37 |