Skip to content

Commit

Permalink
sys-kernel/dracut-openssh: bump to 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
dguglielmi committed Nov 30, 2024
1 parent cfe020c commit b0f3321
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions sys-kernel/dracut-openssh/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST dracut-openssh-0.3.tar.gz 13944 BLAKE2B 4116b892b2ed7988453d35cec2f2f3f73c56c24876d447d8f852fed1c820139a6ab9dab5a713e6e4d6664bc3f64a66422ce7ee453d5a294ba9e5ba30b20916eb SHA512 30b8dac3829574ecebc18f27ada22a5d9adbb5e61780d8aa9cd6dfbd55c06112174b482445dbe0b7c5d187a26963a6c31e4310f287d96220ff207918be3ba3c8
DIST dracut-openssh-0.4.tar.gz 14115 BLAKE2B ea21da125aa5fbf31fa0320810526bcbc0de7e63e0bc3c4632b1283bb197b11cc7e76795da515785b8d075aeb236282944db865c380465818dbf07496157f2f8 SHA512 10c61b762c3328df37c6c8dd21f4dd65aa2dc4d4217aa253b7fd205662c3ad86eff932237e49223841411b2a8085509472add7734511c1dbb4e5222094ce7cef
34 changes: 34 additions & 0 deletions sys-kernel/dracut-openssh/dracut-openssh-0.4.ebuild
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit b0f3321

Please sign in to comment.