sys-apps/dinit-services: add dbus, cryptsetup use

Signed-off-by: Emi <reedy.sailors.8t@icloud.com>
This commit is contained in:
Emi
2026-07-22 11:06:39 +02:00
parent 372bee60e0
commit 9d8022c09a
2 changed files with 16 additions and 8 deletions

View File

@@ -16,24 +16,30 @@ else
S="${WORKDIR}/services"
fi
IUSE="kmscon dbus cryptsetup"
RDEPEND="
app-crypt/cryptsetup-scripts-dinit
virtual/udev
sys-apps/sed
kmscon? (
sys-apps/kmscon
)
cryptsetup? (
app-crypt/cryptsetup-scripts-dinit
)
dbus? (
sys-apps/dbus
)
"
DEPEND="${RDEPEND}"
IUSE="kmscon"
src_install() {
if use kmscon; then
emake install TTY=kmscon DESTDIR="${D}"
else
emake install DESTDIR="${D}"
fi
opts=(
$(usev kmscon TTY=kmscon)
$(usev cryptsetup ENABLE_CRYPTSETUP=yes)
$(usev dbus ENABLE_DBUS=yes)
)
emake install DESTDIR="${D}" ${opts}
keepdir /var/log/dinit
}

View File

@@ -6,6 +6,8 @@
</maintainer>
<use>
<flag name="kmscon">Use kmscon instead of getty for tty</flag>
<flag name="dbus">Enable dbus related services and helpers</flag>
<flag name="cryptsetup">Enable cryptsetup services</flag>
</use>
<upstream>
<remote-id type="codeberg">gentoo-dinit/services</remote-id>