sys-apps/dinit - 0.22.1 (guru)

Search

Install

Install this version:

emerge -a =sys-apps/dinit-0.22.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sys-apps/dinit-0.22.1

Or alternatively:

emerge --autounmask-write -a =sys-apps/dinit-0.22.1

Package Information

Description:
The dinit service supervision + init suite
Homepage:
https://github.com/davmac314/dinit
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
0.22.1 8 ~amd64 0
View Raw Ebuild
# 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() {
	  # bug #979661
	  # don't overwrite upstream flags
	  export CXXFLAGS_EXTRA=${CXXFLAGS}
	  unset CXXFLAGS
	  export LDFLAGS_EXTRA=${LDFLAGS}
	  unset LDFLAGS

	  # Build system is not a normal autotools package
	  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
}

USE Flags

Manage flags for this package: euse -i <flag> -p sys-apps/dinit | euse -E <flag> -p sys-apps/dinit | euse -D <flag> -p sys-apps/dinit

Global/Standard Flags

cgroups
Default: Enabled (+)
caps
Default: Enabled (+)

Inherited Eclasses

Dependencies

DEPEND

	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
	)

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
	)

Manifest for 0.22.1

Type File Size Source URLs
DIST dinit-0.22.1.tar.xz 322760 bytes https://github.com/davmac314/dinit/releases/download/v0.22.1/dinit-0.22.1.tar.xz