wok view linux-zram/receipt @ rev 17871
Add: perl-fcgi FCGI::ProcManager
author | Nathan Neulinger <nneul@neulinger.org> |
---|---|
date | Thu Mar 26 23:41:46 2015 +0000 (2015-03-26) |
parents | db5b03f42dd9 |
children | 08cf996a2307 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-zram"
4 VERSION="3.2.53"
5 CATEGORY="base-system"
6 SHORT_DESC="Compressed caching"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
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/$VERSION-slitaz/kernel
20 mkdir -p $fs/$path $fs/etc/init.d
21 export src install
22 $wanted_stuff/list_modules.sh drivers/staging/zram | \
23 while read module; do
24 dir=$path/$(dirname $module)
25 [ -d $fs/$dir ] || mkdir -p $fs/$dir
26 cp -a $install/$path/$module $fs/$dir
27 done
28 install -o root -m 755 $stuff/compcache $fs/etc/init.d/
29 install -o root -m 644 $stuff/compcache.conf $fs/etc/
30 }
32 # Post install/remove commands for Tazpkg.
33 post_install()
34 {
35 chroot "$root/" depmod -a $VERSION-slitaz &&
36 RAM=`cat /proc/meminfo | grep MemTotal | sed s/[^0-9]//g` &&
37 echo "SIZE_KB="$(($RAM/2)) > /etc/compcache.conf
38 }
40 post_remove()
41 {
42 chroot "$root/" depmod -a $VERSION-slitaz
43 }