DIST installkernel-gentoo-1.tar.gz 2308 BLAKE2B 94d30463445cca4ccea8b00c61dd9f9f89ea4d6f2185e5c1355145300b001fbb624d2e06c9707ecc79ddcab8609725c34239e00b5d80bff22b10a8bc28132916 SHA512 ce33b1958bcec4ed63f812b00471a49ecb88d0149a4e5ebd283b412cc3eafc647477bf84ad21c066ef2602ee06a24ece08fbac85cc815fae91b0bb43d8db8013
+DIST installkernel-gentoo-2.tar.gz 2339 BLAKE2B 0c9999a4688fac9d27774bc30b7529ed01d9598a73283bd508265a9c694921d7a7974d0d9cda2e0c52fe247b7cbce53918c7b3271fdd01beb150097be0905aec SHA512 157e5c525c7eee1aa79027b847eb938700197abad087ec25548f6cfde227720936d1512070549993d6db0bb51dcef1bf00156f2316b415fa00e001ce1828e471
--- /dev/null
+# Copyright 2019-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Gentoo fork of installkernel script from debianutils"
+HOMEPAGE="https://github.com/mgorny/installkernel-gentoo"
+SRC_URI="https://github.com/mgorny/installkernel-gentoo/archive/v${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~x86-linux"
+
+RDEPEND="
+ >=sys-apps/debianutils-4.9-r1
+ !<sys-apps/debianutils-4.9-r1[installkernel(+)]
+ !sys-kernel/installkernel-systemd-boot"
+
+src_install() {
+ into /
+ dosbin installkernel
+ doman installkernel.8
+ keepdir /etc/kernel/postinst.d
+}
+
+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
+}