commit:     cd545283333e436e441b7368381e4b0c252fde3a
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 30 12:56:53 2024 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Fri Feb  2 06:16:11 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd545283

sys-apps/systemd-utils: add installkernel as optfeature

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

 sys-apps/systemd-utils/systemd-utils-254.5-r2.ebuild | 15 ++++++++++++---
 sys-apps/systemd-utils/systemd-utils-254.7.ebuild    | 15 ++++++++++++---
 sys-apps/systemd-utils/systemd-utils-254.8.ebuild    | 13 +++++++++++--
 sys-apps/systemd-utils/systemd-utils-254.9.ebuild    | 13 +++++++++++--
 4 files changed, 46 insertions(+), 10 deletions(-)

diff --git a/sys-apps/systemd-utils/systemd-utils-254.5-r2.ebuild 
b/sys-apps/systemd-utils/systemd-utils-254.5-r2.ebuild
index d31c70d4444c..af0e5dfe3c6a 100644
--- a/sys-apps/systemd-utils/systemd-utils-254.5-r2.ebuild
+++ b/sys-apps/systemd-utils/systemd-utils-254.5-r2.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
@@ -6,8 +6,8 @@ PYTHON_COMPAT=( python3_{10..12} )
 
 QA_PKGCONFIG_VERSION=$(ver_cut 1)
 
-inherit bash-completion-r1 flag-o-matic linux-info meson-multilib 
python-single-r1
-inherit secureboot toolchain-funcs udev usr-ldscript
+inherit bash-completion-r1 flag-o-matic linux-info meson-multilib optfeature
+inherit python-single-r1 secureboot toolchain-funcs udev usr-ldscript
 
 DESCRIPTION="Utilities split out from systemd for OpenRC users"
 HOMEPAGE="https://systemd.io/";
@@ -572,4 +572,13 @@ pkg_postinst() {
                eend $?
                udev_reload
        fi
+
+       if use boot; then
+               optfeature "automatically installing the kernels in 
systemd-boot's native layout and updating the bootloader configuration" \
+                       "sys-kernel/installkernel[systemd-boot]"
+       fi
+       if use ukify; then
+               optfeature "automatically generating an unified kernel image on 
each kernel installation" \
+                       "sys-kernel/installkernel[ukify]"
+       fi
 }

diff --git a/sys-apps/systemd-utils/systemd-utils-254.7.ebuild 
b/sys-apps/systemd-utils/systemd-utils-254.7.ebuild
index d31c70d4444c..af0e5dfe3c6a 100644
--- a/sys-apps/systemd-utils/systemd-utils-254.7.ebuild
+++ b/sys-apps/systemd-utils/systemd-utils-254.7.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
@@ -6,8 +6,8 @@ PYTHON_COMPAT=( python3_{10..12} )
 
 QA_PKGCONFIG_VERSION=$(ver_cut 1)
 
-inherit bash-completion-r1 flag-o-matic linux-info meson-multilib 
python-single-r1
-inherit secureboot toolchain-funcs udev usr-ldscript
+inherit bash-completion-r1 flag-o-matic linux-info meson-multilib optfeature
+inherit python-single-r1 secureboot toolchain-funcs udev usr-ldscript
 
 DESCRIPTION="Utilities split out from systemd for OpenRC users"
 HOMEPAGE="https://systemd.io/";
@@ -572,4 +572,13 @@ pkg_postinst() {
                eend $?
                udev_reload
        fi
+
+       if use boot; then
+               optfeature "automatically installing the kernels in 
systemd-boot's native layout and updating the bootloader configuration" \
+                       "sys-kernel/installkernel[systemd-boot]"
+       fi
+       if use ukify; then
+               optfeature "automatically generating an unified kernel image on 
each kernel installation" \
+                       "sys-kernel/installkernel[ukify]"
+       fi
 }

diff --git a/sys-apps/systemd-utils/systemd-utils-254.8.ebuild 
b/sys-apps/systemd-utils/systemd-utils-254.8.ebuild
index e47cf8444027..af0e5dfe3c6a 100644
--- a/sys-apps/systemd-utils/systemd-utils-254.8.ebuild
+++ b/sys-apps/systemd-utils/systemd-utils-254.8.ebuild
@@ -6,8 +6,8 @@ PYTHON_COMPAT=( python3_{10..12} )
 
 QA_PKGCONFIG_VERSION=$(ver_cut 1)
 
-inherit bash-completion-r1 flag-o-matic linux-info meson-multilib 
python-single-r1
-inherit secureboot toolchain-funcs udev usr-ldscript
+inherit bash-completion-r1 flag-o-matic linux-info meson-multilib optfeature
+inherit python-single-r1 secureboot toolchain-funcs udev usr-ldscript
 
 DESCRIPTION="Utilities split out from systemd for OpenRC users"
 HOMEPAGE="https://systemd.io/";
@@ -572,4 +572,13 @@ pkg_postinst() {
                eend $?
                udev_reload
        fi
+
+       if use boot; then
+               optfeature "automatically installing the kernels in 
systemd-boot's native layout and updating the bootloader configuration" \
+                       "sys-kernel/installkernel[systemd-boot]"
+       fi
+       if use ukify; then
+               optfeature "automatically generating an unified kernel image on 
each kernel installation" \
+                       "sys-kernel/installkernel[ukify]"
+       fi
 }

diff --git a/sys-apps/systemd-utils/systemd-utils-254.9.ebuild 
b/sys-apps/systemd-utils/systemd-utils-254.9.ebuild
index d51fec657618..0f7730c67c88 100644
--- a/sys-apps/systemd-utils/systemd-utils-254.9.ebuild
+++ b/sys-apps/systemd-utils/systemd-utils-254.9.ebuild
@@ -6,8 +6,8 @@ PYTHON_COMPAT=( python3_{10..12} )
 
 QA_PKGCONFIG_VERSION=$(ver_cut 1)
 
-inherit bash-completion-r1 flag-o-matic linux-info meson-multilib 
python-single-r1
-inherit secureboot toolchain-funcs udev usr-ldscript
+inherit bash-completion-r1 flag-o-matic linux-info meson-multilib optfeature
+inherit python-single-r1 secureboot toolchain-funcs udev usr-ldscript
 
 DESCRIPTION="Utilities split out from systemd for OpenRC users"
 HOMEPAGE="https://systemd.io/";
@@ -572,4 +572,13 @@ pkg_postinst() {
                eend $?
                udev_reload
        fi
+
+       if use boot; then
+               optfeature "automatically installing the kernels in 
systemd-boot's native layout and updating the bootloader configuration" \
+                       "sys-kernel/installkernel[systemd-boot]"
+       fi
+       if use ukify; then
+               optfeature "automatically generating an unified kernel image on 
each kernel installation" \
+                       "sys-kernel/installkernel[ukify]"
+       fi
 }

Reply via email to