wok-next view linux64-md/receipt @ rev 16341
Add slitaz-arm-rpi (only for ARM arch, hope i486 cooker will handle it)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Apr 12 14:59:28 2014 +0200 (2014-04-12) |
parents | eb689de65d7e |
children | 962f1c89c58a |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-md"
4 VERSION="3.2.53"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux kernel md modules."
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 DEPENDS="linux64"
10 WANTED="linux"
11 PROVIDE="linux-md"
12 WEB_SITE="http://www.kernel.org/"
13 DEPENDS="linux-crypto"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 local path
19 _pkg=$install/linux64
20 path=lib/modules/$VERSION-slitaz/kernel
21 mkdir -p $fs/$path
22 export src
23 export _pkg
24 $wanted_stuff/list_modules.sh drivers/md | while read module; do
25 case "$module" in
26 crypto/*) continue;;
27 esac
28 dir=$path/$(dirname $module)
29 [ -d $fs/$dir ] || mkdir -p $fs/$dir
30 cp -a $_pkg/$path/$module $fs/$dir
31 done
33 for i in $(cat $wanted_stuff/modules.list); do
34 if [ -f $fs/$path/$i ]; then
35 rm -f $fs/$path/$i
36 fi
37 done
38 }
40 # Post install/remove commands for Tazpkg.
41 post_install()
42 {
43 chroot "$root/" depmod -a $VERSION-slitaz
44 }
46 post_remove()
47 {
48 chroot "$root/" depmod -a $VERSION-slitaz
49 }