diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2008-12-07 06:59:37 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2008-12-07 06:59:37 +0000 |
commit | d27a67aadb0824ce5eecd8975071497762ae8dba (patch) | |
tree | c9b349efe66c4c4538089b9890337a311c0228fb /sys-process/daemontools | |
parent | Initial import, based on ebuild in the science overlay. (diff) | |
download | gentoo-2-d27a67aadb0824ce5eecd8975071497762ae8dba.tar.gz gentoo-2-d27a67aadb0824ce5eecd8975071497762ae8dba.tar.bz2 gentoo-2-d27a67aadb0824ce5eecd8975071497762ae8dba.zip |
Fix ancient bug #86562.
(Portage version: 2.2_rc16/cvs/Linux 2.6.28-rc5-00117-g7f0f598 x86_64)
Diffstat (limited to 'sys-process/daemontools')
-rw-r--r-- | sys-process/daemontools/ChangeLog | 8 | ||||
-rw-r--r-- | sys-process/daemontools/daemontools-0.76-r7.ebuild | 58 | ||||
-rw-r--r-- | sys-process/daemontools/files/svscan.init-0.76-r7 | 32 |
3 files changed, 97 insertions, 1 deletions
diff --git a/sys-process/daemontools/ChangeLog b/sys-process/daemontools/ChangeLog index d0206b7cd86c..606b11589983 100644 --- a/sys-process/daemontools/ChangeLog +++ b/sys-process/daemontools/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-process/daemontools # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-process/daemontools/ChangeLog,v 1.8 2008/08/16 03:40:48 cardoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-process/daemontools/ChangeLog,v 1.9 2008/12/07 06:59:37 robbat2 Exp $ + +*daemontools-0.76-r7 (07 Dec 2008) + + 07 Dec 2008; Robin H. Johnson <robbat2@gentoo.org> + +files/svscan.init-0.76-r7, +daemontools-0.76-r7.ebuild: + Fix ancient bug #86562. 16 Aug 2008; Doug Goldstein <cardoe@gentoo.org> metadata.xml: add GLEP 56 USE flag desc from use.local.desc diff --git a/sys-process/daemontools/daemontools-0.76-r7.ebuild b/sys-process/daemontools/daemontools-0.76-r7.ebuild new file mode 100644 index 000000000000..fe615a757a7d --- /dev/null +++ b/sys-process/daemontools/daemontools-0.76-r7.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/daemontools/daemontools-0.76-r7.ebuild,v 1.1 2008/12/07 06:59:37 robbat2 Exp $ + +inherit eutils flag-o-matic qmail + +DESCRIPTION="Collection of tools for managing UNIX services" +HOMEPAGE="http://cr.yp.to/daemontools.html" +SRC_URI="http://cr.yp.to/daemontools/${P}.tar.gz + http://smarden.org/pape/djb/manpages/${P}-man-20020131.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="selinux static" + +DEPEND="" +RDEPEND="selinux? ( sec-policy/selinux-daemontools ) + !app-doc/daemontools-man" + +S="${WORKDIR}"/admin/${P}/src + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PV}-errno.patch + epatch "${FILESDIR}"/${PV}-warnings.patch + ht_fix_file Makefile print-{cc,ld}.sh + + use static && append-ldflags -static + qmail_set_cc +} + +src_compile() { + touch home + emake || die +} + +src_install() { + keepdir /service + + dobin $(<../package/commands) || die + 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 +} diff --git a/sys-process/daemontools/files/svscan.init-0.76-r7 b/sys-process/daemontools/files/svscan.init-0.76-r7 new file mode 100644 index 000000000000..d06687a326aa --- /dev/null +++ b/sys-process/daemontools/files/svscan.init-0.76-r7 @@ -0,0 +1,32 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/daemontools/files/svscan.init-0.76-r7,v 1.1 2008/12/07 06:59:37 robbat2 Exp $ + +depend() { + use net + before ntpd ntp-client spamd apache apache2 +} + +start() { + ebegin "Starting service scan" + setsid start-stop-daemon --start --exec /usr/bin/svscan \ + --background --make-pidfile \ + --pidfile /var/run/svscan.pid -- /service + eend $? +} + +stop() { + ebegin "Stopping service scan" + start-stop-daemon --stop --exec /usr/bin/svscan \ + --pidfile /var/run/svscan.pid + eend $? + + ebegin "Stopping service scan services" + svc -dx /service/* 2>/dev/null + eend $? + + ebegin "Stopping service scan logging" + svc -dx /service/*/log 2>/dev/null + eend $? +} |