wok-current annotate linux-md/receipt @ rev 15603
Use install instead of _pkg
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Dec 06 10:39:07 2013 +0000 (2013-12-06) |
parents | ad59999b3fce |
children | eb689de65d7e |
rev | line source |
---|---|
pascal@1026 | 1 # SliTaz package receipt. |
pascal@1026 | 2 |
pascal@1026 | 3 PACKAGE="linux-md" |
pascal@14175 | 4 VERSION="3.2.40" |
pankso@12285 | 5 BASEVER="${VERSION:0:3}" |
pascal@1026 | 6 CATEGORY="base-system" |
pascal@1026 | 7 SHORT_DESC="The Linux kernel md modules." |
pankso@3864 | 8 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 9 LICENSE="GPL2" |
pascal@2926 | 10 DEPENDS="linux" |
pascal@1026 | 11 WANTED="linux" |
pascal@1026 | 12 WEB_SITE="http://www.kernel.org/" |
pascal@1028 | 13 DEPENDS="linux-crypto" |
pascal@1026 | 14 |
pascal@1026 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1026 | 16 genpkg_rules() |
pascal@1026 | 17 { |
pascal@1026 | 18 local path |
pankso@12285 | 19 path=lib/modules/$BASEVER-slitaz/kernel |
pascal@1026 | 20 mkdir -p $fs/$path |
pascal@1026 | 21 export src |
pascal@1026 | 22 export _pkg |
slaxemulator@9700 | 23 $wanted_stuff/list_modules.sh drivers/md | while read module; do |
pascal@1028 | 24 case "$module" in |
pascal@1028 | 25 crypto/*) continue;; |
pascal@1028 | 26 esac |
pascal@1026 | 27 dir=$path/$(dirname $module) |
pascal@1026 | 28 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@15603 | 29 cp -a $install/$path/$module $fs/$dir |
pascal@1026 | 30 done |
slaxemulator@7239 | 31 |
pankso@12285 | 32 for i in $(cat $wanted_stuff/modules.list); do |
pankso@12285 | 33 if [ -f $fs/$path/$i ]; then |
pankso@12285 | 34 rm -f $fs/$path/$i |
slaxemulator@7239 | 35 fi |
slaxemulator@7239 | 36 done |
pascal@1026 | 37 } |
pascal@1026 | 38 |
pascal@1026 | 39 # Post install/remove commands for Tazpkg. |
pascal@1026 | 40 post_install() |
pascal@1026 | 41 { |
pankso@12285 | 42 chroot "$1/" depmod -a $BASEVER-slitaz |
pascal@1026 | 43 } |
pascal@1026 | 44 |
pascal@1026 | 45 post_remove() |
pascal@1026 | 46 { |
pankso@12285 | 47 chroot "$1/" depmod -a $BASEVER-slitaz |
pascal@1026 | 48 } |
pascal@1026 | 49 |