diff options
author | edwin <edwin@FreeBSD.org> | 2003-04-01 06:05:56 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-04-01 06:05:56 +0800 |
commit | 81d5a430ce67b2b73770bae2849603d59c833e61 (patch) | |
tree | e03e24edb6ea4834751973f60564cae4afbda2d3 /sysutils | |
parent | e916d5daf5aff37ee4dc032dc2a8ef2445110993 (diff) | |
download | freebsd-ports-gnome-81d5a430ce67b2b73770bae2849603d59c833e61.tar.gz freebsd-ports-gnome-81d5a430ce67b2b73770bae2849603d59c833e61.tar.zst freebsd-ports-gnome-81d5a430ce67b2b73770bae2849603d59c833e61.zip |
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 <zombie@i4free.co.nz>
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/dwatch/Makefile | 25 | ||||
-rw-r--r-- | sysutils/dwatch/distinfo | 1 | ||||
-rw-r--r-- | sysutils/dwatch/files/patch-Makefile | 21 | ||||
-rw-r--r-- | sysutils/dwatch/files/patch-dwatch.c | 10 | ||||
-rw-r--r-- | sysutils/dwatch/pkg-descr | 4 | ||||
-rw-r--r-- | sysutils/dwatch/pkg-plist | 2 |
7 files changed, 64 insertions, 0 deletions
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 <zombie@i4free.co.nz> +# +# $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 <bsd.port.mk> 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 <sys/types.h> + #include <stdio.h> + #include <stdlib.h> + #include <string.h> 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 |