Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Aug 2002 12:50:50 -0700 (PDT)
From:      Andrew Turner <zombie@i4free.co.nz>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/41718: New port: dwatch - A daemon watcher
Message-ID:  <200208161950.g7GJooe7058167@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         41718
>Category:       ports
>Synopsis:       New port: dwatch - A daemon watcher
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 16 13:00:06 PDT 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208161950.g7GJooe7058167>