wok-current view linux-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 months ago)
parents db14014acdba
children b24b6ee1d4d2
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-zram"
4 VERSION="5.10.215"
5 CATEGORY="base-system"
6 SHORT_DESC="Compressed caching"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.kernel.org/"
10 CONFIG_FILES="/etc/compcache.conf"
11 WANTED="linux"
12 PROVIDE="compcache"
14 DEPENDS="linux slitaz-boot-scripts"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 local path
20 path=lib/modules/$VERSION-slitaz/kernel
21 mkdir -p $fs/$path $fs/etc/init.d
22 export src install
23 $wanted_stuff/list_modules.sh drivers/block/zram | \
24 while read module; do
25 dir=$path/$(dirname $module)
26 [ -d $fs/$dir ] || mkdir -p $fs/$dir
27 cp -a $install/$path/$module $fs/$dir
28 done
29 install -o root -m 755 $stuff/compcache $fs/etc/init.d/
30 install -o root -m 644 $stuff/compcache.conf $fs/etc/
31 }
33 # Post install/remove commands for Tazpkg.
34 post_install()
35 {
36 chroot "$root/" depmod -a $VERSION-slitaz
37 grep ^RUN_DAEMONS "$1/etc/rcS.conf" | grep -q "compcache" || sed -i \
38 's/RUN_DAEMONS="/RUN_DAEMONS="compcache /' "$1/etc/rcS.conf"
39 [ -z "$1" ] && /etc/init.d/compcache start
40 }
42 post_remove()
43 {
44 chroot "$root/" depmod -a $VERSION-slitaz
45 }