wok-current annotate linux-pae-zram/receipt @ rev 25697
Up apache (CVE-2023-38709, CVE-2024-24795, CVE-2024-27316), up libarchive, qemu, add amdgpu/touchpad support and clean modules.list, up website for repology
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue Apr 16 17:00:21 2024 +0000 (7 weeks ago) |
parents | db14014acdba |
children | b24b6ee1d4d2 |
rev | line source |
---|---|
shann@25634 | 1 # SliTaz package receipt. |
shann@25634 | 2 |
shann@25634 | 3 PACKAGE="linux-pae-zram" |
shann@25697 | 4 VERSION="5.10.215" |
shann@25634 | 5 CATEGORY="base-system" |
shann@25634 | 6 SHORT_DESC="Compressed caching" |
shann@25634 | 7 MAINTAINER="devel@slitaz.org" |
shann@25634 | 8 LICENSE="GPL2" |
shann@25634 | 9 WEB_SITE="https://www.kernel.org/" |
shann@25634 | 10 CONFIG_FILES="/etc/compcache.conf" |
shann@25634 | 11 WANTED="linux" |
shann@25634 | 12 PROVIDE="compcache:linux-pae linux-zram:linux-pae" |
shann@25634 | 13 |
shann@25634 | 14 DEPENDS="linux-pae slitaz-boot-scripts" |
shann@25634 | 15 |
shann@25634 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
shann@25634 | 17 genpkg_rules() |
shann@25634 | 18 { |
shann@25634 | 19 local path |
shann@25634 | 20 src=$WOK/linux-pae/source/tmp |
shann@25634 | 21 install=$install/linux-pae |
shann@25634 | 22 path=lib/modules/$VERSION-slitaz-pae/kernel |
shann@25634 | 23 mkdir -p $fs/$path $fs/etc/init.d |
shann@25634 | 24 export src install |
shann@25634 | 25 $wanted_stuff/list_modules.sh drivers/block/zram | \ |
shann@25634 | 26 while read module; do |
shann@25634 | 27 dir=$path/$(dirname $module) |
shann@25634 | 28 [ -d $fs/$dir ] || mkdir -p $fs/$dir |
shann@25634 | 29 cp -a $install/$path/$module $fs/$dir |
shann@25634 | 30 done |
shann@25634 | 31 install -o root -m 755 $stuff/compcache $fs/etc/init.d/ |
shann@25634 | 32 install -o root -m 644 $stuff/compcache.conf $fs/etc/ |
shann@25634 | 33 } |
shann@25634 | 34 |
shann@25634 | 35 # Post install/remove commands for Tazpkg. |
shann@25634 | 36 post_install() |
shann@25634 | 37 { |
shann@25634 | 38 chroot "$root/" depmod -a $VERSION-slitaz-pae |
shann@25634 | 39 grep ^RUN_DAEMONS "$1/etc/rcS.conf" | grep -q "compcache" || sed -i \ |
shann@25634 | 40 's/RUN_DAEMONS="/RUN_DAEMONS="compcache /' "$1/etc/rcS.conf" |
shann@25634 | 41 [ -z "$1" ] && /etc/init.d/compcache start |
shann@25634 | 42 } |
shann@25634 | 43 |
shann@25634 | 44 post_remove() |
shann@25634 | 45 { |
shann@25634 | 46 chroot "$root/" depmod -a $VERSION-slitaz-pae |
shann@25634 | 47 } |
shann@25634 | 48 |