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 <root@gabby.gsicomp.on.ca>
This commit is contained in:
Will Andrews 2000-09-16 04:38:19 +00:00
parent 0c6af39fe3
commit 9f4ba66345
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=32672
8 changed files with 96 additions and 0 deletions

View file

@ -231,6 +231,7 @@
SUBDIR += slirp
SUBDIR += smbtcpdump
SUBDIR += sniffit
SUBDIR += sntop
SUBDIR += socks5
SUBDIR += sting
SUBDIR += suckblow

26
net/sntop/Makefile Normal file
View file

@ -0,0 +1,26 @@
# New ports collection makefile for: sntop
# Date created: 05 August 2000
# Whom: Matt Emmerton <matt@gsicomp.on.ca>
#
# $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 <bsd.port.mk>

1
net/sntop/distinfo Normal file
View file

@ -0,0 +1 @@
MD5 (sntop-1.2.0.tar.gz) = 4180ce406e9982c55c316700ee1277cb

48
net/sntop/files/patch-aa Normal file
View file

@ -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

1
net/sntop/pkg-comment Normal file
View file

@ -0,0 +1 @@
Monitor status of network nodes using fping

4
net/sntop/pkg-descr Normal file
View file

@ -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

13
net/sntop/pkg-message Normal file
View file

@ -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 <configfile>
command-line option.
********************************************************************

2
net/sntop/pkg-plist Normal file
View file

@ -0,0 +1,2 @@
bin/sntop
etc/sntoprc.sample