wok-next view linux64-zram/receipt @ rev 18746
marble: one desktop entry only
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 26 11:26:22 2015 +0100 (2015-12-26) |
parents | f432334ec8cf |
children | 119e586fb823 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-zram"
4 VERSION="3.2.71"
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 CONFIG_FILES="/etc/compcache.conf"
11 WANTED="linux"
12 PROVIDE="compcache:linux64 linux-zram:linux64"
14 DEPENDS="linux64"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 local path
20 src=$WOK/linux64/source/tmp
21 install=$install/linux64
22 path=lib/modules/$VERSION-slitaz64/kernel
23 mkdir -p $fs/$path $fs/etc/init.d
24 export src
25 export install
26 $wanted_stuff/list_modules.sh drivers/staging/zram | \
27 while read module; do
28 dir=$path/$(dirname $module)
29 [ -d $fs/$dir ] || mkdir -p $fs/$dir
30 cp -a $install/$path/$module $fs/$dir
31 done
32 install -o root -m 755 $stuff/compcache $fs/etc/init.d/
33 install -o root -m 644 $stuff/compcache.conf $fs/etc/
34 }
36 # Post install/remove commands for Tazpkg.
37 post_install()
38 {
39 chroot "$root/" depmod -a $VERSION-slitaz64
40 cat <<EOT
42 You can add compressed swap according /etc/compcache.conf configuration with:
43 # /etc/init.d/compcache start
44 Or add compcache in the RUN_DAEMONS list of /etc/rcS.conf.
45 EOT
46 }
48 post_remove()
49 {
50 chroot "$root/" depmod -a $VERSION-slitaz64
51 }