From 9f4ba66345df66f1dd596e7345932f5c0370bef8 Mon Sep 17 00:00:00 2001 From: Will Andrews Date: Sat, 16 Sep 2000 04:38:19 +0000 Subject: [PATCH] Add a sntop 1.2.0, curses-based utility that uses [f,]ping to determine connectivity of remote network hosts on a regular interval. PR: 20584 Submitted by: Matthew Emmerton --- net/Makefile | 1 + net/sntop/Makefile | 26 ++++++++++++++++++++++ net/sntop/distinfo | 1 + net/sntop/files/patch-aa | 48 ++++++++++++++++++++++++++++++++++++++++ net/sntop/pkg-comment | 1 + net/sntop/pkg-descr | 4 ++++ net/sntop/pkg-message | 13 +++++++++++ net/sntop/pkg-plist | 2 ++ 8 files changed, 96 insertions(+) create mode 100644 net/sntop/Makefile create mode 100644 net/sntop/distinfo create mode 100644 net/sntop/files/patch-aa create mode 100644 net/sntop/pkg-comment create mode 100644 net/sntop/pkg-descr create mode 100644 net/sntop/pkg-message create mode 100644 net/sntop/pkg-plist diff --git a/net/Makefile b/net/Makefile index a38acec18e8b..e0877702f459 100644 --- a/net/Makefile +++ b/net/Makefile @@ -231,6 +231,7 @@ SUBDIR += slirp SUBDIR += smbtcpdump SUBDIR += sniffit + SUBDIR += sntop SUBDIR += socks5 SUBDIR += sting SUBDIR += suckblow diff --git a/net/sntop/Makefile b/net/sntop/Makefile new file mode 100644 index 000000000000..1fe387b84305 --- /dev/null +++ b/net/sntop/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: sntop +# Date created: 05 August 2000 +# Whom: Matt Emmerton +# +# $FreeBSD$ +# + +PORTNAME= sntop +PORTVERSION= 1.2.0 +CATEGORIES= net +MASTER_SITES= ftp://sntop.sourceforge.net/pub/sntop/ + +MAINTAINER= matt@gsicomp.on.ca + +RUN_DEPENDS= fping:${PORTSDIR}/net/fping + +GNU_CONFIGURE= yes + +MAN1= sntop.1 +MANCOMPRESSED= yes + +post-install: + @strip ${PREFIX}/bin/sntop + @cat ${PKGDIR}/MESSAGE + +.include diff --git a/net/sntop/distinfo b/net/sntop/distinfo new file mode 100644 index 000000000000..56d224dde95c --- /dev/null +++ b/net/sntop/distinfo @@ -0,0 +1 @@ +MD5 (sntop-1.2.0.tar.gz) = 4180ce406e9982c55c316700ee1277cb diff --git a/net/sntop/files/patch-aa b/net/sntop/files/patch-aa new file mode 100644 index 000000000000..39204dbe14b5 --- /dev/null +++ b/net/sntop/files/patch-aa @@ -0,0 +1,48 @@ +*** Makefile.in.orig Sat Aug 5 22:01:28 2000 +--- Makefile.in Sat Aug 5 22:03:43 2000 +*************** +*** 31,37 **** + CFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer @DEFS@ + INCLUDE = . + INSTDIR = @bindir@ +! ETCDIR = /etc + LIBS = @LIBS@ + OBJS = @LIBOBJS@ + DOWENEEDGETOPT = @LIBOBJS@ +--- 31,37 ---- + CFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer @DEFS@ + INCLUDE = . + INSTDIR = @bindir@ +! ETCDIR = @sysconfdir@ + LIBS = @LIBS@ + OBJS = @LIBOBJS@ + DOWENEEDGETOPT = @LIBOBJS@ +*************** +*** 64,77 **** + fi + @if [ -d $(ETCDIR) ]; \ + then \ +! if [ ! -f $(ETCDIR)/sntoprc ]; \ + then \ +! cp sntoprc.EXAMPLE $(ETCDIR)/sntoprc; \ +! chmod 644 $(ETCDIR)/sntoprc; \ +! echo "sntop: Config installed in $(ETCDIR)"; \ +! else \ +! echo "sntop: conf file exists at $(ETCDIR)/sntoprc, we wont overwrite it"; \ +! fi \ + else \ + echo "sntop: $(ETCDIR) does not exist"; false; \ + fi +--- 64,75 ---- + fi + @if [ -d $(ETCDIR) ]; \ + then \ +! if [ ! -f $(ETCDIR)/sntoprc.sample ]; \ + then \ +! cp sntoprc.EXAMPLE $(ETCDIR)/sntoprc.sample; \ +! chmod 644 $(ETCDIR)/sntoprc.sample; \ +! fi; \ ++ echo "sntop: Sample config exists at $(ETCDIR)/sntoprc.sample"; \ + else \ + echo "sntop: $(ETCDIR) does not exist"; false; \ + fi diff --git a/net/sntop/pkg-comment b/net/sntop/pkg-comment new file mode 100644 index 000000000000..1772807369d2 --- /dev/null +++ b/net/sntop/pkg-comment @@ -0,0 +1 @@ +Monitor status of network nodes using fping diff --git a/net/sntop/pkg-descr b/net/sntop/pkg-descr new file mode 100644 index 000000000000..6e04992706b6 --- /dev/null +++ b/net/sntop/pkg-descr @@ -0,0 +1,4 @@ +This is a port of sntop, a curses-based utility that uses fping (ping can be +used as well) to determine connectivity of remote network hosts on a regular interval. Features include HTML generation and a secure terminal. + +WWW: http://sntop.sourceforge.com diff --git a/net/sntop/pkg-message b/net/sntop/pkg-message new file mode 100644 index 000000000000..ebef148000bc --- /dev/null +++ b/net/sntop/pkg-message @@ -0,0 +1,13 @@ + +******************************************************************** +A sample configuration file (sntoprc.sample) has been placed in +$(PREFIX)/etc. + +You must edit this file and do one of the following: + for a per-user config: move to ~/.sntoprc + for a system-wide config: move to /etc/sntoprc + for any other directory: run sntop with the -f + command-line option. + +******************************************************************** + diff --git a/net/sntop/pkg-plist b/net/sntop/pkg-plist new file mode 100644 index 000000000000..4702c4e53d24 --- /dev/null +++ b/net/sntop/pkg-plist @@ -0,0 +1,2 @@ +bin/sntop +etc/sntoprc.sample