wok-next diff linux-zram/receipt @ rev 19601
Update/recook bunch of packages (some with known cook fails)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 27 15:35:03 2017 +0200 (2017-01-27) |
parents | 119e586fb823 |
children |
line diff
1.1 --- a/linux-zram/receipt Mon Jan 02 07:42:47 2017 +0200 1.2 +++ b/linux-zram/receipt Fri Jan 27 15:35:03 2017 +0200 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="linux-zram" 1.7 -VERSION="4.9.0" 1.8 +VERSION="4.9.4" 1.9 CATEGORY="base-system" 1.10 SHORT_DESC="The Linux Kernel compressed caching support" 1.11 MAINTAINER="devel@slitaz.org" 1.12 @@ -16,8 +16,7 @@ 1.13 # Rules to gen a SliTaz package suitable for Tazpkg. 1.14 genpkg_rules() 1.15 { 1.16 - . $wanted_stuff/copy_modules.sh 1.17 - copy_modules drivers/block/zram 1.18 + . $wanted_stuff/tools/copy_modules.sh 1.19 1.20 mkdir -p $fs/etc/init.d 1.21 install -o root -m 755 $stuff/compcache $fs/etc/init.d/ 1.22 @@ -28,12 +27,12 @@ 1.23 post_install() 1.24 { 1.25 chroot "$1/" depmod -a $VERSION-slitaz && 1.26 - RAM=`cat /proc/meminfo | grep MemTotal | sed s/[^0-9]//g` && 1.27 + RAM=$(cat /proc/meminfo | grep MemTotal | sed s/[^0-9]//g) && 1.28 echo "SIZE_KB="$(($RAM/2)) > /etc/compcache.conf 1.29 - cat <<EOT 1.30 + [ -z "$quiet" ] && cat <<EOT 1.31 1.32 You can add compressed swap according /etc/compcache.conf configuration with: 1.33 # /etc/init.d/compcache start 1.34 -Or add compcache in the RUN_DAEMONS list of /etc/rcS.conf. 1.35 +Or add compcache to the RUN_DAEMONS list of /etc/rcS.conf. 1.36 EOT 1.37 }