From nobody@FreeBSD.org  Fri Aug 16 12:53:48 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3B2AC37B40A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 16 Aug 2002 12:53:48 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 94BB943E97
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 16 Aug 2002 12:53:31 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g7GJooOT058168
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 16 Aug 2002 12:50:50 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.4/8.12.4/Submit) id g7GJooe7058167;
	Fri, 16 Aug 2002 12:50:50 -0700 (PDT)
Message-Id: <200208161950.g7GJooe7058167@www.freebsd.org>
Date: Fri, 16 Aug 2002 12:50:50 -0700 (PDT)
From: Andrew Turner <zombie@i4free.co.nz>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New port: dwatch - A daemon watcher
X-Send-Pr-Version: www-1.0

>Number:         41718
>Category:       ports
>Synopsis:       New port: dwatch - A daemon watcher
>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:   Fri Aug 16 13:00:06 PDT 2002
>Closed-Date:    Mon Mar 31 14:06:17 PST 2003
>Last-Modified:  Mon Mar 31 14:06:17 PST 2003
>Originator:     Andrew Turner
>Release:        4.6.1-RELEASE-p8
>Organization:
>Environment:
>Description:
Daemon Watch will check if a process is running or if a tcp port is open.
>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:
#
#	dwatch/
#	dwatch/Makefile
#	dwatch/pkg-plist
#	dwatch/files
#	dwatch/files/patch-dwatch.c
#	dwatch/files/patch-Makefile
#	dwatch/pkg-descr
#	dwatch/pkg-comment
#	dwatch/distinfo
#
echo c - dwatch/
mkdir -p dwatch/ > /dev/null 2>&1
echo x - dwatch/Makefile
sed 's/^X//' >dwatch/Makefile << 'END-of-dwatch/Makefile'
X# New ports collection makefile for:	dwatch
X# Date created:		14 Aug 2002
X# Whom:			Andrew Turner <zombie@i4free.co.nz>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	dwatch
XPORTVERSION=	0.1.1
XCATEGORIES=	sysutils
XMASTER_SITES=	ftp://siag.nu/pub/dwatch/ \
X		http://siag.nu/pub/dwatch/
X
XMAINTAINER=	zombie@i4free.co.nz
X
XMAN1=		dwatch.1
X
Xpre-install:
X	${INSTALL_DATA} ${WRKSRC}/dwatch.conf ${PREFIX}/etc/dwatch.conf-dist
X
Xpost-install:
X	${STRIP_CMD} ${PREFIX}/bin/dwatch
X
X.include <bsd.port.mk>
END-of-dwatch/Makefile
echo x - dwatch/pkg-plist
sed 's/^X//' >dwatch/pkg-plist << 'END-of-dwatch/pkg-plist'
Xbin/dwatch
Xetc/dwatch.conf-dist
END-of-dwatch/pkg-plist
echo c - dwatch/files
mkdir -p dwatch/files > /dev/null 2>&1
echo x - dwatch/files/patch-dwatch.c
sed 's/^X//' >dwatch/files/patch-dwatch.c << 'END-of-dwatch/files/patch-dwatch.c'
X--- dwatch.c.orig	Wed Aug 14 16:52:28 2002
X+++ dwatch.c	Wed Aug 14 16:52:34 2002
X@@ -17,6 +17,7 @@
X    MA 02111-1307, USA.
X */
X 
X+#include <sys/types.h>
X #include <stdio.h>
X #include <stdlib.h>
X #include <string.h>
END-of-dwatch/files/patch-dwatch.c
echo x - dwatch/files/patch-Makefile
sed 's/^X//' >dwatch/files/patch-Makefile << 'END-of-dwatch/files/patch-Makefile'
X--- Makefile.orig	Wed Aug 14 21:37:07 2002
X+++ Makefile	Wed Aug 14 21:36:47 2002
X@@ -10,7 +10,8 @@
X LDFLAGS = `./guess --libs`
X 
X # This ps works for Linux and Solaris, at least
X-PS = "/bin/ps -ef"
X+#PS = "/bin/ps -ef"
X+PS = "/bin/ps -ax"
X 
X # For Linux
X #CFLAGS = -Wall -g
X@@ -19,7 +20,7 @@
X #CFLAGS = -Wall -g
X #LDFLAGS = -lnsl -lsocket
X 
X-PREFIX = /usr/local
X+PREFIX ?= /usr/local
X BINDIR = $(PREFIX)/bin
X MANDIR = $(PREFIX)/man
X MAN1DIR = $(MANDIR)/man1
END-of-dwatch/files/patch-Makefile
echo x - dwatch/pkg-descr
sed 's/^X//' >dwatch/pkg-descr << 'END-of-dwatch/pkg-descr'
XDwatch (Daemon Watch) is a program that watches over other programs
Xand performs actions based on conditions specified in a configuration file.
X
XWWW: http://siag.org/dwatch/
END-of-dwatch/pkg-descr
echo x - dwatch/pkg-comment
sed 's/^X//' >dwatch/pkg-comment << 'END-of-dwatch/pkg-comment'
XDwatch - A Daemon Watcher
END-of-dwatch/pkg-comment
echo x - dwatch/distinfo
sed 's/^X//' >dwatch/distinfo << 'END-of-dwatch/distinfo'
XMD5 (dwatch-0.1.1.tar.gz) = 25c06240cb5ab8126badc8a78dcd2b79
END-of-dwatch/distinfo
exit

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Mon Mar 31 14:06:11 PST 2003 
State-Changed-Why:  
Commited, thanks! 

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