Files
gentoo/sys-kernel/installkernel-systemd-boot/installkernel-systemd-boot-2-r1.ebuild
Sam James a8654342a7 sys-kernel/installkernel-systemd-boot: drop sys-apps/systemd-boot dep
We don't want Portage to try cling to this obsolete meta which just
depends on systemd-utils[boot] anyway.

Signed-off-by: Sam James <sam@gentoo.org>
2023-06-15 03:25:30 +01:00

30 lines
811 B
Bash

# Copyright 2019-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Wrap kernel-install from systemd-boot as installkernel"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
S=${WORKDIR}
LICENSE="public-domain"
SLOT="0"
KEYWORDS="amd64 arm64 ppc64 x86"
RDEPEND="|| ( sys-apps/systemd sys-apps/systemd-utils[boot] )
!<sys-apps/debianutils-4.9-r1[installkernel(+)]
!sys-kernel/installkernel-gentoo"
src_install() {
# we could technically use a symlink here but it would require
# us to know the correct path, and that implies /usr merge problems
into /
newsbin - installkernel <<-EOF
#!/usr/bin/env sh
exec kernel-install add "\${1}" "\${2}"
EOF
exeinto /usr/lib/kernel/install.d/
doexe "${FILESDIR}/00-00machineid-directory.install"
}