wok-next view efivar/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 6ef8d7e265d4
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="efivar"
4 VERSION="37"
5 CATEGORY="system-tools"
6 SHORT_DESC="Manage UEFI variables."
7 MAINTAINER="maintainer@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 SPLIT="$PACKAGE-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 make libdir=/usr/lib &&
20 make libdir=/usr/lib DESTDIR=$DESTDIR install
21 }
23 post_install()
24 {
25 # if SliTaz was booted by EFI, mount evivarfs now
26 [ -d /sys/firmware/efi/efivars ] && mount -t efivarfs none /sys/firmware/efi/efivars
27 # and after reboot:
28 # insert mount into /etc/init.d/local.sh
29 grep -qs efivarfs $1/etc/init.d/local.sh ||
30 echo -e "#inserted by post_install of evifar up to END-efivar:
31 [ -d /sys/firmware/efi/efivars ] && mount -t efivarfs none /sys/firmware/efi/efivars
32 #END-efivar" >>$1/etc/init.d/local.sh
33 }