aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-11-05 21:03:46 +0800
committerpav <pav@FreeBSD.org>2004-11-05 21:03:46 +0800
commit451666e0367f1f982f4f531834120d3aac55ffdd (patch)
tree4ecb341a33225b50eb6bef298f8db438b153a7f2 /sysutils
parentbe10a45f664dbbce898837f2b1930dd8c7d902bb (diff)
downloadfreebsd-ports-gnome-451666e0367f1f982f4f531834120d3aac55ffdd.tar.gz
freebsd-ports-gnome-451666e0367f1f982f4f531834120d3aac55ffdd.tar.zst
freebsd-ports-gnome-451666e0367f1f982f4f531834120d3aac55ffdd.zip
Add daedalus, a monitor/restart daemon written in ruby
which has an extremely flexible regex-based interface for determining whether or not a process is running. PR: ports/68045 Submitted by: Kelley Reynolds <kelley@insidesystems.net>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/daedalus/Makefile39
-rw-r--r--sysutils/daedalus/distinfo2
-rw-r--r--sysutils/daedalus/files/daedalus.sh31
-rw-r--r--sysutils/daedalus/pkg-descr6
-rw-r--r--sysutils/daedalus/pkg-message10
-rw-r--r--sysutils/daedalus/pkg-plist3
7 files changed, 92 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index bf7be790557c..293d4878e037 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -80,6 +80,7 @@
SUBDIR += cronolog
SUBDIR += curly
SUBDIR += cvsweb-converters
+ SUBDIR += daedalus
SUBDIR += daemontools
SUBDIR += daemontools53
SUBDIR += dar
diff --git a/sysutils/daedalus/Makefile b/sysutils/daedalus/Makefile
new file mode 100644
index 000000000000..164bf9ba3279
--- /dev/null
+++ b/sysutils/daedalus/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: daedalus
+# Date created: 16 June 2004
+# Whom: Kelley Reynolds <kelley@insidesystems.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= daedalus
+PORTVERSION= 1.1
+CATEGORIES= sysutils
+MASTER_SITES= ftp://ftp.verbotenplanet.net/daedalus/
+
+MAINTAINER= kelley@insidesystems.net
+COMMENT= Flexible process monitor/restart daemon written in ruby
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+USE_RUBY= yes
+USE_RUBY_FEATURES= 1.8
+
+NO_BUILD= yes
+
+USE_RC_SUBR= yes
+SED_SCRIPT= -e 's,%%RC_SUBR%%,${RC_SUBR},g' \
+ -e 's,%%PREFIX%%,${PREFIX},g' \
+ -e 's,%%RUBY_WITHOUT_SUFFIX%%,${RUBY_WITHOUT_SUFFIX},g'
+
+pre-install:
+ @${SED} ${SED_SCRIPT} ${FILESDIR}/${PORTNAME}.sh >${WRKDIR}/${PORTNAME}.sh
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/daedalus.rb ${PREFIX}/bin/daedalus.rb
+ ${INSTALL_DATA} ${WRKSRC}/examples/daedalus.conf ${PREFIX}/etc/daedalus.conf.sample
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/etc/rc.d/${PORTNAME}.sh
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/sysutils/daedalus/distinfo b/sysutils/daedalus/distinfo
new file mode 100644
index 000000000000..5d2873d9cefd
--- /dev/null
+++ b/sysutils/daedalus/distinfo
@@ -0,0 +1,2 @@
+MD5 (daedalus-1.1.tar.gz) = 5b103455802177ca8a6a2cb126630167
+SIZE (daedalus-1.1.tar.gz) = 33898
diff --git a/sysutils/daedalus/files/daedalus.sh b/sysutils/daedalus/files/daedalus.sh
new file mode 100644
index 000000000000..4b916599eaf1
--- /dev/null
+++ b/sysutils/daedalus/files/daedalus.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# PROVIDE: daedalus
+# REQUIRE: DAEMON
+# KEYWORD: FreeBSD
+#
+# Add the following line to /etc/rc.conf to enable daedalus:
+# daedalus_enable (bool): Set to "NO" by default.
+# Set it to "YES" to enable daedalus
+# daedalus_flags (str): Set to "-C -c %%PREFIX%%/etc/daedalus.conf" by default.
+# Extra flags passed to start command
+#
+. %%RC_SUBR%%
+
+name="daedalus"
+rcvar=`set_rcvar`
+
+command="%%PREFIX%%/bin/daedalus.rb"
+pidfile="/var/run/daedalus.pid"
+command_interpreter="%%RUBY_WITHOUT_SUFFIX%%"
+required_files=%%PREFIX%%/etc/daedalus.conf
+
+[ -z "$daedalus_enable" ] && daedalus_enable="NO"
+[ -z "$daedalus_flags" ] && daedalus_flags="-C -c %%PREFIX%%/etc/daedalus.conf"
+
+load_rc_config $name
+
+sig_stop=-TERM
+
+extra_commands="reload"
+run_rc_command "$1"
diff --git a/sysutils/daedalus/pkg-descr b/sysutils/daedalus/pkg-descr
new file mode 100644
index 000000000000..cb2f174b6470
--- /dev/null
+++ b/sysutils/daedalus/pkg-descr
@@ -0,0 +1,6 @@
+Daedalus is a monitor/restart daemon written in ruby
+which has an extremely flexible regex-based interface
+for determining whether or not a process is running.
+
+- Kelley Reynolds
+kelley@insidesystems.net
diff --git a/sysutils/daedalus/pkg-message b/sysutils/daedalus/pkg-message
new file mode 100644
index 000000000000..fa5c09bf5323
--- /dev/null
+++ b/sysutils/daedalus/pkg-message
@@ -0,0 +1,10 @@
+
+IMPORTANT NOTE:
+===============
+
+To use daedalus, be sure to include
+
+daedalus_enable="YES"
+
+in rc.conf
+
diff --git a/sysutils/daedalus/pkg-plist b/sysutils/daedalus/pkg-plist
new file mode 100644
index 000000000000..0198c34434d8
--- /dev/null
+++ b/sysutils/daedalus/pkg-plist
@@ -0,0 +1,3 @@
+bin/daedalus.rb
+etc/rc.d/daedalus.sh
+etc/daedalus.conf.sample