mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
* client useflag is needed for net-misc/dhcp to install dhclient, which is needed for network-legacy dracut module. * net-misc/dhcpcd isn't used by any dracut network module. * net-misc/netifrc isn't used by any of the dracut network modules, but it pulls in a dependency of either net-misc/dhcp[client] which will result in a working dracut networking-legacy module or net-misc/dhcpcd, which will not. Signed-off-by: Tobias Klaus <tk@meskal.net> Closes: https://github.com/gentoo/gentoo/pull/45546 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
39 lines
791 B
Bash
39 lines
791 B
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit toolchain-funcs
|
|
|
|
DESCRIPTION="Early unlocking of encrypted systems via ssh for dracut"
|
|
HOMEPAGE="https://github.com/dracut-crypt-ssh/dracut-crypt-ssh"
|
|
SRC_URI="https://github.com/dracut-crypt-ssh/dracut-crypt-ssh/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
|
|
|
DEPEND="sys-kernel/dracut"
|
|
RDEPEND="${DEPEND}
|
|
|| (
|
|
net-misc/connman
|
|
net-misc/dhcp[client]
|
|
net-misc/networkmanager
|
|
sys-apps/systemd
|
|
)
|
|
net-misc/dropbear"
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
# Fix libdir (hard-coded to "lib64")
|
|
sed "s@/lib64/@/$(get_libdir)/@" \
|
|
-i modules/60crypt-ssh/module-setup.sh \
|
|
|| die
|
|
}
|
|
|
|
src_configure() {
|
|
tc-export CC
|
|
default
|
|
}
|