wok-current view linux-pae-zram/receipt @ rev 25702
Up git (CVE-2024-32002,CVE-2024-32004,CVE-2024-32020,CVE-2024-32021,CVE-2024-32465), gdk-pixbuf CVE-2022-48622, up linux 5.10.217
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon May 20 11:38:26 2024 +0000 (6 months ago) |
parents | bf7fc7b1447c |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-pae-zram"
4 VERSION="5.10.217"
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:linux-pae linux-zram:linux-pae"
14 DEPENDS="linux-pae slitaz-boot-scripts"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 local path
20 src=$WOK/linux-pae/source/tmp
21 install=$install/linux-pae
22 path=lib/modules/$VERSION-slitaz-pae/kernel
23 mkdir -p $fs/$path $fs/etc/init.d
24 export src install
25 $wanted_stuff/list_modules.sh drivers/block/zram | \
26 while read module; do
27 dir=$path/$(dirname $module)
28 [ -d $fs/$dir ] || mkdir -p $fs/$dir
29 cp -a $install/$path/$module $fs/$dir
30 done
31 install -o root -m 755 $stuff/compcache $fs/etc/init.d/
32 install -o root -m 644 $stuff/compcache.conf $fs/etc/
33 }
35 # Post install/remove commands for Tazpkg.
36 post_install()
37 {
38 chroot "$root/" depmod -a $VERSION-slitaz-pae
39 grep ^RUN_DAEMONS "$1/etc/rcS.conf" | grep -q "compcache" || sed -i \
40 's/RUN_DAEMONS="/RUN_DAEMONS="compcache /' "$1/etc/rcS.conf"
41 [ -z "$1" ] && /etc/init.d/compcache start
42 }
44 post_remove()
45 {
46 chroot "$root/" depmod -a $VERSION-slitaz-pae
47 }