From 1400b78a8ff2c26c0bc7798cfe16909e24bce779 Mon Sep 17 00:00:00 2001 From: Thilo Bangert <bangert@gentoo.org> Date: Wed, 5 Jan 2011 12:32:39 +0000 Subject: initial release (#334481) - thanks bruce -- daemontools-encore is a collection of tools for managing UNIX services. It is derived from the public-domain release of daemontools Package-Manager: portage-2.2.0_alpha11/cvs/Linux i686 --- sys-process/daemontools-encore/ChangeLog | 10 +++++ sys-process/daemontools-encore/Manifest | 5 +++ .../daemontools-encore-1.02.ebuild | 51 ++++++++++++++++++++++ .../daemontools-encore/files/svscan.init-1.02 | 32 ++++++++++++++ sys-process/daemontools-encore/metadata.xml | 17 ++++++++ 5 files changed, 115 insertions(+) create mode 100644 sys-process/daemontools-encore/ChangeLog create mode 100644 sys-process/daemontools-encore/Manifest create mode 100644 sys-process/daemontools-encore/daemontools-encore-1.02.ebuild create mode 100644 sys-process/daemontools-encore/files/svscan.init-1.02 create mode 100644 sys-process/daemontools-encore/metadata.xml (limited to 'sys-process') diff --git a/sys-process/daemontools-encore/ChangeLog b/sys-process/daemontools-encore/ChangeLog new file mode 100644 index 000000000000..dec0cbc0b7b6 --- /dev/null +++ b/sys-process/daemontools-encore/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sys-process/daemontools-encore +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/daemontools-encore/ChangeLog,v 1.1 2011/01/05 12:32:39 bangert Exp $ + +*daemontools-encore-1.02 (05 Jan 2011) + + 05 Jan 2011; Thilo Bangert <bangert@gentoo.org> +files/svscan.init-1.02, + +daemontools-encore-1.02.ebuild, +metadata.xml: + initial release (#334481) + diff --git a/sys-process/daemontools-encore/Manifest b/sys-process/daemontools-encore/Manifest new file mode 100644 index 000000000000..3ad83fdf96c0 --- /dev/null +++ b/sys-process/daemontools-encore/Manifest @@ -0,0 +1,5 @@ +AUX svscan.init-1.02 816 RMD160 671c44832b8e510795e4e6fb072a21782ab00f68 SHA1 03ecf5f2b2c8bb0f1d1735decb3194e01d0386b0 SHA256 f046a8e1a6b56f335ba3759ad9482bdc0fdf53919fc80f944a19a8e83960d155 +DIST daemontools-encore-1.02.tar.gz 76046 RMD160 3c0eed5471265c5737274fc7cbb624558c860c1d SHA1 86f8a1c04c18d3481ee46ceb85a34088a4860879 SHA256 5a677b5818367631ce772149a7e8715e84a3b41dfd4e7465a3559b95e5fa9054 +EBUILD daemontools-encore-1.02.ebuild 1270 RMD160 e73691885a07855d318d70cd033d8551f50b8090 SHA1 9b0b22189ccec22150a49a8099bf2033d0aefd66 SHA256 f5838fd9475997f8bb572bb15ca801e5c3051917b28028dd4388d103e82aff10 +MISC ChangeLog 428 RMD160 8f6219eaca4a2f1805da51d87dab74d13f3e3da2 SHA1 bf855fb95f5b2a5929d7b266ea07ced7cfb3aee0 SHA256 b684ad4324919086b29a1037396e005bbc8e94ff05c1c9a132cf64a6945b95e9 +MISC metadata.xml 643 RMD160 998454aa3454ac292881d6e1be4acbe68ebc0352 SHA1 29bd883d664bfe7d35276a8506a974db2070bf57 SHA256 255d0ec577872b6c63ef2139c75ddafdae94d1fccd319ac5ca1e5acaa7a4a663 diff --git a/sys-process/daemontools-encore/daemontools-encore-1.02.ebuild b/sys-process/daemontools-encore/daemontools-encore-1.02.ebuild new file mode 100644 index 000000000000..a6cfba2c9b6c --- /dev/null +++ b/sys-process/daemontools-encore/daemontools-encore-1.02.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/daemontools-encore/daemontools-encore-1.02.ebuild,v 1.1 2011/01/05 12:32:39 bangert Exp $ + +EAPI=3 + +inherit eutils toolchain-funcs flag-o-matic qmail + +DESCRIPTION="Collection of tools for managing UNIX services" +HOMEPAGE="http://untroubled.org/daemontools-encore/" +SRC_URI="${HOMEPAGE}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="static" + +DEPEND="" +RDEPEND="selinux? ( sec-policy/selinux-daemontools ) + !sys-process/daemontools + !app-doc/daemontools-man" + +src_compile() { + use static && append-ldflags -static + qmail_set_cc + emake || die +} + +src_install() { + keepdir /service + + echo ${D}/usr/bin >conf-bin + echo ${D}/usr/share/man >conf-man + dodir /usr/bin + dodir /usr/share/man + emake install || die + + dodoc ChangeLog CHANGES CHANGES.djb README TODO + + newinitd "${FILESDIR}"/svscan.init-${PV} 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-encore/files/svscan.init-1.02 b/sys-process/daemontools-encore/files/svscan.init-1.02 new file mode 100644 index 000000000000..8a35ebebf4c1 --- /dev/null +++ b/sys-process/daemontools-encore/files/svscan.init-1.02 @@ -0,0 +1,32 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/daemontools-encore/files/svscan.init-1.02,v 1.1 2011/01/05 12:32:39 bangert 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 $? +} diff --git a/sys-process/daemontools-encore/metadata.xml b/sys-process/daemontools-encore/metadata.xml new file mode 100644 index 000000000000..6573135b81b2 --- /dev/null +++ b/sys-process/daemontools-encore/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>base-system</herd> + <maintainer> + <email>bangert@gentoo.org</email> + </maintainer> +<longdescription lang="en"> +daemontools-encore is a collection of tools for managing UNIX services. +It is derived from the public-domain release of daemontools by +D. J. Bernstein. + +daemontools-encore adds numerous enhancements above what daemontools +could do while maintaining backwards compatibility with daemontools. +See the CHANGES file for more details on what features have been added. +</longdescription> +</pkgmetadata> -- cgit v1.2.3-65-gdbad