1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 09:32:37 +01:00

sys-kernel/dracut-openssh: bump to 0.4

This commit is contained in:
2024-11-30 15:45:14 +01:00
parent cfe020c298
commit b0f3321f11
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Dracut OpenSSH module"
HOMEPAGE="https://github.com/dguglielmi/dracut-openssh"
SRC_URI="https://github.com/dguglielmi/dracut-openssh/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="systemd systemd-networkd"
DEPEND="
net-misc/openssh
sys-kernel/dracut
"
RDEPEND="
${DEPEND}
!systemd-networkd? ( net-misc/dhcp )
systemd? ( sys-apps/systemd )
"
src_install() {
emake PREFIX="${D}" install
if use systemd-networkd; then
sed -i \
's@^#network_provider=.*@network_provider="systemd-networkd"@1' \
"${D}"/etc/dracut.conf.d/dracut-openssh.conf || die
fi
}