# HG changeset patch # User Hans-G?nter Theisgen # Date 1598943408 -3600 # Node ID abf3670a5a526505b892be058fd0e8603d5cc532 # Parent f1f49f4e12a097c2938af12db052c01ca1e5f168 created recipes for efivar, efivar-dev and efibootmgr diff -r f1f49f4e12a0 -r abf3670a5a52 efibootmgr/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/efibootmgr/description.txt Tue Sep 01 07:56:48 2020 +0100 @@ -0,0 +1,10 @@ +This is efibootmgr, a Linux user-space application to modify the +Intel Extensible Firmware Interface (EFI) Boot Manager. +This application can create and destroy boot entries, change the +boot order, change the next running boot option, and more. + +Details on the EFI Boot Manager are available from the EFI Specification, +v1.02 or above, available from: http://www.uefi.org + +Note: efibootmgr requires that the kernel module efivars be loaded +prior to use. Running modprobe efivars should do the trick. diff -r f1f49f4e12a0 -r abf3670a5a52 efibootmgr/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/efibootmgr/receipt Tue Sep 01 07:56:48 2020 +0100 @@ -0,0 +1,34 @@ +# SliTaz package receipt. + +PACKAGE="efibootmgr" +VERSION="16" +CATEGORY="system-tools" +SHORT_DESC="Manage UEFI boot manager variables." +MAINTAINER="maintainer@slitaz.org" +LICENSE="GPLv2+" +WEB_SITE="https://github.com/rhinstaller/efibootmgr" + +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="https://github.com/rhboot/efibootmgr/archive/$VERSION.tar.gz" + +DEPENDS="efivar gcc83-lib-base popt" +BUILD_DEPENDS="efivar-dev gcc83 icu-dev popt-dev" + +# Rules to configure and make the package. +compile_rules() +{ + export EFIDIR=/boot/efi + export CC=gcc-83 + export COMPILER=gcc-83 + export CFLAGS="$CFLAGS -I/usr/include/unicode -I/usr/include/efivar" + + make libdir=/usr/lib && + make libdir=/usr/lib DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $install/usr/sbin $fs/usr +} diff -r f1f49f4e12a0 -r abf3670a5a52 efivar-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/efivar-dev/receipt Tue Sep 01 07:56:48 2020 +0100 @@ -0,0 +1,20 @@ +# SliTaz package receipt. + +PACKAGE="efivar-dev" +VERSION="37" +CATEGORY="system-tools" +SHORT_DESC="Manage UEFI variables - development files." +MAINTAINER="maintainer@slitaz.org" +LICENSE="LGPLv2.1" +WEB_SITE="https://github.com/rhboot/efivar" + +WANTED="efivar" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + + cp -a $install/usr/include $fs/usr + cp -a $install/usr/lib/pkgconfig $fs/usr/lib +} diff -r f1f49f4e12a0 -r abf3670a5a52 efivar/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/efivar/description.txt Tue Sep 01 07:56:48 2020 +0100 @@ -0,0 +1,1 @@ +Tools and libraries to manipulate EFI variables. diff -r f1f49f4e12a0 -r abf3670a5a52 efivar/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/efivar/receipt Tue Sep 01 07:56:48 2020 +0100 @@ -0,0 +1,50 @@ +# SliTaz package receipt. + +PACKAGE="efivar" +VERSION="37" +CATEGORY="system-tools" +SHORT_DESC="Manage UEFI variables." +MAINTAINER="developer@slitaz.org" +LICENSE="LGPLv2.1" +WEB_SITE="https://github.com/rhboot/efivar" + +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="$WEB_SITE/archive/$VERSION/$TARBALL" + +DEPENDS="gcc83-lib-base" +BUILD_DEPENDS="gcc83 icu-dev" + +# Rules to configure and make the package. +compile_rules() +{ + export CC_FOR_BUILD=gcc-83 + export COMPILER=gcc-83 + export CFLAGS="$CFLAGS -I/usr/include/unicode" + + # replace char16_t by wchar_t: + sed -i 's|char16_t|wchar_t|g' src/export.c + + make libdir=/usr/lib && + make libdir=/usr/lib DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/lib/*.so* $fs/usr/lib +} + +post_install() +{ + # if SliTaz was booted by EFI, mount evivarfs now + [ -d /sys/firmware/efi/efivars ] && mount -t efivarfs none /sys/firmware/efi/efivars + # and after reboot: + # insert mount into /etc/init.d/local.sh + grep efivarfs $1/etc/init.d/local.sh || + echo -e "#inserted by post_install of evifar up to END-efivar: +[ -d /sys/firmware/efi/efivars ] && mount -t efivarfs none /sys/firmware/efi/efivars +#END-efivar" >>$1/etc/init.d/local.sh +}