From walt@mithras.erudition.net  Thu Aug 21 19:54:48 2003
Return-Path: <walt@mithras.erudition.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B3E1216A4BF
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 21 Aug 2003 19:54:48 -0700 (PDT)
Received: from mithras.erudition.net (mithras.erudition.net [68.166.48.138])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B9A6343FCB
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 21 Aug 2003 19:54:47 -0700 (PDT)
	(envelope-from walt@mithras.erudition.net)
Received: from mithras.erudition.net (localhost.erudition.net [127.0.0.1])
	by mithras.erudition.net (8.12.9/8.12.9) with ESMTP id h7M2smMW031601
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 21 Aug 2003 22:54:48 -0400 (EDT)
	(envelope-from walt@mithras.erudition.net)
Received: (from walt@localhost)
	by mithras.erudition.net (8.12.9/8.12.9/Submit) id h7M2slZc031600;
	Thu, 21 Aug 2003 22:54:47 -0400 (EDT)
	(envelope-from walt)
Message-Id: <200308220254.h7M2slZc031600@mithras.erudition.net>
Date: Thu, 21 Aug 2003 22:54:47 -0400 (EDT)
From: "W. M. Shandruk" <walt@erudition.net>
Reply-To: "W. M. Shandruk" <walt@erudition.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Update port: sysutils/monitord Bug fixes and feature additions.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         55858
>Category:       ports
>Synopsis:       Update port: sysutils/monitord Bug fixes and feature additions.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 21 20:00:35 PDT 2003
>Closed-Date:    Fri Aug 22 00:20:04 PDT 2003
>Last-Modified:  Fri Aug 22 00:20:04 PDT 2003
>Originator:     W. M. Shandruk
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD mithras.erudition.net 4.3-STABLE FreeBSD 4.3-STABLE #0: Mon Jul 23 02:33:33 EDT 2001 root@mithras.erudition.net:/usr/src/sys/compile/MITHRAS i386


>Description:
	monitord is a simple to use system service that allows one to easily monitor other system services for accidental termination and then automatically restart them.
>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:
#
#       monitord
#       monitord/files
#       monitord/files/patch-aa
#       monitord/pkg-plist
#       monitord/pkg-descr
#       monitord/Makefile
#       monitord/distinfo
#
echo c - monitord
mkdir -p monitord > /dev/null 2>&1
echo c - monitord/files
mkdir -p monitord/files > /dev/null 2>&1
echo x - monitord/files/patch-aa
sed 's/^X//' >monitord/files/patch-aa << 'END-of-monitord/files/patch-aa'
X--- Makefile.orig      Thu Jun 15 11:17:14 2000
X+++ Makefile   Sun Jun 17 14:56:30 2001
X@@ -6,7 +6,7 @@
X
X TARGET =      monitord
X
X-MANDIR =      /usr/local/man
X+MANDIR =      $(PREFIX)/man
X
X .SUFFIXES:
X .SUFFIXES: .c .o
X@@ -28,6 +28,6 @@
X       $(CC) $(OBJECTS) -o $(TARGET)
X
X install:
X-      $(INSTALL) -cs $(TARGET) /usr/local/sbin
X-      $(INSTALL) -c $(TARGET).conf /usr/local/etc
X-      $(INSTALL) -c $(TARGET).8 $(MANDIR)/man8
X+      $(BSD_INSTALL_PROGRAM) $(TARGET) $(PREFIX)/sbin
X+      if [ ! -e $(PREFIX)/etc/$(TARGET).conf.sample ] ; then $(BSD_INSTALL_DATA) $(TARGET).conf.sample $(
PREFIX)/etc; fi
X+      $(BSD_INSTALL_MAN) -c $(TARGET).8 $(MANDIR)/man8
END-of-monitord/files/patch-aa
echo x - monitord/pkg-plist
sed 's/^X//' >monitord/pkg-plist << 'END-of-monitord/pkg-plist'
X@unexec if cmp -s %D/etc/monitord.conf %D/etc/monitord.conf.sample; then rm -f %D/etc/monitord.conf; fi
Xetc/monitord.conf.sample
Xsbin/monitord
END-of-monitord/pkg-plist
echo x - monitord/pkg-descr
sed 's/^X//' >monitord/pkg-descr << 'END-of-monitord/pkg-descr'
XThis port allows one to monitor other standalone services and
Xautomatically restart them if they are accidentally and unwittingly
Xterminated, or crash either because of instability or a DoS attack.
XIt simplifies a task capable of being performed by cron(8) by not
Xrequiring custom scripts to be written for each service being
Xmonitored. The configuration file is simple and easily setup.
X
XNote: version 0.4.1 has a different configuration file format and
Xany previous configuration file should be updated accordingly.
X
X- Walt
Xwalt@erudition.net
END-of-monitord/pkg-descr
echo x - monitord/Makefile
sed 's/^X//' >monitord/Makefile << 'END-of-monitord/Makefile'
X# New ports collection makefile for:   monitord
X# Date created:                                5 June 2000
X# Whom:                                        walt
X#
X# $FreeBSD$
X#
X
XPORTNAME=      monitord
XPORTVERSION=   0.4.1
XCATEGORIES=    sysutils
XMASTER_SITES=  ftp://ftp.erudition.net/pub/monitord/
X
XMAINTAINER=    walt@erudition.net
XCOMMENT=       Service that restarts other standalone services
X
XMAN8=          monitord.8
X
Xpost-install:
X       @${CP} ${WRKSRC}/monitord.conf.sample ${PREFIX}/etc/monitord.conf.sample
X
X.include <bsd.port.mk>
END-of-monitord/Makefile
echo x - monitord/distinfo
sed 's/^X//' >monitord/distinfo << 'END-of-monitord/distinfo'
XMD5 (monitord-0.4.1.tar.gz) = 3cc368f2f000f445df0ccfe051ac2564
END-of-monitord/distinfo
exit

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: leeym 
State-Changed-When: Fri Aug 22 00:13:25 PDT 2003 
State-Changed-Why:  
Committed, thanks. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=55858 
>Unformatted:
