wok-next view linux64-zram/receipt @ rev 18743
linux*zram: add CONFIG_FILES
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Dec 25 17:07:16 2015 +0100 (2015-12-25) |
parents | 08cf996a2307 |
children | 4197dd116ba7 |
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
41 You can add compressed swap according /etc/compcache.conf configuration with:
43 # /etc/init.d/compcache start
45 Or add compcache in the RUN_DAEMONS list of /etc/rcS.conf.
46 EOT
47 }
49 post_remove()
50 {
51 chroot "$root/" depmod -a $VERSION-slitaz64
52 }