commit:     1404bae96d0ffc05360f115e14eed5b569ffaa41
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 31 08:59:25 2024 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Fri Feb  2 06:16:15 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1404bae9

app-crypt/sbctl: add installkernel as optfeature

package installs /usr/lib/kernel/install.d/91-sbctl.install which will be
executed by systemd's kernel-install (i.e. if the systemd-kernel-install
flag is enabled).

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

 app-crypt/sbctl/sbctl-0.11.ebuild | 7 ++++++-
 app-crypt/sbctl/sbctl-0.12.ebuild | 7 ++++++-
 app-crypt/sbctl/sbctl-0.13.ebuild | 9 +++++++--
 3 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/app-crypt/sbctl/sbctl-0.11.ebuild 
b/app-crypt/sbctl/sbctl-0.11.ebuild
index 98476cfb9a1d..a6a4c9eaf55c 100644
--- a/app-crypt/sbctl/sbctl-0.11.ebuild
+++ b/app-crypt/sbctl/sbctl-0.11.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 2022-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -31,3 +31,8 @@ src_unpack() {
 src_install() {
        emake PREFIX="${ED}/usr" install
 }
+
+pkg_postinst() {
+       optfeature "automatically signing installed kernels with sbctl keys on 
each kernel installation" \
+               "sys-kernel/installkernel[systemd]"
+}

diff --git a/app-crypt/sbctl/sbctl-0.12.ebuild 
b/app-crypt/sbctl/sbctl-0.12.ebuild
index 6d78f5f02945..a6e253342933 100644
--- a/app-crypt/sbctl/sbctl-0.12.ebuild
+++ b/app-crypt/sbctl/sbctl-0.12.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 2022-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -31,3 +31,8 @@ src_unpack() {
 src_install() {
        emake PREFIX="${ED}/usr" install
 }
+
+pkg_postinst() {
+       optfeature "automatically signing installed kernels with sbctl keys on 
each kernel installation" \
+               "sys-kernel/installkernel[systemd]"
+}

diff --git a/app-crypt/sbctl/sbctl-0.13.ebuild 
b/app-crypt/sbctl/sbctl-0.13.ebuild
index 6d78f5f02945..97f67663daf4 100644
--- a/app-crypt/sbctl/sbctl-0.13.ebuild
+++ b/app-crypt/sbctl/sbctl-0.13.ebuild
@@ -1,9 +1,9 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 2022-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit go-module verify-sig
+inherit go-module optfeature verify-sig
 
 DESCRIPTION="Secure Boot key manager"
 HOMEPAGE="https://github.com/Foxboron/sbctl";
@@ -31,3 +31,8 @@ src_unpack() {
 src_install() {
        emake PREFIX="${ED}/usr" install
 }
+
+pkg_postinst() {
+       optfeature "automatically signing installed kernels with sbctl keys on 
each kernel installation" \
+               "sys-kernel/installkernel[systemd]"
+}

Reply via email to