wok-6.x view linux64-zram/receipt @ rev 23242

updated nilfs-utils and nilfs-utils-dev (2.2.7 -> 2.2.8)
author Hans-G?nter Theisgen
date Wed Mar 25 09:18:53 2020 +0100 (2020-03-25)
parents 708b5293dd29
children a1821e12e28a
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-zram"
4 VERSION="3.16.55"
5 CATEGORY="base-system"
6 SHORT_DESC="Compressed caching"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://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/block/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 }