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

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

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

 sys-block/perccli/perccli-7.5.007.0529-r2.ebuild | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/sys-block/perccli/perccli-7.5.007.0529-r2.ebuild 
b/sys-block/perccli/perccli-7.5.007.0529-r2.ebuild
index a21847d6bae9..a6a8cab93d8f 100644
--- a/sys-block/perccli/perccli-7.5.007.0529-r2.ebuild
+++ b/sys-block/perccli/perccli-7.5.007.0529-r2.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit mount-boot rpm
+inherit mount-boot rpm secureboot
 
 DESCRIPTION="LINUX PERCCLI Utility For All Dell HBA/PERC Controllers"
 
HOMEPAGE="https://www.dell.com/support/home/us/en/19/drivers/driversdetails?driverId=NF8G9";
@@ -22,6 +22,10 @@ 
SRC_URI="https://downloads.dell.com/FOLDER05235308M/1/perccli_linux_NF8G9_A07_7.
 
 S="${WORKDIR}"/perccli_7.5-007.0529_linux
 
+pkg_setup() {
+       use efi && secureboot_pkg_setup
+}
+
 src_unpack() {
        default
        cd "${S}"
@@ -41,4 +45,5 @@ src_install() {
                doexe EFI/perccli.efi
        fi
        use doc && dodoc "${DISTDIR}"/${DISTFILE_DOC}
+       use efi && secureboot_auto_sign --in-place
 }

Reply via email to