Date: Thu, 17 Jun 2004 10:12:44 -0400 (EDT) From: Kelley Reynolds <kelley@insidesystems.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/68045: New port: sysutils/daedalus Flexible Monitor/Restart daemon written in ruby Message-ID: <200406171412.i5HECijw071705@kelley.insidesystems.net> Resent-Message-ID: <200406171420.i5HEKJjC005718@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 68045 >Category: ports >Synopsis: New port: sysutils/daedalus Flexible Monitor/Restart daemon written in ruby >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jun 17 14:20:19 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Kelley Reynolds >Release: FreeBSD 4.9-RELEASE-p1 i386 >Organization: Inside Systems, Inc. >Environment: System: FreeBSD kelley.insidesystems.net 4.9-RELEASE-p1 FreeBSD 4.9-RELEASE-p1 #0: Wed Jan 14 15:36:04 EST 2004 root@swank.verbotenplanet.net:/usr/obj/usr/src/sys/SWANK i386 >Description: 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. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # /usr/ports/sysutils/daedalus # /usr/ports/sysutils/daedalus/Makefile # /usr/ports/sysutils/daedalus/pkg-plist # /usr/ports/sysutils/daedalus/pkg-descr # /usr/ports/sysutils/daedalus/distinfo # /usr/ports/sysutils/daedalus/pkg-message # /usr/ports/sysutils/daedalus/files # /usr/ports/sysutils/daedalus/files/daedalus.sh # echo c - /usr/ports/sysutils/daedalus mkdir -p /usr/ports/sysutils/daedalus > /dev/null 2>&1 echo x - /usr/ports/sysutils/daedalus/Makefile sed 's/^X//' >/usr/ports/sysutils/daedalus/Makefile << 'END-of-/usr/ports/sysutils/daedalus/Makefile' X# New ports collection makefile for: daedalus X# Date created: 16 June 2004 X# Whom: Kelley Reynolds <kelley@insidesystems.net> X# X# $FreeBSD$ X# X XPORTNAME= daedalus XPORTVERSION= 1.1 XPORTREVISION= 0 XCATEGORIES= sysutils XMASTER_SITES= ftp://ftp.verbotenplanet.net/daedalus/ X XMAINTAINER= kelley@insidesystems.net XCOMMENT= Flexible process monitor/restart daemon written in ruby X XWRKSRC= ${WRKDIR}/${PORTNAME} X XUSE_RUBY= yes XUSE_RUBY_FEATURES= 1.8 X XNO_BUILD= yes X XUSE_RC_SUBR= yes XSED_SCRIPT= -e 's,%%RC_SUBR%%,${RC_SUBR},g' \ X -e 's,%%PREFIX%%,${PREFIX},g' \ X -e 's,%%RUBY_WITHOUT_SUFFIX%%,${RUBY_WITHOUT_SUFFIX},g' X Xpre-install: X @${SED} ${SED_SCRIPT} ${FILESDIR}/${PORTNAME}.sh >${WRKDIR}/${PORTNAME}.sh X Xdo-install: X ${INSTALL_SCRIPT} ${WRKSRC}/daedalus.rb ${PREFIX}/bin/daedalus.rb X ${INSTALL_DATA} ${WRKSRC}/examples/daedalus.conf ${PREFIX}/etc/daedalus.conf.sample X ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/etc/rc.d/${PORTNAME}.sh X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.mk> END-of-/usr/ports/sysutils/daedalus/Makefile echo x - /usr/ports/sysutils/daedalus/pkg-plist sed 's/^X//' >/usr/ports/sysutils/daedalus/pkg-plist << 'END-of-/usr/ports/sysutils/daedalus/pkg-plist' Xbin/daedalus.rb Xetc/rc.d/daedalus.sh Xetc/daedalus.conf.sample END-of-/usr/ports/sysutils/daedalus/pkg-plist echo x - /usr/ports/sysutils/daedalus/pkg-descr sed 's/^X//' >/usr/ports/sysutils/daedalus/pkg-descr << 'END-of-/usr/ports/sysutils/daedalus/pkg-descr' XDaedalus is a monitor/restart daemon written in ruby Xwhich has an extremely flexible regex-based interface Xfor determining whether or not a process is running. X X- Kelley Reynolds Xkelley@insidesystems.net END-of-/usr/ports/sysutils/daedalus/pkg-descr echo x - /usr/ports/sysutils/daedalus/distinfo sed 's/^X//' >/usr/ports/sysutils/daedalus/distinfo << 'END-of-/usr/ports/sysutils/daedalus/distinfo' XMD5 (daedalus-1.1.tar.gz) = 5b103455802177ca8a6a2cb126630167 XSIZE (daedalus-1.1.tar.gz) = 33898 END-of-/usr/ports/sysutils/daedalus/distinfo echo x - /usr/ports/sysutils/daedalus/pkg-message sed 's/^X//' >/usr/ports/sysutils/daedalus/pkg-message << 'END-of-/usr/ports/sysutils/daedalus/pkg-message' X XIMPORTANT NOTE: X=============== X XTo use daedalus, be sure to include X Xdaedalus_enable="YES" X Xin rc.conf X END-of-/usr/ports/sysutils/daedalus/pkg-message echo c - /usr/ports/sysutils/daedalus/files mkdir -p /usr/ports/sysutils/daedalus/files > /dev/null 2>&1 echo x - /usr/ports/sysutils/daedalus/files/daedalus.sh sed 's/^X//' >/usr/ports/sysutils/daedalus/files/daedalus.sh << 'END-of-/usr/ports/sysutils/daedalus/files/daedalus.sh' X#!/bin/sh X# X# PROVIDE: daedalus X# REQUIRE: DAEMON X# KEYWORD: FreeBSD X# X# Add the following line to /etc/rc.conf to enable daedalus: X# daedalus_enable (bool): Set to "NO" by default. X# Set it to "YES" to enable daedalus X# daedalus_flags (str): Set to "-C -c %%PREFIX%%/etc/daedalus.conf" by default. X# Extra flags passed to start command X# X. %%RC_SUBR%% X Xname="daedalus" Xrcvar=`set_rcvar` X Xcommand="%%PREFIX%%/bin/daedalus.rb" Xpidfile="/var/run/daedalus.pid" Xcommand_interpreter="%%RUBY_WITHOUT_SUFFIX%%" Xrequired_files=%%PREFIX%%/etc/daedalus.conf X X[ -z "$daedalus_enable" ] && daedalus_enable="NO" X[ -z "$daedalus_flags" ] && daedalus_flags="-C -c %%PREFIX%%/etc/daedalus.conf" X Xload_rc_config $name X Xsig_stop=-TERM X Xextra_commands="reload" Xrun_rc_command "$1" END-of-/usr/ports/sysutils/daedalus/files/daedalus.sh exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406171412.i5HECijw071705>