wok-current view linux64-md/receipt @ rev 13885
Up: slitaz-base-files (5.4)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Thu Jan 17 19:28:43 2013 +0100 (2013-01-17) |
parents | |
children | 416fab3c90c0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-md"
4 VERSION="3.2.14"
5 BASEVER="${VERSION:0:3}"
6 CATEGORY="base-system"
7 SHORT_DESC="The Linux kernel md modules."
8 MAINTAINER="devel@slitaz.org"
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=$_pkg/linux64
20 path=lib/modules/$BASEVER-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 "$1/" depmod -a $BASEVER-slitaz
44 }
46 post_remove()
47 {
48 chroot "$1/" depmod -a $BASEVER-slitaz
49 }