[Lunar-commits] <moonbase> daemontools: Added to moonbase.

Stefan Wold ratler at lunar-linux.org
Wed Oct 22 07:06:44 CEST 2008


commit 010542bcb8833f7e5d2f85b3169ee1f67f3a8caa
Author: Linus Swalas <lunar at linus.swalas.org>
Date:   Wed Oct 22 06:58:36 2008 +0200

    daemontools: Added to moonbase.
---
 zbeta/daemontools/BUILD     |   26 ++++++++++++++++++++++++++
 zbeta/daemontools/DETAILS   |   26 ++++++++++++++++++++++++++
 zbeta/daemontools/PRE_BUILD |    4 ++++
 3 files changed, 56 insertions(+), 0 deletions(-)

diff --git a/zbeta/daemontools/BUILD b/zbeta/daemontools/BUILD
new file mode 100644
index 0000000..b7e10e2
--- /dev/null
+++ b/zbeta/daemontools/BUILD
@@ -0,0 +1,26 @@
+(
+    patch_it $SOURCE2 1                 &&
+    echo /usr > conf-home               &&
+    package/compile                     &&
+
+    prepare_install                     &&
+    if [[ ! -d /usr/bin ]]
+    then
+        mkdir -p /usr/bin
+    fi                                  &&
+    cp -f command/* /usr/bin            &&
+    mkdir -p /service /command /etc/service &&
+    for fn in command/*
+    do
+        ln -s ../usr/bin/${fn#command/} /$fn
+    done
+
+cat > /etc/service/README <<-EOF
+     Create your services in this directory and link to them from /service
+     with ln -s ../etc/service/your_service /service/your_service
+
+     Read http://cr.yp.to/daemontools.html to understand more about how to
+     create services.
+EOF
+
+) > $C_FIFO 2>&1
diff --git a/zbeta/daemontools/DETAILS b/zbeta/daemontools/DETAILS
new file mode 100644
index 0000000..1617a9d
--- /dev/null
+++ b/zbeta/daemontools/DETAILS
@@ -0,0 +1,26 @@
+          MODULE=daemontools
+         VERSION=0.76
+          SOURCE=$MODULE-$VERSION.tar.gz
+         SOURCE2=$MODULE-$VERSION.errno.patch
+      SOURCE_URL=http://cr.yp.to/$MODULE/
+     SOURCE2_URL=$PATCH_URL
+      SOURCE_VFY=sha1:70a1be67e7dbe0192a887905846acc99ad5ce5b7
+     SOURCE2_VFY=sha1:ee5b43b333dae9ee3ad0d2f9aeb9c1e2537f0978
+        WEB_SITE=http://cr.yp.to/$MODULE.html
+         ENTERED=20081021
+         UPDATED=20081021
+           SHORT="D.J. Bernstein's $MODULE."
+
+cat << EOF
+daemontools is a collection of tools for managing UNIX services.
+
+supervise monitors a service. It starts the service and restarts the
+service if it dies. Setting up a new service is easy: all supervise
+needs is a directory with a run script that runs the service.
+
+multilog saves error messages to one or more logs. It optionally
+timestamps each line and, for each log, includes or excludes lines
+matching specified patterns. It automatically rotates logs to limit
+the amount of disk space used. If the disk fills up, it pauses and
+tries again, without losing any data.
+EOF
diff --git a/zbeta/daemontools/PRE_BUILD b/zbeta/daemontools/PRE_BUILD
new file mode 100644
index 0000000..c1fe8be
--- /dev/null
+++ b/zbeta/daemontools/PRE_BUILD
@@ -0,0 +1,4 @@
+validate_source_dir $SOURCE_DIRECTORY   &&
+mk_source_dir $SOURCE_DIRECTORY         &&
+cd $SOURCE_DIRECTORY                    &&
+tar zx --strip-components=2 -f $SOURCE_CACHE/$SOURCE


More information about the Lunar-commits mailing list