wok-next view linux64-md/receipt @ rev 15362

Add some licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 02 13:07:29 2013 +0000 (2013-10-02)
parents 416fab3c90c0
children 051931e905b0
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-md"
4 VERSION="3.2.40"
5 BASEVER="${VERSION:0:3}"
6 CATEGORY="base-system"
7 SHORT_DESC="The Linux kernel md modules."
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="GPL2"
10 DEPENDS="linux64"
11 WANTED="linux"
12 PROVIDE="linux-md"
13 WEB_SITE="http://www.kernel.org/"
14 DEPENDS="linux-crypto"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 local path
20 _pkg=$_pkg/linux64
21 path=lib/modules/$BASEVER-slitaz/kernel
22 mkdir -p $fs/$path
23 export src
24 export _pkg
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 $_pkg/$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 "$1/" depmod -a $BASEVER-slitaz
45 }
47 post_remove()
48 {
49 chroot "$1/" depmod -a $BASEVER-slitaz
50 }