wok-current view linux-pae-aufs/receipt @ rev 25659

Update expat CVE-2023-52425,CVE-2023-52426, patch libxml2 CVE-2024-25062
author Stanislas Leduc <shann@slitaz.org>
date Sun Feb 18 10:03:28 2024 +0000 (10 months ago)
parents 3ad63c8fc2f9
children 8e3f5f4438f1
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-pae-aufs"
4 SOURCE="aufs"
5 VERSION="20200622"
6 CATEGORY="base-system"
7 SHORT_DESC="aufs4 kernel module"
8 MAINTAINER="godane@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://aufs.sf.net/"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WGET_URL="git|https://github.com/sfjro/aufs4-standalone.git"
13 BRANCH="origin/${PACKAGE}4.19"
14 PROVIDE="linux-aufs:linux-pae"
16 DEPENDS="linux-pae"
17 BUILD_DEPENDS="linux-pae-module-headers git xz"
19 # Use cross toolchain instead uclibc
21 current_version()
22 {
23 wget -O - https://sourceforge.net/p/aufs/aufs4-standalone/ci/${BRANCH#*linux-}/tree/ 2> /dev/null | \
24 sed '/History/!d;s|.*href="|https://sourceforge.net|;s|".*||' | xargs wget -O - 2> /dev/null | \
25 sed '/markdown_content/!d;s|</p>||;s|.* ||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 # Must match kernel version
32 #[ -d fs ] && rm -rf *
34 if [ ! -d fs ]; then
35 kver=$(. $WOK/linux/receipt ; echo $VERSION)
36 git checkout origin/aufs${kver%.*}
37 fi
39 sed -i \
40 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
41 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
42 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
43 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
44 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
45 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
46 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
47 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
48 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
50 # The sed fixes are from gentoo portage build.
51 sed -i "s:aufs.ko usr/include/uapi/linux/aufs_type.h:aufs.ko:g" Makefile
52 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
53 sed -i "s:__user::g" include/uapi/linux/aufs_type.h
55 sed -i 's/d_u.d_child/d_child/' fs/aufs/dcsub.c fs/aufs/hnotify.c
56 sed -i 's/ d_alias/ d_u.d_alias/' fs/aufs/hnotify.c fs/aufs/export.c
58 make ARCH=i386 KDIR=/usr/src/linux
59 xz -f fs/aufs/aufs.ko
60 }
62 # Rules to gen a SliTaz package suitable for Tazpkg.
63 genpkg_rules()
64 {
65 EXTRAVERSION=_${kvers}
66 mkdir -p $fs/lib/modules/${kvers}-slitaz-pae/kernel/fs/aufs \
67 $install/usr/include/linux
68 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \
69 $fs/lib/modules/${kvers}-slitaz-pae/kernel/fs/aufs/aufs.ko.xz
70 install -o root -m 0644 $src/include/uapi/linux/aufs_type.h \
71 $install/usr/include/linux/aufs_type.h
72 }
74 # Post install/remove commands for Tazpkg.
75 post_install()
76 {
77 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz-pae
78 }
80 post_remove()
81 {
82 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz-pae
83 }