wok-next annotate linux-md/receipt @ rev 2012
Up: transmission (0.42)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Jan 08 20:51:25 2009 +0100 (2009-01-08) |
parents | 1bd86206f737 |
children | f306d126580e |
rev | line source |
---|---|
pascal@1026 | 1 # SliTaz package receipt. |
pascal@1026 | 2 |
pascal@1026 | 3 PACKAGE="linux-md" |
pascal@1026 | 4 VERSION="2.6.25.5" |
pascal@1026 | 5 CATEGORY="base-system" |
pascal@1026 | 6 SHORT_DESC="The Linux kernel md modules." |
pascal@1026 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1026 | 8 WANTED="linux" |
pascal@1026 | 9 WEB_SITE="http://www.kernel.org/" |
pascal@1028 | 10 DEPENDS="linux-crypto" |
pascal@1026 | 11 |
pascal@1026 | 12 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1026 | 13 genpkg_rules() |
pascal@1026 | 14 { |
pascal@1026 | 15 local path |
pascal@1026 | 16 path=lib/modules/$VERSION-slitaz/kernel |
pascal@1026 | 17 mkdir -p $fs/$path |
pascal@1026 | 18 export src |
pascal@1026 | 19 export _pkg |
pascal@1026 | 20 $src/list_modules.sh drivers/md | while read module; do |
pascal@1028 | 21 case "$module" in |
pascal@1028 | 22 crypto/*) continue;; |
pascal@1028 | 23 esac |
pascal@1026 | 24 dir=$path/$(dirname $module) |
pascal@1026 | 25 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@1026 | 26 cp -a $_pkg/$path/$module $fs/$dir |
pascal@1026 | 27 done |
pascal@1026 | 28 } |
pascal@1026 | 29 |
pascal@1026 | 30 # Post install/remove commands for Tazpkg. |
pascal@1026 | 31 post_install() |
pascal@1026 | 32 { |
pascal@1026 | 33 depmod -a -b "$1/" $VERSION-slitaz |
pascal@1026 | 34 } |
pascal@1026 | 35 |
pascal@1026 | 36 post_remove() |
pascal@1026 | 37 { |
pascal@1026 | 38 depmod -a $VERSION-slitaz |
pascal@1026 | 39 } |
pascal@1026 | 40 |