1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 11:42:40 +01:00

sys-kernel/dracut-openssh: Bump to 0.3

This commit is contained in:
2020-05-16 17:38:36 +02:00
parent 0dad9dcd07
commit 16e6c68e5d
7 changed files with 4 additions and 156 deletions

View File

@@ -0,0 +1,30 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Dracut OpenSSH module"
HOMEPAGE="https://github.com/dguglielmi/dracut-openssh"
SRC_URI="https://github.com/dguglielmi/dracut-openssh/archive/0.3.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="systemd-networkd"
DEPEND="!systemd-networkd? ( net-misc/dhcp )
net-misc/openssh
sys-apps/systemd
sys-kernel/dracut"
RDEPEND="${DEPEND}"
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
}