commit:     2900f329ad5c0e17c6f29458d05418cdd13e9774
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 12 07:37:29 2023 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Thu Aug 17 07:48:40 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2900f329

sys-boot/syslinux: use secureboot.eclass to sign efi exec

Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sys-boot/syslinux/syslinux-6.04_pre1-r5.ebuild | 10 ++++++++--
 sys-boot/syslinux/syslinux-6.04_pre3-r1.ebuild | 10 ++++++++--
 2 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/sys-boot/syslinux/syslinux-6.04_pre1-r5.ebuild 
b/sys-boot/syslinux/syslinux-6.04_pre1-r5.ebuild
index 61289b005cc2..6b5cb5abcf12 100644
--- a/sys-boot/syslinux/syslinux-6.04_pre1-r5.ebuild
+++ b/sys-boot/syslinux/syslinux-6.04_pre1-r5.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit toolchain-funcs flag-o-matic
+inherit toolchain-funcs flag-o-matic secureboot
 
 DESCRIPTION="SYSLINUX, PXELINUX, ISOLINUX, EXTLINUX and MEMDISK bootloaders"
 HOMEPAGE="https://www.syslinux.org/";
@@ -38,6 +38,10 @@ QA_WX_LOAD="usr/share/syslinux/*"
 QA_PRESTRIPPED="usr/share/syslinux/.*"
 QA_FLAGS_IGNORED=".*"
 
+pkg_setup() {
+       use efi && secureboot_pkg_setup
+}
+
 src_prepare() {
        local PATCHES=(
                "${FILESDIR}/syslinux-6.03-sysmacros.patch"
@@ -85,4 +89,6 @@ src_install() {
        fi
        einstalldocs
        dostrip -x /usr/share/syslinux
+
+       use efi && secureboot_auto_sign --in-place
 }

diff --git a/sys-boot/syslinux/syslinux-6.04_pre3-r1.ebuild 
b/sys-boot/syslinux/syslinux-6.04_pre3-r1.ebuild
index e42f6139206e..b483d5b273d2 100644
--- a/sys-boot/syslinux/syslinux-6.04_pre3-r1.ebuild
+++ b/sys-boot/syslinux/syslinux-6.04_pre3-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit toolchain-funcs flag-o-matic
+inherit toolchain-funcs flag-o-matic secureboot
 
 DESCRIPTION="SYSLINUX, PXELINUX, ISOLINUX, EXTLINUX and MEMDISK bootloaders"
 HOMEPAGE="https://www.syslinux.org/";
@@ -41,6 +41,10 @@ QA_WX_LOAD="usr/share/syslinux/*"
 QA_PRESTRIPPED="usr/share/syslinux/.*"
 QA_FLAGS_IGNORED=".*"
 
+pkg_setup() {
+       use efi && secureboot_pkg_setup
+}
+
 src_prepare() {
        local PATCHES=(
                "${FILESDIR}/6.04_pre1"
@@ -102,4 +106,6 @@ src_install() {
        fi
        einstalldocs
        dostrip -x /usr/share/syslinux
+
+       use efi && secureboot_auto_sign --in-place
 }

Reply via email to