wok-6.x annotate linux-md/receipt @ rev 7627
Up: gnome-doc-utils to 0.20.2.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Dec 12 16:17:52 2010 +0000 (2010-12-12) |
parents | 5355ffc461cf |
children | 03d4663c81fa |
rev | line source |
---|---|
pascal@1026 | 1 # SliTaz package receipt. |
pascal@1026 | 2 |
pascal@1026 | 3 PACKAGE="linux-md" |
slaxemulator@7131 | 4 VERSION="2.6.36" |
pascal@1026 | 5 CATEGORY="base-system" |
pascal@1026 | 6 SHORT_DESC="The Linux kernel md modules." |
pankso@3864 | 7 MAINTAINER="devel@slitaz.org" |
pascal@2926 | 8 DEPENDS="linux" |
pascal@1026 | 9 WANTED="linux" |
pascal@1026 | 10 WEB_SITE="http://www.kernel.org/" |
pascal@1028 | 11 DEPENDS="linux-crypto" |
pascal@1026 | 12 |
pascal@1026 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1026 | 14 genpkg_rules() |
pascal@1026 | 15 { |
pascal@1026 | 16 local path |
pascal@1026 | 17 path=lib/modules/$VERSION-slitaz/kernel |
pascal@1026 | 18 mkdir -p $fs/$path |
pascal@1026 | 19 export src |
pascal@1026 | 20 export _pkg |
pascal@3920 | 21 $src/slitaz/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@1026 | 27 cp -a $_pkg/$path/$module $fs/$dir |
pascal@1026 | 28 done |
slaxemulator@7239 | 29 |
slaxemulator@7239 | 30 for i in $(cat $WOK/$WANTED/stuff/modules-$VERSION.list); do |
slaxemulator@7239 | 31 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then |
slaxemulator@7239 | 32 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$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 { |
pascal@2990 | 40 chroot "$1/" depmod -a $VERSION-slitaz |
pascal@1026 | 41 } |
pascal@1026 | 42 |
pascal@1026 | 43 post_remove() |
pascal@1026 | 44 { |
pascal@1026 | 45 depmod -a $VERSION-slitaz |
pascal@1026 | 46 } |
pascal@1026 | 47 |