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