summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-apps/daemontools/ChangeLog10
-rw-r--r--sys-apps/daemontools/Manifest12
-rw-r--r--sys-apps/daemontools/daemontools-0.76-r4.ebuild53
-rw-r--r--sys-apps/daemontools/files/digest-daemontools-0.76-r41
-rw-r--r--sys-apps/daemontools/files/svscan-0.76-r437
5 files changed, 106 insertions, 7 deletions
diff --git a/sys-apps/daemontools/ChangeLog b/sys-apps/daemontools/ChangeLog
index f43b58cdb205..3d7f34c9d925 100644
--- a/sys-apps/daemontools/ChangeLog
+++ b/sys-apps/daemontools/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/daemontools
-# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/daemontools/ChangeLog,v 1.13 2003/12/26 01:11:37 robbat2 Exp $
+# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/daemontools/ChangeLog,v 1.14 2004/01/30 08:06:51 robbat2 Exp $
+
+*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:
diff --git a/sys-apps/daemontools/Manifest b/sys-apps/daemontools/Manifest
index 5fbd3d779762..fa348328bdd0 100644
--- a/sys-apps/daemontools/Manifest
+++ b/sys-apps/daemontools/Manifest
@@ -1,8 +1,10 @@
+MD5 66fa69577bbbb41611a1f0de9de93b20 daemontools-0.76-r4.ebuild 1163
+MD5 874195232d2dc2cac69749ae63bd47f8 ChangeLog 2519
+MD5 f1278085f8e2bdba34e55d5bbb1a76de daemontools-0.76-r3.ebuild 1150
+MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
MD5 3f0f5c5f8ae8169640d4dff02605d25e files/digest-daemontools-0.76-r3 67
-MD5 67bd76fc34cd59a67fe462ed6e4ce942 files/svscan 875
+MD5 3f0f5c5f8ae8169640d4dff02605d25e files/digest-daemontools-0.76-r4 67
+MD5 a33246a8c0e77035e082b34ab00ada15 files/svscan-0.76-r4 907
+MD5 3318e4b4e02e2241c27c8ddb4458d737 files/svscan 874
MD5 c75438b1c3b9d9f67691bd10cf3c8e52 files/0.76-errno.patch 246
MD5 6ce7442b288dd69b4e456d00690a8344 files/0.76-head-1.patch 791
-MD5 d1b6aaba03973870f1bece46ef8bd5ed .#Manifest.1.8 431
-MD5 14a3609f655a3dd3ce7aa6f02052a848 ChangeLog 2360
-MD5 4c7e6713927193078995a3478c13ae08 daemontools-0.76-r3.ebuild 1151
-MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
diff --git a/sys-apps/daemontools/daemontools-0.76-r4.ebuild b/sys-apps/daemontools/daemontools-0.76-r4.ebuild
new file mode 100644
index 000000000000..bb6326c6e85d
--- /dev/null
+++ b/sys-apps/daemontools/daemontools-0.76-r4.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/daemontools/daemontools-0.76-r4.ebuild,v 1.1 2004/01/30 08:06:51 robbat2 Exp $
+
+inherit eutils gcc
+
+DESCRIPTION="Collection of tools for managing UNIX services"
+SRC_URI="http://cr.yp.to/daemontools/${P}.tar.gz"
+HOMEPAGE="http://cr.yp.to/daemontools.html"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~alpha"
+
+DEPEND="virtual/glibc"
+
+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 "$(gcc-getCC) ${CFLAGS}" > src/conf-cc
+ echo "$(gcc-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
+ done
+
+ dodoc CHANGES ../package/README TODO
+
+ exeinto /etc/init.d
+ doexe ${FILESDIR}/svscan-0.76-r4
+}
diff --git a/sys-apps/daemontools/files/digest-daemontools-0.76-r4 b/sys-apps/daemontools/files/digest-daemontools-0.76-r4
new file mode 100644
index 000000000000..0d344babc47a
--- /dev/null
+++ b/sys-apps/daemontools/files/digest-daemontools-0.76-r4
@@ -0,0 +1 @@
+MD5 1871af2453d6e464034968a0fbcb2bfc daemontools-0.76.tar.gz 36975
diff --git a/sys-apps/daemontools/files/svscan-0.76-r4 b/sys-apps/daemontools/files/svscan-0.76-r4
new file mode 100644
index 000000000000..d8080b9ffa90
--- /dev/null
+++ b/sys-apps/daemontools/files/svscan-0.76-r4
@@ -0,0 +1,37 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/daemontools/files/svscan-0.76-r4,v 1.1 2004/01/30 08:06:51 robbat2 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 $?
+}