diff options
author | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-03-03 18:11:26 +0000 |
---|---|---|
committer | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-03-03 18:11:26 +0000 |
commit | 7d6bf184f86c9b2395cdc15abfda6f757ed8c65b (patch) | |
tree | c08d3bb46c2feec1c25abcf2e75bd46d4b386720 /sys-process | |
parent | Moved sys-apps/daemontools-scripts to sys-process/daemontools-scripts (diff) | |
download | gentoo-2-7d6bf184f86c9b2395cdc15abfda6f757ed8c65b.tar.gz gentoo-2-7d6bf184f86c9b2395cdc15abfda6f757ed8c65b.tar.bz2 gentoo-2-7d6bf184f86c9b2395cdc15abfda6f757ed8c65b.zip |
Moved from sys-apps/daemontools to sys-process/daemontools.
Diffstat (limited to 'sys-process')
-rw-r--r-- | sys-process/daemontools/ChangeLog | 106 | ||||
-rw-r--r-- | sys-process/daemontools/Manifest | 8 | ||||
-rw-r--r-- | sys-process/daemontools/daemontools-0.76-r4.ebuild | 62 | ||||
-rw-r--r-- | sys-process/daemontools/files/0.76-errno.patch | 11 | ||||
-rw-r--r-- | sys-process/daemontools/files/0.76-head-1.patch | 21 | ||||
-rw-r--r-- | sys-process/daemontools/files/digest-daemontools-0.76-r4 | 1 | ||||
-rwxr-xr-x | sys-process/daemontools/files/svscan | 37 | ||||
-rwxr-xr-x | sys-process/daemontools/files/svscan-0.76-r4 | 37 | ||||
-rw-r--r-- | sys-process/daemontools/metadata.xml | 5 |
9 files changed, 288 insertions, 0 deletions
diff --git a/sys-process/daemontools/ChangeLog b/sys-process/daemontools/ChangeLog new file mode 100644 index 000000000000..992b838c920f --- /dev/null +++ b/sys-process/daemontools/ChangeLog @@ -0,0 +1,106 @@ +# ChangeLog for sys-apps/daemontools +# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/daemontools/ChangeLog,v 1.1 2005/03/03 18:11:26 ciaranm Exp $ + +*daemontools-0.76-r4 (03 Mar 2005) + + 03 Mar 2005; Ciaran McCreesh <ciaranm@gentoo.org> +metadata.xml, + +files/0.76-errno.patch, +files/0.76-head-1.patch, +files/svscan, + +files/svscan-0.76-r4, +daemontools-0.76-r4.ebuild: + Moved from sys-apps/daemontools to sys-process/daemontools. + + 02 Jan 2005; Ciaran McCreesh <ciaranm@gentoo.org> : + Change encoding to UTF-8 for GLEP 31 compliance + + 07 Sep 2004; Mike Frysinger <vapier@gentoo.org> daemontools-0.76-r4.ebuild: + Stabilize and add doc USE flag to pull in manpages #63179 by Kalin KOZHUHAROV. + + 03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org> + daemontools-0.76-r4.ebuild: + Masked daemontools-0.76-r4.ebuild stable for ppc + + 29 Aug 2004; Tom Gall <tgall@gentoo.org> daemontools-0.76-r4.ebuild: + stable on ppc64, bug #61744 + + 30 Jun 2004; Aron Griffis <agriffis@gentoo.org> daemontools-0.76-r3.ebuild, + daemontools-0.76-r4.ebuild: + sync IUSE (+static) + + 11 Jun 2004; Bryan Østergaard <kloeri@gentoo.org> + daemontools-0.76-r4.ebuild: + Stable on alpha. + + 09 Apr 2004; Joshua Kinard <kumba@gentoo.org> daemontools-0.76-r4.ebuild: + Marked stable on mips. + + 06 Apr 2004; Joshua Brindle <method@gentoo.org> daemontools-0.76-r3.ebuild, + daemontools-0.76-r4.ebuild: + added selinux policy to rdepend + + 25 Mar 2004; Joshua Kinard <kumba@gentoo.org> daemontools-0.76-r4.ebuild: + Added ~mips to KEYWORDS. + + 18 Feb 2004; Aron Griffis <agriffis@gentoo.org> daemontools-0.76-r3.ebuild, + daemontools-0.76-r4.ebuild: + add ia64/~ia64 keywords + +*daemontools-0.76-r4 (30 Jan 2004) + + 30 Jan 2004; Robin H. Johnson <robbat2@gentoo.org> + daemontools-0.76-r4.ebuild, files/svscan-0.76-r4: + fix bug #33979. + + 25 Dec 2003; Robin H. Johnson <robbat2@gentoo.org> + daemontools-0.76-r3.ebuild: + change to keepdir as per bug #35308 + +*daemontools-0.76-r3 (26 Feb 2003) + + 02 Sep 2003; Mike Frysinger <vapier@gentoo.org> : + Add patch to change `head -1` to `head -n 1`. + + 16 Mar 2003; Will Woods <wwoods@gentoo.org> daemontools-0.76-r3.ebuild: + Added alpha to KEYWORDS + + 26 Feb 2003; Mike Frysinger <vapier@gentoo.org> : + Added patch to fix new glibc errno issues #16396 (#16267). + +*daemontools-0.76-r2 (15 Jan 2003) + + 26 Feb 2003; Mike Frysinger <vapier@gentoo.org> : + Added patch to fix new glibc errno issues #16396 (#16267). + + 15 Jan 2003; Nick Hadaway <raker@gentoo.org> daemontools-0.76-r2.ebuild, + files/digest-daemontools-0.76-r2, files/svscan-r2 : + New svscan which is a work-in-progress so it starts right after net + so dns-dependant services won't stall during startup. + + 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords + +*daemontools-0.76-r1 (14 July 2002) + + 26 Feb 2003; Mike Frysinger <vapier@gentoo.org> : + Added patch to fix new glibc errno issues #16396 (#16267). + + 23 Sep 2002; Nick Hadaway <raker@gentoo.org> + daemontools-0.76-r1.ebuild : + Added support for the static use flag as suggested on bug #8235 + + 26 Jul 2002; Nick Hadaway <raker@gentoo.org> files/svscan : + Updated /etc/init.d/svscan to properly start the supervise daemon + and also added "--pidfile=/var/run/svscan.pid" to start and stop. + + 14 Jul 2002; phoen][x <phoenix@gentoo.org> daemontools-0.76-r1.ebuild : + Added LICENSE, KEYWORDS, SLOT. + +*daemontools-0.70-r1 (1 Feb 2002) + + 14 Jul 2002; phoen][x <phoenix@gentoo.org> daemontools-0.70-r1.ebuild : + Added LICENSE, KEYWORDS, SLOT. + + 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog : + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/sys-process/daemontools/Manifest b/sys-process/daemontools/Manifest new file mode 100644 index 000000000000..f8789ed84d57 --- /dev/null +++ b/sys-process/daemontools/Manifest @@ -0,0 +1,8 @@ +MD5 c4506ce017167279e1994665138ca3af ChangeLog 3737 +MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 +MD5 9f167cfb5a757bac3805dddbf3f1f15e daemontools-0.76-r4.ebuild 1574 +MD5 c75438b1c3b9d9f67691bd10cf3c8e52 files/0.76-errno.patch 246 +MD5 6ce7442b288dd69b4e456d00690a8344 files/0.76-head-1.patch 791 +MD5 7a9635c4207b2bfd8afc7468b0fa0d28 files/svscan 859 +MD5 3f0f5c5f8ae8169640d4dff02605d25e files/digest-daemontools-0.76-r4 67 +MD5 282b1da21e9ea8ba89d5e3e3a4f35e8f files/svscan-0.76-r4 890 diff --git a/sys-process/daemontools/daemontools-0.76-r4.ebuild b/sys-process/daemontools/daemontools-0.76-r4.ebuild new file mode 100644 index 000000000000..3fc28da579e9 --- /dev/null +++ b/sys-process/daemontools/daemontools-0.76-r4.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/daemontools/daemontools-0.76-r4.ebuild,v 1.1 2005/03/03 18:11:26 ciaranm Exp $ + +inherit eutils toolchain-funcs + +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" + +LICENSE="freedist" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 sparc x86" +IUSE="selinux static doc" + +DEPEND="virtual/libc" +RDEPEND="selinux? ( sec-policy/selinux-daemontools ) + doc? ( app-doc/daemontools-man )" + +S=${WORKDIR}/admin/${P} + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}-errno.patch + epatch ${FILESDIR}/${PV}-head-1.patch + + use static && LDFLAGS="${LDFLAGS} -static" + + echo "$(tc-getCC) ${CFLAGS}" > src/conf-cc + echo "$(tc-getCC) ${LDFLAGS}" > src/conf-ld + echo ${S} > src/home +} + +src_compile() { + cd ${S}/src + emake || die "make failed" +} + +src_install() { + einfo "Creating service directory ..." + keepdir /service + + einfo "Installing package ..." + cd ${S}/src + exeinto /usr/bin + for x in `cat ../package/commands` ; do + doexe $x || die + done + + dodoc CHANGES ../package/README TODO + + newinitd ${FILESDIR}/svscan-0.76-r4 svscan +} + +pkg_postinst() { + 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" +} diff --git a/sys-process/daemontools/files/0.76-errno.patch b/sys-process/daemontools/files/0.76-errno.patch new file mode 100644 index 000000000000..3af157c462c9 --- /dev/null +++ b/sys-process/daemontools/files/0.76-errno.patch @@ -0,0 +1,11 @@ +--- src/error.h 2001-07-12 11:49:49.000000000 -0500 ++++ src/error.h 2003-02-26 02:14:06.000000000 -0600 +@@ -3,7 +3,7 @@ + #ifndef ERROR_H + #define ERROR_H + +-extern int errno; ++#include <errno.h> + + extern int error_intr; + extern int error_nomem; diff --git a/sys-process/daemontools/files/0.76-head-1.patch b/sys-process/daemontools/files/0.76-head-1.patch new file mode 100644 index 000000000000..d9569f322958 --- /dev/null +++ b/sys-process/daemontools/files/0.76-head-1.patch @@ -0,0 +1,21 @@ +diff -U 0 -r src.orig/Makefile src/Makefile +--- src.orig/Makefile 2003-09-03 00:00:31.900099744 -0400 ++++ src/Makefile 2003-09-03 00:01:07.776645680 -0400 +@@ -88 +88 @@ +- | sed s}HOME}"`head -1 home`"}g \ ++ | sed s}HOME}"`head -n 1 home`"}g \ +@@ -393 +393 @@ +- | sed s}HOME}"`head -1 home`"}g \ ++ | sed s}HOME}"`head -n 1 home`"}g \ +diff -U 0 -r src.orig/print-cc.sh src/print-cc.sh +--- src.orig/print-cc.sh 2003-09-03 00:00:31.902099440 -0400 ++++ src/print-cc.sh 2003-09-03 00:01:07.777645528 -0400 +@@ -1 +1 @@ +-cc="`head -1 conf-cc`" ++cc="`head -n 1 conf-cc`" +diff -U 0 -r src.orig/print-ld.sh src/print-ld.sh +--- src.orig/print-ld.sh 2003-09-03 00:00:31.902099440 -0400 ++++ src/print-ld.sh 2003-09-03 00:01:07.777645528 -0400 +@@ -1 +1 @@ +-ld="`head -1 conf-ld`" ++ld="`head -n 1 conf-ld`" diff --git a/sys-process/daemontools/files/digest-daemontools-0.76-r4 b/sys-process/daemontools/files/digest-daemontools-0.76-r4 new file mode 100644 index 000000000000..0d344babc47a --- /dev/null +++ b/sys-process/daemontools/files/digest-daemontools-0.76-r4 @@ -0,0 +1 @@ +MD5 1871af2453d6e464034968a0fbcb2bfc daemontools-0.76.tar.gz 36975 diff --git a/sys-process/daemontools/files/svscan b/sys-process/daemontools/files/svscan new file mode 100755 index 000000000000..b6ac2dcc190a --- /dev/null +++ b/sys-process/daemontools/files/svscan @@ -0,0 +1,37 @@ +#!/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,v 1.1 2005/03/03 18:11:26 ciaranm Exp $ + +depend() { + need net + after net + before ntpd + before spamd + before apache + before apache2 +} + +start() { + ebegin "Starting service scan" + ( + # workaround for #25754 + unset -f `declare -F | sed 's:declare -f::g'` + PATH="/usr/bin:$PATH" + start-stop-daemon --start --quiet --exec /usr/bin/svscan --pidfile /var/run/svscan.pid -- /service & + echo $! > /var/run/svscan.pid + ) + eend $? +} + +stop() { + ebegin "Stopping service scan" + start-stop-daemon --stop --quiet --pidfile /var/run/svscan.pid + eend $? + ebegin "Stopping services" + svc -dx /service/* + eend $? + ebegin "Stopping service logging" + svc -dx /service/*/log + eend $? +} diff --git a/sys-process/daemontools/files/svscan-0.76-r4 b/sys-process/daemontools/files/svscan-0.76-r4 new file mode 100755 index 000000000000..2bd616454348 --- /dev/null +++ b/sys-process/daemontools/files/svscan-0.76-r4 @@ -0,0 +1,37 @@ +#!/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-0.76-r4,v 1.1 2005/03/03 18:11:26 ciaranm Exp $ + +depend() { + need net + after net + before ntpd + before spamd + before apache + before apache2 +} + +start() { + ebegin "Starting service scan" + ( + # workaround for #25754 + unset -f `declare -F | sed 's:declare -f::g'` + PATH="/usr/bin:$PATH" + start-stop-daemon --start --quiet --exec /usr/bin/svscan --pidfile /var/run/svscan.pid -- /service & + echo $! > /var/run/svscan.pid + ) + eend $? +} + +stop() { + ebegin "Stopping service scan" + start-stop-daemon --stop --quiet --pidfile /var/run/svscan.pid + eend $? + ebegin "Stopping services" + svc -dx /service/* 2>/dev/null + eend $? + ebegin "Stopping service logging" + svc -dx /service/*/log 2>/dev/null + eend $? +} diff --git a/sys-process/daemontools/metadata.xml b/sys-process/daemontools/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-process/daemontools/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>base-system</herd> +</pkgmetadata> |