commit: 46fb943fda974af0a22f1852fed312deb90c2ecf Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> AuthorDate: Sun Jul 16 08:27:03 2023 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> CommitDate: Thu Aug 17 07:48:47 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46fb943f
sys-firmware/ipxe: use secureboot.eclass to sign efi exec Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> sys-firmware/ipxe/ipxe-1.21.1_p20230601.ebuild | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sys-firmware/ipxe/ipxe-1.21.1_p20230601.ebuild b/sys-firmware/ipxe/ipxe-1.21.1_p20230601.ebuild index 8123927dca19..8f24b1ebc727 100644 --- a/sys-firmware/ipxe/ipxe-1.21.1_p20230601.ebuild +++ b/sys-firmware/ipxe/ipxe-1.21.1_p20230601.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit savedconfig toolchain-funcs +inherit savedconfig secureboot toolchain-funcs # for 1.21.1_p20230601 COMMIT_SHA1="4fa4052c7ebb59e4d4aa396f1563c89118623ec7" @@ -34,6 +34,12 @@ BDEPEND=" x86? ( ${SOURCE_DEPEND} ) )" +pkg_setup() { + if use efi || use efi64; then + secureboot_pkg_setup + fi +} + src_configure() { use binary && return @@ -123,5 +129,9 @@ src_install() { use usb && doins bin/*.usb use lkrn && doins bin/*.lkrn + if use efi || use efi64; then + secureboot_auto_sign --in-place + fi + save_config config/local/general.h }