wok-current view linux-pae-module-headers/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-pae-module-headers"
4 VERSION="5.10.215"
5 CATEGORY="development"
6 SHORT_DESC="Header files and scripts for building modules for linux kernel."
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 DEPENDS="slitaz-toolchain"
10 WANTED="linux"
11 WEB_SITE="https://kernel.org/"
12 KVERSION=$VERSION-slitaz-pae
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/lib/modules/$KVERSION $fs/usr
18 cp -a $install/linux-pae/usr/src $fs/usr
19 [ -e $fs/usr/src/linux-$VERSION-slitaz-pae/include/linux/version.h ] ||
20 ln -s ../generated/uapi/linux/version.h \
21 $fs/usr/src/linux-$VERSION-slitaz-pae/include/linux/version.h
22 }
24 pre_remove() {
25 if [ -e "$1/usr/src/linux" ]; then
26 rm -rf "$1/usr/src/linux"
27 fi
28 }
30 post_install() {
31 # Added soft link to make it easier to point to kernel folder
32 [ -L "$1/usr/src/linux" ] && rm -f "$1/usr/src/linux"
33 ln -sf /usr/src/linux-$KVERSION "$1/usr/src/linux"
34 ln -sf /usr/src/linux-$KVERSION "$1/lib/modules/$KVERSION/build"
35 }