wok view linux64-md/receipt @ rev 17427

Up tazlito (5.2.6) & postgrey (1.35)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Dec 05 13:01:58 2014 +0100 (2014-12-05)
parents 51a123a3f6f5
children 08cf996a2307
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:linux64"
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 src=$WOK/linux64/source/tmp
20 install=$install/linux64
21 path=lib/modules/$VERSION-slitaz64/kernel
22 mkdir -p $fs/$path
23 export src
24 export install
25 $wanted_stuff/list_modules.sh drivers/md | while read module; do
26 case "$module" in
27 crypto/*) continue;;
28 esac
29 dir=$path/$(dirname $module)
30 [ -d $fs/$dir ] || mkdir -p $fs/$dir
31 cp -a $install/$path/$module $fs/$dir
32 done
34 for i in $(cat $wanted_stuff/modules.list); do
35 if [ -f $fs/$path/$i ]; then
36 rm -f $fs/$path/$i
37 fi
38 done
39 }
41 # Post install/remove commands for Tazpkg.
42 post_install()
43 {
44 chroot "$root/" depmod -a $VERSION-slitaz64
45 }
47 post_remove()
48 {
49 chroot "$root/" depmod -a $VERSION-slitaz64
50 }