wok-current view linux-source/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-source"
4 VERSION="5.10.214"
5 CATEGORY="development"
6 SHORT_DESC="The Linux kernel source files."
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WANTED="linux"
10 WEB_SITE="https://www.kernel.org/"
11 DEPENDS="linux slitaz-toolchain ncurses-dev perl xz lzma patch busybox-boot"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 local _AUFSVER=`grep ^VERSION= $WOK/aufs/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
17 local AUFSDIR="aufs-${_AUFSVER}"
18 mkdir -p $fs/usr/src/kernel-patches \
19 $fs/lib/modules/$VERSION-slitaz \
20 $fs/usr/bin $fs/usr/sbin
21 cp -a $WOK/$WANTED/source/slitaz $fs/usr/src/kernel-patches
22 cp -a $stuff/buildtaz $fs/usr/src/kernel-patches/slitaz
23 cp -a $stuff/make-tazpkg.u $fs/usr/src/kernel-patches/slitaz
24 cp -a $stuff/get-linux-source $fs/usr/bin
25 cp -a $stuff/rdev $fs/usr/sbin
26 ln -s rdev $fs/usr/sbin/rootflags
27 ln -s rdev $fs/usr/sbin/ramsize
28 ln -s rdev $fs/usr/sbin/vidmode
29 sed -i "s|=XXX|=$VERSION|g" $fs/usr/bin/get-linux-source
30 # Copy Aufs2 source files
31 if [ -d $WOK/$WANTED/$AUFSDIR ]; then
32 mkdir $fs/usr/src/kernel-patches/slitaz/aufs2
33 cp -a $WOK/$WANTED/$AUFSDIR/Documentation \
34 $WOK/$WANTED/$AUFSDIR/fs $WOK/$WANTED/$AUFSDIR/include \
35 $fs/usr/src/kernel-patches/slitaz/aufs2
36 fi
37 ln -s /usr/src/linux-$VERSION \
38 $fs/lib/modules/$VERSION-slitaz/source
39 }
41 # Pre and post install commands for Tazpkg.
42 post_install()
43 {
44 rm $1/usr/src/linux 2> /dev/null
45 ln -s linux-$VERSION $1/usr/src/linux
46 }
48 pre_remove()
49 {
50 rm $1/usr/src/linux 2> /dev/null
51 }