aboutsummaryrefslogtreecommitdiff
path: root/sysutils/daedalus
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-11-05 13:03:46 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-11-05 13:03:46 +0000
commit4f6b27ab704a0087fbbfdd4b809beb8c1a698b2e (patch)
treee9b16a86f925baf86e6b62d753ba116d2f588714 /sysutils/daedalus
parent05404e37acea1f285bc788614d573a052fc060f4 (diff)
downloadports-4f6b27ab704a0087fbbfdd4b809beb8c1a698b2e.tar.gz
ports-4f6b27ab704a0087fbbfdd4b809beb8c1a698b2e.zip
Notes
Diffstat (limited to 'sysutils/daedalus')
-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
6 files changed, 91 insertions, 0 deletions
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