wok-current view efivar/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 | 8be07ee3678a |
line source
1 # SliTaz package receipt.
3 PACKAGE="efivar"
4 VERSION="37"
5 CATEGORY="system-tools"
6 SHORT_DESC="Manage UEFI variables."
7 MAINTAINER="developer@slitaz.org"
8 LICENSE="LGPLv2.1"
9 WEB_SITE="https://github.com/rhboot/efivar"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/$VERSION/$TARBALL"
14 BUILD_DEPENDS="icu-dev"
16 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 export CFLAGS="$CFLAGS -I/usr/include/unicode"
27 # replace char16_t by wchar_t:
28 sed -i 's|char16_t|wchar_t|g' src/export.c
30 make libdir=/usr/lib &&
31 make libdir=/usr/lib DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/usr/lib/*.so* $fs/usr/lib
41 }
43 pre_install()
44 {
45 # Ensure we remove previous post_install step
46 sed -i -e '/inserted/,/END-efivar/!b' -e '/#END-efivar/!d;' \
47 -e 'd' $1/etc/init.d/local.sh
48 }
50 post_install()
51 {
52 # if SliTaz was booted by EFI, mount evivarfs now
53 if [ -d /sys/firmware/efi/efivars ]; then
54 grep "^nodev.efivarfs$" /proc/filesystems || modprobe efivarfs
55 mount -t efivarfs none /sys/firmware/efi/efivars
56 fi
57 # and after reboot:
58 # insert mount into /etc/init.d/local.sh
59 grep -qs efivarfs $1/etc/init.d/local.sh ||
60 echo -e "#inserted by post_install of evifar up to END-efivar:
61 if [ -d /sys/firmware/efi/efivars ]; then
62 grep \"^nodev.efivarfs$\" /proc/filesystems || modprobe efivarfs
63 mount -t efivarfs none /sys/firmware/efi/efivars
64 fi
65 #END-efivar" >>$1/etc/init.d/local.sh
66 }