wok-6.x view linux-zram/receipt @ rev 14288

Up: eet (1.7.5)
author Dominique Corbex <domcox@slitaz.org>
date Sun Apr 07 10:00:33 2013 +0200 (2013-04-07)
parents 7d3f6d7f2528
children ad59999b3fce
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-zram"
4 VERSION="3.2.40"
5 BASEVER="${VERSION:0:3}"
6 CATEGORY="base-system"
7 SHORT_DESC="Compressed caching"
8 MAINTAINER="devel@slitaz.org"
9 WEB_SITE="http://www.kernel.org/"
10 WANTED="linux"
11 PROVIDE="compcache"
13 DEPENDS="linux"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 local path
19 path=lib/modules/$BASEVER-slitaz/kernel
20 mkdir -p $fs/$path $fs/etc/init.d
21 export src
22 export _pkg
23 $wanted_stuff/list_modules.sh drivers/staging/zram | \
24 while read module; do
25 dir=$path/$(dirname $module)
26 [ -d $fs/$dir ] || mkdir -p $fs/$dir
27 cp -a $_pkg/$path/$module $fs/$dir
28 done
29 install -o root -m 755 $stuff/compcache $fs/etc/init.d/
30 install -o root -m 644 $stuff/compcache.conf $fs/etc/
31 }
33 # Post install/remove commands for Tazpkg.
34 post_install()
35 {
36 chroot "$1/" depmod -a $BASEVER-slitaz
37 }
39 post_remove()
40 {
41 chroot "$1/" depmod -a $BASEVER-slitaz
42 }