mirror of
https://github.com/dguglielmi/sunny-overlay.git
synced 2025-12-06 18:12:39 +01:00
sys-kernel/dracut-openssh: add 0.5
This commit is contained in:
34
sys-kernel/dracut-openssh/dracut-openssh-0.5.ebuild
Normal file
34
sys-kernel/dracut-openssh/dracut-openssh-0.5.ebuild
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user