wok view linux64-md/receipt @ rev 18296

Up linux (3.2.71)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 17 11:03:13 2015 +0200 (2015-08-17)
parents 4ad2325946cd
children ffc20f9bd49f
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-md"
4 VERSION="3.2.71"
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 }