wok-6.x view linux-zram/receipt @ rev 20165
Up linux (3.2.98) including KPTI to fix Meltdown security vulnerability
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jan 10 15:30:44 2018 +0100 (2018-01-10) |
parents | 4197dd116ba7 |
children | 708b5293dd29 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-zram"
4 VERSION="3.2.98"
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"
14 DEPENDS="linux"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 local path
20 path=lib/modules/$VERSION-slitaz/kernel
21 mkdir -p $fs/$path $fs/etc/init.d
22 export src install
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 $install/$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 "$root/" depmod -a $VERSION-slitaz &&
37 RAM=`cat /proc/meminfo | grep MemTotal | sed s/[^0-9]//g` &&
38 echo "SIZE_KB="$(($RAM/2)) > /etc/compcache.conf
39 cat <<EOT
41 You can add compressed swap according /etc/compcache.conf configuration with:
42 # /etc/init.d/compcache start
43 Or add compcache in the RUN_DAEMONS list of /etc/rcS.conf.
44 EOT
45 }
47 post_remove()
48 {
49 chroot "$root/" depmod -a $VERSION-slitaz
50 }