From b30bf80580f09f15ee6686ff818cd36d923e1291 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 18 Feb 2023 20:11:57 +0000 Subject: gentoo auto-resync : 18:02:2023 - 20:11:56 --- .../daemontools/daemontools-0.76-r10.ebuild | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 sys-process/daemontools/daemontools-0.76-r10.ebuild (limited to 'sys-process/daemontools/daemontools-0.76-r10.ebuild') diff --git a/sys-process/daemontools/daemontools-0.76-r10.ebuild b/sys-process/daemontools/daemontools-0.76-r10.ebuild new file mode 100644 index 000000000000..5bf42bc7b17d --- /dev/null +++ b/sys-process/daemontools/daemontools-0.76-r10.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Collection of tools for managing UNIX services" +HOMEPAGE="https://cr.yp.to/daemontools.html" +SRC_URI=" + https://cr.yp.to/daemontools/${P}.tar.gz + http://smarden.org/pape/djb/manpages/${P}-man-20020131.tar.gz" +S="${WORKDIR}/admin/${P}/src" + +LICENSE="public-domain GPL-2" # GPL-2 for init script +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" +IUSE="selinux static" + +RDEPEND="selinux? ( sec-policy/selinux-daemontools )" + +PATCHES=( + "${FILESDIR}"/${PV}-errno.patch + "${FILESDIR}"/${PV}-C99-decls.patch + "${FILESDIR}"/${PV}-makefile.patch +) + +src_configure() { + tc-export AR CC + use static && append-ldflags -static + + touch home || die +} + +src_install() { + keepdir /service + + dobin $(<../package/commands) + dodoc CHANGES ../package/README TODO + doman "${WORKDIR}"/${PN}-man/*.8 + + newinitd "${FILESDIR}"/svscan.init-0.76-r7 svscan +} + +pkg_postinst() { + einfo + einfo "You can run daemontools using the svscan init.d script," + einfo "or you could run it through inittab." + einfo "To use inittab, emerge supervise-scripts and run:" + einfo "svscan-add-to-inittab" + einfo "Then you can hup init with the command telinit q" + einfo +} -- cgit v1.2.3