You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.3 KiB
54 lines
1.3 KiB
1 year ago
|
# Copyright 1999-2023 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
1 year ago
|
EAPI=8
|
||
6 years ago
|
|
||
1 year ago
|
inherit flag-o-matic toolchain-funcs
|
||
13 years ago
|
|
||
|
DESCRIPTION="Collection of tools for managing UNIX services"
|
||
1 year ago
|
HOMEPAGE="https://cr.yp.to/daemontools.html"
|
||
|
SRC_URI="
|
||
|
https://cr.yp.to/daemontools/${P}.tar.gz
|
||
13 years ago
|
http://smarden.org/pape/djb/manpages/${P}-man-20020131.tar.gz"
|
||
1 year ago
|
S="${WORKDIR}/admin/${P}/src"
|
||
13 years ago
|
|
||
1 year ago
|
LICENSE="public-domain GPL-2" # GPL-2 for init script
|
||
13 years ago
|
SLOT="0"
|
||
2 years ago
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
||
13 years ago
|
IUSE="selinux static"
|
||
|
|
||
1 year ago
|
RDEPEND="selinux? ( sec-policy/selinux-daemontools )"
|
||
13 years ago
|
|
||
5 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${PV}-errno.patch
|
||
1 year ago
|
"${FILESDIR}"/${PV}-C99-decls.patch
|
||
|
"${FILESDIR}"/${PV}-makefile.patch
|
||
5 years ago
|
)
|
||
|
|
||
1 year ago
|
src_configure() {
|
||
|
tc-export AR CC
|
||
13 years ago
|
use static && append-ldflags -static
|
||
|
|
||
5 years ago
|
touch home || die
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
keepdir /service
|
||
|
|
||
5 years ago
|
dobin $(<../package/commands)
|
||
13 years ago
|
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
|
||
|
}
|