wok-current annotate linux64-zram/receipt @ rev 22788
updated fwbuilder (5.0.0.3568 -> 5.3.7)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jan 27 06:55:09 2020 +0100 (2020-01-27) |
parents | 708b5293dd29 |
children | a1821e12e28a |
rev | line source |
---|---|
pascal@13390 | 1 # SliTaz package receipt. |
pascal@13390 | 2 |
pascal@13390 | 3 PACKAGE="linux64-zram" |
pascal@20261 | 4 VERSION="3.16.55" |
pascal@13390 | 5 CATEGORY="base-system" |
pascal@13390 | 6 SHORT_DESC="Compressed caching" |
pascal@13390 | 7 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 8 LICENSE="GPL2" |
pascal@20421 | 9 WEB_SITE="https://www.kernel.org/" |
pascal@18743 | 10 CONFIG_FILES="/etc/compcache.conf" |
pascal@13391 | 11 WANTED="linux" |
pascal@17031 | 12 PROVIDE="compcache:linux64 linux-zram:linux64" |
pascal@13390 | 13 |
pascal@13391 | 14 DEPENDS="linux64" |
pascal@13390 | 15 |
pascal@13390 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13390 | 17 genpkg_rules() |
pascal@13390 | 18 { |
pascal@13390 | 19 local path |
pascal@17277 | 20 src=$WOK/linux64/source/tmp |
pascal@16657 | 21 install=$install/linux64 |
pascal@17028 | 22 path=lib/modules/$VERSION-slitaz64/kernel |
pascal@13390 | 23 mkdir -p $fs/$path $fs/etc/init.d |
pascal@13390 | 24 export src |
pascal@16657 | 25 export install |
pascal@20261 | 26 $wanted_stuff/list_modules.sh drivers/block/zram | \ |
pascal@13390 | 27 while read module; do |
pascal@13390 | 28 dir=$path/$(dirname $module) |
pascal@13390 | 29 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@16657 | 30 cp -a $install/$path/$module $fs/$dir |
pascal@13390 | 31 done |
pascal@13390 | 32 install -o root -m 755 $stuff/compcache $fs/etc/init.d/ |
pascal@13390 | 33 install -o root -m 644 $stuff/compcache.conf $fs/etc/ |
pascal@13390 | 34 } |
pascal@13390 | 35 |
pascal@13390 | 36 # Post install/remove commands for Tazpkg. |
pascal@13390 | 37 post_install() |
pascal@13390 | 38 { |
pascal@17032 | 39 chroot "$root/" depmod -a $VERSION-slitaz64 |
pascal@18743 | 40 cat <<EOT |
pascal@18745 | 41 |
pascal@18743 | 42 You can add compressed swap according /etc/compcache.conf configuration with: |
pascal@18743 | 43 # /etc/init.d/compcache start |
pascal@18743 | 44 Or add compcache in the RUN_DAEMONS list of /etc/rcS.conf. |
pascal@18743 | 45 EOT |
pascal@13390 | 46 } |
pascal@13390 | 47 |
pascal@13390 | 48 post_remove() |
pascal@13390 | 49 { |
pascal@17032 | 50 chroot "$root/" depmod -a $VERSION-slitaz64 |
pascal@13390 | 51 } |
pascal@13390 | 52 |