wok-current rev 23928
created recipes for efivar, efivar-dev and efibootmgr
author | Hans-G?nter Theisgen |
---|---|
date | Tue Sep 01 07:56:48 2020 +0100 (2020-09-01) |
parents | f1f49f4e12a0 |
children | 53e5c9f49c0f |
files | efibootmgr/description.txt efibootmgr/receipt efivar-dev/receipt efivar/description.txt efivar/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/efibootmgr/description.txt Tue Sep 01 07:56:48 2020 +0100 1.3 @@ -0,0 +1,10 @@ 1.4 +This is efibootmgr, a Linux user-space application to modify the 1.5 +Intel Extensible Firmware Interface (EFI) Boot Manager. 1.6 +This application can create and destroy boot entries, change the 1.7 +boot order, change the next running boot option, and more. 1.8 + 1.9 +Details on the EFI Boot Manager are available from the EFI Specification, 1.10 +v1.02 or above, available from: http://www.uefi.org 1.11 + 1.12 +Note: efibootmgr requires that the kernel module efivars be loaded 1.13 +prior to use. Running modprobe efivars should do the trick.
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/efibootmgr/receipt Tue Sep 01 07:56:48 2020 +0100 2.3 @@ -0,0 +1,34 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="efibootmgr" 2.7 +VERSION="16" 2.8 +CATEGORY="system-tools" 2.9 +SHORT_DESC="Manage UEFI boot manager variables." 2.10 +MAINTAINER="maintainer@slitaz.org" 2.11 +LICENSE="GPLv2+" 2.12 +WEB_SITE="https://github.com/rhinstaller/efibootmgr" 2.13 + 2.14 +TARBALL="$PACKAGE-$VERSION.tar.gz" 2.15 +WGET_URL="https://github.com/rhboot/efibootmgr/archive/$VERSION.tar.gz" 2.16 + 2.17 +DEPENDS="efivar gcc83-lib-base popt" 2.18 +BUILD_DEPENDS="efivar-dev gcc83 icu-dev popt-dev" 2.19 + 2.20 +# Rules to configure and make the package. 2.21 +compile_rules() 2.22 +{ 2.23 + export EFIDIR=/boot/efi 2.24 + export CC=gcc-83 2.25 + export COMPILER=gcc-83 2.26 + export CFLAGS="$CFLAGS -I/usr/include/unicode -I/usr/include/efivar" 2.27 + 2.28 + make libdir=/usr/lib && 2.29 + make libdir=/usr/lib DESTDIR=$DESTDIR install 2.30 +} 2.31 + 2.32 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.33 +genpkg_rules() 2.34 +{ 2.35 + mkdir -p $fs/usr 2.36 + cp -a $install/usr/sbin $fs/usr 2.37 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/efivar-dev/receipt Tue Sep 01 07:56:48 2020 +0100 3.3 @@ -0,0 +1,20 @@ 3.4 +# SliTaz package receipt. 3.5 + 3.6 +PACKAGE="efivar-dev" 3.7 +VERSION="37" 3.8 +CATEGORY="system-tools" 3.9 +SHORT_DESC="Manage UEFI variables - development files." 3.10 +MAINTAINER="maintainer@slitaz.org" 3.11 +LICENSE="LGPLv2.1" 3.12 +WEB_SITE="https://github.com/rhboot/efivar" 3.13 + 3.14 +WANTED="efivar" 3.15 + 3.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 3.17 +genpkg_rules() 3.18 +{ 3.19 + mkdir -p $fs/usr/lib 3.20 + 3.21 + cp -a $install/usr/include $fs/usr 3.22 + cp -a $install/usr/lib/pkgconfig $fs/usr/lib 3.23 +}
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/efivar/description.txt Tue Sep 01 07:56:48 2020 +0100 4.3 @@ -0,0 +1,1 @@ 4.4 +Tools and libraries to manipulate EFI variables.
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/efivar/receipt Tue Sep 01 07:56:48 2020 +0100 5.3 @@ -0,0 +1,50 @@ 5.4 +# SliTaz package receipt. 5.5 + 5.6 +PACKAGE="efivar" 5.7 +VERSION="37" 5.8 +CATEGORY="system-tools" 5.9 +SHORT_DESC="Manage UEFI variables." 5.10 +MAINTAINER="developer@slitaz.org" 5.11 +LICENSE="LGPLv2.1" 5.12 +WEB_SITE="https://github.com/rhboot/efivar" 5.13 + 5.14 +TARBALL="$PACKAGE-$VERSION.tar.gz" 5.15 +WGET_URL="$WEB_SITE/archive/$VERSION/$TARBALL" 5.16 + 5.17 +DEPENDS="gcc83-lib-base" 5.18 +BUILD_DEPENDS="gcc83 icu-dev" 5.19 + 5.20 +# Rules to configure and make the package. 5.21 +compile_rules() 5.22 +{ 5.23 + export CC_FOR_BUILD=gcc-83 5.24 + export COMPILER=gcc-83 5.25 + export CFLAGS="$CFLAGS -I/usr/include/unicode" 5.26 + 5.27 + # replace char16_t by wchar_t: 5.28 + sed -i 's|char16_t|wchar_t|g' src/export.c 5.29 + 5.30 + make libdir=/usr/lib && 5.31 + make libdir=/usr/lib DESTDIR=$DESTDIR install 5.32 +} 5.33 + 5.34 +# Rules to gen a SliTaz package suitable for Tazpkg. 5.35 +genpkg_rules() 5.36 +{ 5.37 + mkdir -p $fs/usr/lib 5.38 + 5.39 + cp -a $install/usr/bin $fs/usr 5.40 + cp -a $install/usr/lib/*.so* $fs/usr/lib 5.41 +} 5.42 + 5.43 +post_install() 5.44 +{ 5.45 + # if SliTaz was booted by EFI, mount evivarfs now 5.46 + [ -d /sys/firmware/efi/efivars ] && mount -t efivarfs none /sys/firmware/efi/efivars 5.47 + # and after reboot: 5.48 + # insert mount into /etc/init.d/local.sh 5.49 + grep efivarfs $1/etc/init.d/local.sh || 5.50 + echo -e "#inserted by post_install of evifar up to END-efivar: 5.51 +[ -d /sys/firmware/efi/efivars ] && mount -t efivarfs none /sys/firmware/efi/efivars 5.52 +#END-efivar" >>$1/etc/init.d/local.sh 5.53 +}