sys-apps/dinit: new package, add 0.22.1, 9999

Signed-off-by: Emi <reedy.sailors.8t@icloud.com>
This commit is contained in:
Emi
2026-07-15 16:44:49 +02:00
parent 75baddeb14
commit 685c143357
5 changed files with 114 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="The dinit service supervision + init suite"
HOMEPAGE="https://github.com/davmac314/dinit"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/davmac314/${PN}.git"
else
KEYWORDS="~amd64"
SRC_URI="https://github.com/davmac314/${PN}/releases/download/v${PV}/${P}.tar.xz"
fi
LICENSE="Apache-2.0"
SLOT="0"
IUSE="+cgroups +caps sysv-utils"
RDEPEND="
caps? ( sys-libs/libcap )
sysv-utils? (
!sys-apps/openrc[sysv-utils(-)]
!sys-apps/s6-linux-init[sysv-utils(-)]
!sys-apps/systemd[sysv-utils(+)]
!sys-apps/sysvinit
)"
DEPEND="${RDEPEND}"
src_configure() {
econf \
$(use_enable sysv-utils shutdown) \
$(use_enable cgroups) \
$(use_enable caps capabilities) \
--disable-strip
}
src_install(){
default
if use sysv-utils; then
dosym dinit /sbin/init
fi
}