wok-next annotate linux-zram/receipt @ rev 19766
Up cookutils.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jun 12 11:40:38 2017 +0300 (2017-06-12) |
parents | 119e586fb823 |
children |
rev | line source |
---|---|
pascal@13390 | 1 # SliTaz package receipt. |
pascal@13390 | 2 |
pascal@13390 | 3 PACKAGE="linux-zram" |
al@19595 | 4 VERSION="4.9.4" |
pascal@13390 | 5 CATEGORY="base-system" |
al@19583 | 6 SHORT_DESC="The Linux Kernel compressed caching support" |
pascal@13390 | 7 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 8 LICENSE="GPL2" |
al@19583 | 9 WEB_SITE="https://www.kernel.org/" |
pascal@18743 | 10 CONFIG_FILES="/etc/compcache.conf" |
pascal@13390 | 11 PROVIDE="compcache" |
pascal@13390 | 12 |
al@19583 | 13 WANTED="linux" |
pascal@13390 | 14 DEPENDS="linux" |
pascal@13390 | 15 |
pascal@13390 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13390 | 17 genpkg_rules() |
pascal@13390 | 18 { |
al@19595 | 19 . $wanted_stuff/tools/copy_modules.sh |
al@19583 | 20 |
al@19583 | 21 mkdir -p $fs/etc/init.d |
pascal@13390 | 22 install -o root -m 755 $stuff/compcache $fs/etc/init.d/ |
pascal@13390 | 23 install -o root -m 644 $stuff/compcache.conf $fs/etc/ |
pascal@13390 | 24 } |
pascal@13390 | 25 |
pascal@13390 | 26 # Post install/remove commands for Tazpkg. |
pascal@13390 | 27 post_install() |
pascal@13390 | 28 { |
al@19583 | 29 chroot "$1/" depmod -a $VERSION-slitaz && |
al@19595 | 30 RAM=$(cat /proc/meminfo | grep MemTotal | sed s/[^0-9]//g) && |
psychomaniak@16965 | 31 echo "SIZE_KB="$(($RAM/2)) > /etc/compcache.conf |
al@19595 | 32 [ -z "$quiet" ] && cat <<EOT |
pascal@18745 | 33 |
pascal@18743 | 34 You can add compressed swap according /etc/compcache.conf configuration with: |
pascal@18743 | 35 # /etc/init.d/compcache start |
al@19595 | 36 Or add compcache to the RUN_DAEMONS list of /etc/rcS.conf. |
pascal@18743 | 37 EOT |
pascal@13390 | 38 } |