diff --git a/profiles/package.use.mask b/profiles/package.use.mask index 181b830c1d..9c640f15ac 100644 --- a/profiles/package.use.mask +++ b/profiles/package.use.mask @@ -3,6 +3,10 @@ # New entries go on top. +# Emi (2026-07-15) +# Depends on https://github.com/gentoo/gentoo/pull/46572 +sys-apps/dinit sysv-utils + # Anna Vyalkova (2026-03-20) # dev-python/mkdocs have been last rited. dev-games/surgescript doc diff --git a/sys-apps/dinit/Manifest b/sys-apps/dinit/Manifest new file mode 100644 index 0000000000..6daff41d92 --- /dev/null +++ b/sys-apps/dinit/Manifest @@ -0,0 +1 @@ +DIST dinit-0.22.1.tar.xz 322760 BLAKE2B 75413cac506d86815b6514f712221a383743c22c0d463e6fb1cbb545ac20e9d39a1ed426874df57cf8c1b94faaf5ce4cb648ee7f8def8e2f87a94f4b16f42604 SHA512 8ccd54e1d1cab4df5b3f3a3b2a6852c58ccdbf81cde7a8eccef41a7f4a5bb94e4b9aff372d6a445e4d096e7a1a6be12093903d80836bebf42a16df2ffcac2967 diff --git a/sys-apps/dinit/dinit-0.22.1.ebuild b/sys-apps/dinit/dinit-0.22.1.ebuild new file mode 100644 index 0000000000..59bb0f5489 --- /dev/null +++ b/sys-apps/dinit/dinit-0.22.1.ebuild @@ -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 +} diff --git a/sys-apps/dinit/dinit-9999.ebuild b/sys-apps/dinit/dinit-9999.ebuild new file mode 100644 index 0000000000..59bb0f5489 --- /dev/null +++ b/sys-apps/dinit/dinit-9999.ebuild @@ -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 +} diff --git a/sys-apps/dinit/metadata.xml b/sys-apps/dinit/metadata.xml new file mode 100644 index 0000000000..fa741d55a2 --- /dev/null +++ b/sys-apps/dinit/metadata.xml @@ -0,0 +1,23 @@ + + + + reedy.sailors.8t@icloud.com + Emi + + + https://davmac.org/projects/dinit/ + davmac314/dinit + + + Enable cgroups support + Install sysvinit compatibility symlinks for halt, init, poweroff, reboot and shutdown + + + Dinit is a service supervisor with dependency support which can also act as the system "init" program. + It was created with the intention of providing a portable init system with dependency management, + that was functionally superior to many extant inits. Development goals include clean design, + robustness, portability, usability, and avoiding feature bloat + (whilst still handling common - and some less-common - use cases). + Dinit is designed to integrate with rather than subsume or replace other system software. + +