wok-current view linux64-md/receipt @ rev 23376

updated perl-net-ldap (0.39 -> 0.66)
author Hans-G?nter Theisgen
date Tue Mar 31 14:06:02 2020 +0100 (2020-03-31)
parents 708b5293dd29
children a23978bfa665
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-md"
4 VERSION="3.16.55"
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="https://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 }