summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiaran McCreesh <ciaranm@gentoo.org>2005-03-03 18:11:26 +0000
committerCiaran McCreesh <ciaranm@gentoo.org>2005-03-03 18:11:26 +0000
commit7d6bf184f86c9b2395cdc15abfda6f757ed8c65b (patch)
treec08d3bb46c2feec1c25abcf2e75bd46d4b386720 /sys-process/daemontools/files
parentMoved sys-apps/daemontools-scripts to sys-process/daemontools-scripts (diff)
downloadgentoo-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/daemontools/files')
-rw-r--r--sys-process/daemontools/files/0.76-errno.patch11
-rw-r--r--sys-process/daemontools/files/0.76-head-1.patch21
-rw-r--r--sys-process/daemontools/files/digest-daemontools-0.76-r41
-rwxr-xr-xsys-process/daemontools/files/svscan37
-rwxr-xr-xsys-process/daemontools/files/svscan-0.76-r437
5 files changed, 107 insertions, 0 deletions
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 $?
+}