wok-current annotate linux-module-headers/receipt @ rev 25687
Up expat CVE-2024-28757
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Mar 15 07:23:20 2024 +0000 (5 months ago) |
parents | a5920dcf0199 |
children | db14014acdba |
rev | line source |
---|---|
slaxemulator@6707 | 1 # SliTaz package receipt. |
slaxemulator@6707 | 2 |
slaxemulator@6707 | 3 PACKAGE="linux-module-headers" |
shann@25667 | 4 VERSION="5.10.210" |
slaxemulator@6707 | 5 CATEGORY="development" |
slaxemulator@6707 | 6 SHORT_DESC="Header files and scripts for building modules for linux kernel." |
pascal@13025 | 7 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 8 LICENSE="GPL2" |
shann@25634 | 9 DEPENDS="slitaz-toolchain xz" |
slaxemulator@6707 | 10 WANTED="linux" |
pascal@25540 | 11 WEB_SITE="https://kernel.org/" |
pankso@15855 | 12 KVERSION=$VERSION-slitaz |
slaxemulator@6707 | 13 |
slaxemulator@6707 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6707 | 15 genpkg_rules() |
slaxemulator@6707 | 16 { |
pascal@17373 | 17 mkdir -p $fs/lib/modules/$KVERSION $fs/usr |
pascal@17373 | 18 cp -a $install/usr/src $fs/usr |
pascal@20266 | 19 [ -e $fs/usr/src/linux-$VERSION-slitaz/include/linux/version.h ] || |
pascal@20265 | 20 ln -s ../generated/uapi/linux/version.h \ |
pascal@20266 | 21 $fs/usr/src/linux-$VERSION-slitaz/include/linux/version.h |
slaxemulator@6707 | 22 } |
slaxemulator@6707 | 23 |
slaxemulator@7666 | 24 pre_remove() { |
pascal@18730 | 25 if [ -e "$1/usr/src/linux" ]; then |
pascal@18730 | 26 rm -rf "$1/usr/src/linux" |
slaxemulator@7666 | 27 fi |
slaxemulator@7666 | 28 } |
slaxemulator@7666 | 29 |
slaxemulator@7666 | 30 post_install() { |
slaxemulator@7666 | 31 # Added soft link to make it easier to point to kernel folder |
pascal@18730 | 32 [ -L "$1/usr/src/linux" ] && rm -f "$1/usr/src/linux" |
pascal@18730 | 33 ln -sf /usr/src/linux-$KVERSION "$1/usr/src/linux" |
pascal@18831 | 34 ln -sf /usr/src/linux-$KVERSION "$1/lib/modules/$KVERSION/build" |
slaxemulator@7666 | 35 } |