wok view efivar/receipt @ rev 23929

efivar: typo in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:25:24 2020 +0000 (2020-09-01)
parents abf3670a5a52
children 5ea0ce1cecc0
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 DEPENDS="gcc83-lib-base"
15 BUILD_DEPENDS="gcc83 icu-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 export CC_FOR_BUILD=gcc-83
21 export COMPILER=gcc-83
22 export CFLAGS="$CFLAGS -I/usr/include/unicode"
24 # replace char16_t by wchar_t:
25 sed -i 's|char16_t|wchar_t|g' src/export.c
27 make libdir=/usr/lib &&
28 make libdir=/usr/lib DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/lib/*.so* $fs/usr/lib
38 }
40 post_install()
41 {
42 # if SliTaz was booted by EFI, mount evivarfs now
43 [ -d /sys/firmware/efi/efivars ] && mount -t efivarfs none /sys/firmware/efi/efivars
44 # and after reboot:
45 # insert mount into /etc/init.d/local.sh
46 grep -qs efivarfs $1/etc/init.d/local.sh ||
47 echo -e "#inserted by post_install of evifar up to END-efivar:
48 [ -d /sys/firmware/efi/efivars ] && mount -t efivarfs none /sys/firmware/efi/efivars
49 #END-efivar" >>$1/etc/init.d/local.sh
50 }