1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit flag-o-matic qmail
8 DESCRIPTION="Collection of tools for managing UNIX services"
9 HOMEPAGE="http://cr.yp.to/daemontools.html"
10 SRC_URI="http://cr.yp.to/daemontools/${P}.tar.gz
11 http://smarden.org/pape/djb/manpages/${P}-man-20020131.tar.gz"
13 LICENSE="public-domain"
15 KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 m68k ~mips ppc ppc64 s390 sparc x86"
19 RDEPEND="selinux? ( sec-policy/selinux-daemontools )
20 !app-doc/daemontools-man"
22 S="${WORKDIR}/admin/${P}/src"
25 "${FILESDIR}"/${PV}-errno.patch
26 "${FILESDIR}"/${PV}-warnings.patch
32 ht_fix_file Makefile print-{cc,ld}.sh
34 use static && append-ldflags -static
46 dobin $(<../package/commands)
47 dodoc CHANGES ../package/README TODO
48 doman "${WORKDIR}"/${PN}-man/*.8
50 newinitd "${FILESDIR}"/svscan.init-0.76-r7 svscan
55 einfo "You can run daemontools using the svscan init.d script,"
56 einfo "or you could run it through inittab."
57 einfo "To use inittab, emerge supervise-scripts and run:"
58 einfo "svscan-add-to-inittab"
59 einfo "Then you can hup init with the command telinit q"