wok view linux-md/receipt @ rev 10785

geany: fix icon for desktop file (*.desktop use icon in /usr/share/pixmaps, tig pkg was ok before, dont modify it anymore!!!)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jun 01 14:00:48 2011 +0200 (2011-06-01)
parents 1d89aa1672da
children 6f536abe4f0b
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-md"
4 VERSION="2.6.37"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux kernel md modules."
7 MAINTAINER="devel@slitaz.org"
8 DEPENDS="linux"
9 WANTED="linux"
10 WEB_SITE="http://www.kernel.org/"
11 DEPENDS="linux-crypto"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 local path
17 path=lib/modules/$VERSION-slitaz/kernel
18 mkdir -p $fs/$path
19 export src
20 export _pkg
21 $wanted_stuff/list_modules.sh drivers/md | while read module; do
22 case "$module" in
23 crypto/*) continue;;
24 esac
25 dir=$path/$(dirname $module)
26 [ -d $fs/$dir ] || mkdir -p $fs/$dir
27 cp -a $_pkg/$path/$module $fs/$dir
28 done
30 for i in $(cat $wanted_stuff/modules-$VERSION.list); do
31 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
32 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
33 fi
34 done
35 }
37 # Post install/remove commands for Tazpkg.
38 post_install()
39 {
40 chroot "$1/" depmod -a $VERSION-slitaz
41 }
43 post_remove()
44 {
45 chroot "$1/" depmod -a $VERSION-slitaz
46 }