From 81d5a430ce67b2b73770bae2849603d59c833e61 Mon Sep 17 00:00:00 2001 From: edwin Date: Mon, 31 Mar 2003 22:05:56 +0000 Subject: New port: dwatch - A daemon watcher Daemon Watch will check if a process is running or if a tcp port is open. PR: ports/41718 Submitted by: Andrew Turner --- sysutils/Makefile | 1 + sysutils/dwatch/Makefile | 25 +++++++++++++++++++++++++ sysutils/dwatch/distinfo | 1 + sysutils/dwatch/files/patch-Makefile | 21 +++++++++++++++++++++ sysutils/dwatch/files/patch-dwatch.c | 10 ++++++++++ sysutils/dwatch/pkg-descr | 4 ++++ sysutils/dwatch/pkg-plist | 2 ++ 7 files changed, 64 insertions(+) create mode 100644 sysutils/dwatch/Makefile create mode 100644 sysutils/dwatch/distinfo create mode 100644 sysutils/dwatch/files/patch-Makefile create mode 100644 sysutils/dwatch/files/patch-dwatch.c create mode 100644 sysutils/dwatch/pkg-descr create mode 100644 sysutils/dwatch/pkg-plist (limited to 'sysutils') diff --git a/sysutils/Makefile b/sysutils/Makefile index 1dbb71c1e33c..248215cfecfc 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -64,6 +64,7 @@ SUBDIR += dump9660 SUBDIR += durep SUBDIR += dvdtape + SUBDIR += dwatch SUBDIR += e2fsprogs SUBDIR += eject SUBDIR += enteruser diff --git a/sysutils/dwatch/Makefile b/sysutils/dwatch/Makefile new file mode 100644 index 000000000000..2e8fbb29a9db --- /dev/null +++ b/sysutils/dwatch/Makefile @@ -0,0 +1,25 @@ +# New ports collection makefile for: dwatch +# Date created: 14 Aug 2002 +# Whom: Andrew Turner +# +# $FreeBSD$ +# + +PORTNAME= dwatch +PORTVERSION= 0.1.1 +CATEGORIES= sysutils +MASTER_SITES= ftp://siag.nu/pub/dwatch/ \ + http://siag.nu/pub/dwatch/ + +MAINTAINER= zombie@i4free.co.nz +COMMENT= Dwatch - A Daemon Watcher + +MAN1= dwatch.1 + +pre-install: + ${INSTALL_DATA} ${WRKSRC}/dwatch.conf ${PREFIX}/etc/dwatch.conf-dist + +post-install: + ${STRIP_CMD} ${PREFIX}/bin/dwatch + +.include diff --git a/sysutils/dwatch/distinfo b/sysutils/dwatch/distinfo new file mode 100644 index 000000000000..bef33120eade --- /dev/null +++ b/sysutils/dwatch/distinfo @@ -0,0 +1 @@ +MD5 (dwatch-0.1.1.tar.gz) = 25c06240cb5ab8126badc8a78dcd2b79 diff --git a/sysutils/dwatch/files/patch-Makefile b/sysutils/dwatch/files/patch-Makefile new file mode 100644 index 000000000000..f782803e66fc --- /dev/null +++ b/sysutils/dwatch/files/patch-Makefile @@ -0,0 +1,21 @@ +--- Makefile.orig Wed Aug 14 21:37:07 2002 ++++ Makefile Wed Aug 14 21:36:47 2002 +@@ -10,7 +10,8 @@ + LDFLAGS = `./guess --libs` + + # This ps works for Linux and Solaris, at least +-PS = "/bin/ps -ef" ++#PS = "/bin/ps -ef" ++PS = "/bin/ps -ax" + + # For Linux + #CFLAGS = -Wall -g +@@ -19,7 +20,7 @@ + #CFLAGS = -Wall -g + #LDFLAGS = -lnsl -lsocket + +-PREFIX = /usr/local ++PREFIX ?= /usr/local + BINDIR = $(PREFIX)/bin + MANDIR = $(PREFIX)/man + MAN1DIR = $(MANDIR)/man1 diff --git a/sysutils/dwatch/files/patch-dwatch.c b/sysutils/dwatch/files/patch-dwatch.c new file mode 100644 index 000000000000..cc11936faedf --- /dev/null +++ b/sysutils/dwatch/files/patch-dwatch.c @@ -0,0 +1,10 @@ +--- dwatch.c.orig Wed Aug 14 16:52:28 2002 ++++ dwatch.c Wed Aug 14 16:52:34 2002 +@@ -17,6 +17,7 @@ + MA 02111-1307, USA. + */ + ++#include + #include + #include + #include diff --git a/sysutils/dwatch/pkg-descr b/sysutils/dwatch/pkg-descr new file mode 100644 index 000000000000..35512e0a127d --- /dev/null +++ b/sysutils/dwatch/pkg-descr @@ -0,0 +1,4 @@ +Dwatch (Daemon Watch) is a program that watches over other programs +and performs actions based on conditions specified in a configuration file. + +WWW: http://siag.org/dwatch/ diff --git a/sysutils/dwatch/pkg-plist b/sysutils/dwatch/pkg-plist new file mode 100644 index 000000000000..d4ac7620e996 --- /dev/null +++ b/sysutils/dwatch/pkg-plist @@ -0,0 +1,2 @@ +bin/dwatch +etc/dwatch.conf-dist -- cgit