wok-current view linux-api-headers/receipt @ rev 25695
Up linux 5.10.214, Patch xorg-server (CVE-2024-31080, CVE-2024-31081, CVE-2024-31082, CVE-2024-31083)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Apr 04 08:53:51 2024 +0000 (7 months ago) |
parents | 8e3f5f4438f1 |
children | bf7fc7b1447c |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-api-headers"
4 VERSION="5.10.214"
5 KBASEVER="${VERSION%.*}"
6 CATEGORY="development"
7 SHORT_DESC="Kernel headers sanitized for use in userspace."
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="GPL2"
10 SOURCE="linux"
11 TARBALL="$SOURCE-$KBASEVER.tar.xz"
12 WEB_SITE="https://www.kernel.org/"
13 WGET_URL="https://www.kernel.org/pub/linux/kernel/v${KBASEVER%.*}.x/$TARBALL"
14 PROVIDE="linux-headers linux64-api-headers linux64-headers"
16 BUILD_DEPENDS="bash wget"
18 [ "$KBASEVER" != "$VERSION" ] &&
19 PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz" &&
20 EXTRA_SOURCE_FILES="$(basename $PATCH)"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - $WEB_SITE 2> /dev/null | grep -A 1 longterm | \
26 sed '/strong/!d;s|.*<strong>||;s|</s.*||;q'
27 }
29 # Rules to compile & install the temporary toolchain.
30 cook_tmp_toolchain()
31 {
32 cd $src
33 make mrproper &&
34 make headers_check &&
35 make INSTALL_HDR_PATH=dest headers_install &&
36 cp -r dest/include/* /tools/include
37 }
39 # Rules to configure and make the package.
40 compile_rules()
41 {
42 cd $src
44 if [ "$KBASEVER" != "$VERSION" ]; then
45 [ -s $SRC/$(basename $PATCH) ] ||
46 wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH)
47 xzcat $SRC/$(basename $PATCH) | patch -Np1
48 touch done.patch-$VERSION
49 fi
51 make mrproper &&
52 make headers_check &&
53 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr
60 cp -a $install/usr/include $fs/usr
61 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
62 }
64 # Post install commands for Tazpkg.
65 post_install()
66 {
67 # Removed old linux-headers
68 rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null
69 }