commit: aa80e1657779407b696b1ba416febdee944aa2b2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> AuthorDate: Sun Jul 16 08:42:18 2023 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> CommitDate: Thu Aug 17 07:48:49 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa80e165
sys-apps/memtest86+: use secureboot.eclass to sign efi exec Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> sys-apps/memtest86+/memtest86+-6.20-r1.ebuild | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sys-apps/memtest86+/memtest86+-6.20-r1.ebuild b/sys-apps/memtest86+/memtest86+-6.20-r1.ebuild index 91f60527b58c..878d88fd8c30 100644 --- a/sys-apps/memtest86+/memtest86+-6.20-r1.ebuild +++ b/sys-apps/memtest86+/memtest86+-6.20-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit mount-boot toolchain-funcs +inherit mount-boot secureboot toolchain-funcs MY_PV=${PV/_/-} @@ -28,6 +28,12 @@ BDEPEND=" S=${WORKDIR}/memtest86plus-${MY_PV} +pkg_setup() { + if use efi32 || use efi64; then + secureboot_pkg_setup + fi +} + src_prepare() { sed -i \ -e 's#/sbin/mkdosfs#mkfs.vfat#' \ @@ -75,6 +81,10 @@ src_install() { install_memtest_images use iso32 && newins build32/memtest.iso memtest32.iso use iso64 && newins build64/memtest.iso memtest64.iso + + if use efi32 || use efi64; then + secureboot_auto_sign --in-place + fi } pkg_pretend() {