wok-6.x annotate linux64-zram/receipt @ rev 24225
updated perl-io-socket-ssl (2.068 -> 2.073)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 17:41:39 2021 +0100 (2021-12-31) |
parents | a1821e12e28a |
children |
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@23469 | 14 DEPENDS="linux64 slitaz-boot-scripts" |
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@23440 | 24 export src install |
pascal@20261 | 25 $wanted_stuff/list_modules.sh drivers/block/zram | \ |
pascal@13390 | 26 while read module; do |
pascal@13390 | 27 dir=$path/$(dirname $module) |
pascal@13390 | 28 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
pascal@16657 | 29 cp -a $install/$path/$module $fs/$dir |
pascal@13390 | 30 done |
pascal@13390 | 31 install -o root -m 755 $stuff/compcache $fs/etc/init.d/ |
pascal@13390 | 32 install -o root -m 644 $stuff/compcache.conf $fs/etc/ |
pascal@13390 | 33 } |
pascal@13390 | 34 |
pascal@13390 | 35 # Post install/remove commands for Tazpkg. |
pascal@13390 | 36 post_install() |
pascal@13390 | 37 { |
pascal@17032 | 38 chroot "$root/" depmod -a $VERSION-slitaz64 |
pascal@23440 | 39 grep ^RUN_DAEMONS "$1/etc/rcS.conf" | grep -q "compcache" || sed -i \ |
pascal@23440 | 40 's/RUN_DAEMONS="/RUN_DAEMONS="compcache /' "$1/etc/rcS.conf" |
pascal@23440 | 41 [ -z "$1" ] && /etc/init.d/compcache start |
pascal@13390 | 42 } |
pascal@13390 | 43 |
pascal@13390 | 44 post_remove() |
pascal@13390 | 45 { |
pascal@17032 | 46 chroot "$root/" depmod -a $VERSION-slitaz64 |
pascal@13390 | 47 } |
pascal@13390 | 48 |