summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-kernel/installkernel-gentoo/Manifest1
-rw-r--r--sys-kernel/installkernel-gentoo/installkernel-gentoo-9.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/sys-kernel/installkernel-gentoo/Manifest b/sys-kernel/installkernel-gentoo/Manifest
index 2655a423d9e2..ead58fa98298 100644
--- a/sys-kernel/installkernel-gentoo/Manifest
+++ b/sys-kernel/installkernel-gentoo/Manifest
@@ -1,2 +1,3 @@
DIST installkernel-gentoo-7.tar.gz 2962 BLAKE2B 675a1e33470ef10a38cf880591cc78ce3bf92dad20feaea740cee7cdad657b9a9b30f53ff8078b610ed09e7ec306dc3b565856c92755e3aad2a5ef387df0522b SHA512 9944b20884a0fb252dced70d33963f24af221ffa41b99f14f5f3569c155c48a0e0762fc70ca103723cac35740f94fb2120712c7ba41a442e9f971251365a194e
DIST installkernel-gentoo-8.tar.gz 4067 BLAKE2B 0b414331be8d257d79d7f8b8e4bda7e162eb414712a598d5ab0c5ee2188ff4506ee2af6ea15e937ad4e396599515c19614547c92f79e9f0d593f6c48c39441ec SHA512 b15a8ebac59693dd7450379e4054967ab35d3423b0db3e43da3dbac83d47fca5c537d32e6182423cf989833823c1f52ea147cd02091fbca24ee2c39aeea895c7
+DIST installkernel-gentoo-9.tar.gz 4292 BLAKE2B 4d12b5188aaca90a56514f7a3435731b7d2ce56c7bfab63b715e849d3bf588c7cc3b7ae980ed8b491d64166f1e557fb95e949c5a82642ae90d26ff2e4d76f377 SHA512 1b34e1c51302a17254e6daa3fa03601f4b221b58f66043ca1b85aa01ad5ac03f3d7bee7328df786f72796c4bead732d265a22324bf1d34d09c9303cad8bbb009
diff --git a/sys-kernel/installkernel-gentoo/installkernel-gentoo-9.ebuild b/sys-kernel/installkernel-gentoo/installkernel-gentoo-9.ebuild
new file mode 100644
index 000000000000..798ac29e8a31
--- /dev/null
+++ b/sys-kernel/installkernel-gentoo/installkernel-gentoo-9.ebuild
@@ -0,0 +1,56 @@
+# Copyright 2019-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Gentoo fork of installkernel script from debianutils"
+HOMEPAGE="https://github.com/projg2/installkernel-gentoo"
+SRC_URI="https://github.com/projg2/installkernel-gentoo/archive/v${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x86-linux"
+IUSE="+dracut grub uki ukify"
+
+RDEPEND="
+ >=sys-apps/debianutils-4.9-r1
+ !<sys-apps/debianutils-4.9-r1[installkernel(+)]
+ !sys-kernel/installkernel-systemd
+"
+
+src_install() {
+ into /
+ dosbin installkernel
+ doman installkernel.8
+ keepdir /etc/kernel/postinst.d
+ keepdir /etc/kernel/preinst.d
+
+ if use dracut; then
+ exeinto /etc/kernel/preinst.d
+ doexe hooks/50-dracut.install
+ fi
+
+ if use grub; then
+ exeinto /etc/kernel/postinst.d
+ doexe hooks/91-grub-mkconfig.install
+ fi
+
+ if use uki; then
+ exeinto /etc/kernel/postinst.d
+ doexe hooks/90-uki-copy.install
+ fi
+
+ if use ukify; then
+ exeinto /etc/kernel/preinst.d
+ doexe hooks/60-ukify.install
+ fi
+}
+
+pkg_postinst() {
+ if has 1 ${REPLACING_VERSIONS}; then
+ ewarn "In v2, the initramfs filename has changed to initramfs*.img, to match"
+ ewarn "the default names used by dracut and genkernel-4. If your bootloader"
+ ewarn "config uses the verbatim filename, please update it."
+ fi
+}