commit:     a1f3d15c88e4a9a462fa04fba9602726b817d6b0
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 16 08:20:59 2023 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Thu Aug 17 07:48:45 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1f3d15c

sys-block/sas3flash: use secureboot.eclass to sign efi exec

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

 sys-block/sas3flash/sas3flash-16.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sys-block/sas3flash/sas3flash-16.ebuild 
b/sys-block/sas3flash/sas3flash-16.ebuild
index b1179691af24..94f85c44952a 100644
--- a/sys-block/sas3flash/sas3flash-16.ebuild
+++ b/sys-block/sas3flash/sas3flash-16.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit mount-boot
+inherit mount-boot secureboot
 
 DESCRIPTION="Flash utility for LSI MPT-SAS3 controller"
 
HOMEPAGE="https://www.broadcom.com/products/storage/host-bus-adapters/sas-9300-8e#downloads";
@@ -47,6 +47,10 @@ pkg_nofetch() {
        einfo "${SRC_URI}"
 }
 
+pkg_setup() {
+       use efi && secureboot_pkg_setup
+}
+
 supportedcards() {
        elog "This binary supports should support ALL cards, including, but not"
        elog "limited to the following series:"
@@ -88,6 +92,7 @@ src_install() {
                if use amd64; then
                        doexe 
Installer_P"${PV}"_for_UEFI/sas3flash_udk_uefi_x64_rel/sas3flash.efi
                fi
+               secureboot_auto_sign --in-place
        fi
 
        default

Reply via email to