Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 1998 21:37:05 -0400 (EDT)
From:      Bill Fumerola <billf@jade.chc-chimes.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/7438: new port: net/ntop
Message-ID:  <199807300137.VAA14691@jade.chc-chimes.com>

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

>Number:         7438
>Category:       ports
>Synopsis:       new port: net/ntop
>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:   Wed Jul 29 18:40:00 PDT 1998
>Last-Modified:
>Originator:     Bill Fumerola
>Organization:
Computer Horizons Corp
>Release:        FreeBSD 2.2.7-STABLE i386
>Environment:

requires ncurses and pcap, should work cross platform.

>Description:

ntop is a kind of neat sniffer/statistical program that displays hosts in a "who's 
talking the most" style format. thank freshmeat for all these recent submissions of mine,
it's becoming easier and easier to take and revert all the little linux quirks. :>

>How-To-Repeat:

shar to follow

>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:
#
#	.
#	./Makefile
#	./files
#	./files/md5
#	./pkg
#	./pkg/COMMENT
#	./pkg/DESCR
#	./pkg/PLIST
#	./patches
#	./patches/patch-aa
#	./patches/patch-ab
#	./patches/patch-ac
#	./patches/patch-ad
#	./patches/patch-ae
#	./patches/patch-af
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# New ports collection makefile for:   ntop
X# Version required:    0.2.2
X# Date created:        29 July 1998
X# Whom:                Bill Fumerola <billf@chc-chimes.com>
X#
X# $Id: $
X#
X
XDISTNAME=	ntop-0.2.2.src
XPKGNAME=	ntop-0.2.2
XCATEGORIES=	net
XMASTER_SITES=	http://jake.unipi.it/~deri/ntop/
X
XMAINTAINER=	billf@chc-chimes.com
X
XWRKSRC=		${WRKDIR}/${PKGNAME}
XUSE_AUTOCONF=	yes
XALL_TARGET=
X
Xpost-install:
X
X	strip ${PREFIX}/sbin/ntop
X
X.include <bsd.port.mk>
END-of-./Makefile
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/md5
sed 's/^X//' >./files/md5 << 'END-of-./files/md5'
XMD5 (ntop-0.2.2.src.tar.gz) = 646b3e8beba5787bcbba204212a4fdaf
END-of-./files/md5
echo c - ./pkg
mkdir -p ./pkg > /dev/null 2>&1
echo x - ./pkg/COMMENT
sed 's/^X//' >./pkg/COMMENT << 'END-of-./pkg/COMMENT'
Xshows the network usage, with an interface similar to top(1)
END-of-./pkg/COMMENT
echo x - ./pkg/DESCR
sed 's/^X//' >./pkg/DESCR << 'END-of-./pkg/DESCR'
Xntop is a tool that shows the network usage, similar to what the popular top
XUnix command does. ntop is based on pcapture
X
Xhttp://jake.unipi.it/~deri/ntop/
X
XBill Fumerola <billf@chc-chimes.com>
END-of-./pkg/DESCR
echo x - ./pkg/PLIST
sed 's/^X//' >./pkg/PLIST << 'END-of-./pkg/PLIST'
Xsbin/ntop
END-of-./pkg/PLIST
echo c - ./patches
mkdir -p ./patches > /dev/null 2>&1
echo x - ./patches/patch-aa
sed 's/^X//' >./patches/patch-aa << 'END-of-./patches/patch-aa'
X--- pbuf.c.old	Wed Jul 29 20:50:28 1998
X+++ pbuf.c	Wed Jul 29 20:51:21 1998
X@@ -21,9 +21,8 @@
X 
X /* @(#) $Header: pbuf.c,v 1.3 97/06/15 13:21:27 leres Exp $ (LBL) */
X 
X-#define DEBUG  /* <--------- REMOVE */
X 
X-#include <curses.h>
X+#include <ncurses.h>
X #include <ctype.h>
X #include <sys/types.h>
X #include <unistd.h>
X@@ -39,7 +38,7 @@
X #include <net/if.h>
X 
X 
X-#include <arpa/inet.h>
X+/* #include <arpa/inet.h> */
X #include <netinet/in.h>
X #include <netinet/if_ether.h>
X #include <netinet/in_systm.h>
X@@ -55,7 +54,7 @@
X #include <string.h>
X 
X #include "interface.h"
X-#include "ethertype.h"
X+/* #include "ethertype.h" */
X #include "setsignal.h"
X #include <setjmp.h>
X 
END-of-./patches/patch-aa
echo x - ./patches/patch-ab
sed 's/^X//' >./patches/patch-ab << 'END-of-./patches/patch-ab'
X--- sn_curses.h.old	Wed Jul 29 20:52:44 1998
X+++ sn_curses.h	Wed Jul 29 20:52:55 1998
X@@ -1 +1 @@
X-#include "/usr/include/curses.h"
X+#include "/usr/include/ncurses.h"
END-of-./patches/patch-ab
echo x - ./patches/patch-ac
sed 's/^X//' >./patches/patch-ac << 'END-of-./patches/patch-ac'
X--- interface.h.old	Wed Jul 29 20:52:20 1998
X+++ interface.h	Wed Jul 29 20:52:35 1998
X@@ -1,6 +1,6 @@
X /* @(#) $Header: interface.h,v 1.3 96/07/15 17:36:07 leres Exp $ (LBL) */
X 
X-#include "gnuc.h"
X+/* #include "gnuc.h" */
X #ifdef HAVE_OS_PROTO_H
X #include "os-proto.h"
X #endif
END-of-./patches/patch-ac
echo x - ./patches/patch-ad
sed 's/^X//' >./patches/patch-ad << 'END-of-./patches/patch-ad'
X--- setsignal.c.old	Wed Jul 29 20:53:17 1998
X+++ setsignal.c	Wed Jul 29 20:53:37 1998
X@@ -34,7 +34,7 @@
X #include <string.h>
X #endif
X 
X-#include "gnuc.h"
X+/* #include "gnuc.h" */
X #ifdef HAVE_OS_PROTO_H
X #include "os-proto.h"
X #endif
END-of-./patches/patch-ad
echo x - ./patches/patch-ae
sed 's/^X//' >./patches/patch-ae << 'END-of-./patches/patch-ae'
X--- Makefile.in.old	Wed Jul 29 21:21:20 1998
X+++ Makefile.in	Wed Jul 29 21:22:01 1998
X@@ -38,7 +38,7 @@
X CC = @CC@
X PROG = ntop
X CCOPT = @V_CCOPT@
X-INCLS = -I. @V_INCLS@
X+INCLS = -I. @V_INCLS@ -I/usr/include
X DEFS = @DEFS@
X 
X # Standard CFLAGS
X@@ -48,7 +48,7 @@
X LDFLAGS = @LDFLAGS@
X 
X # Standard LIBS
X-LIBS = @LIBS@
X+LIBS = @LIBS@ -lncurses
X 
X INSTALL = @INSTALL@
X 
X@@ -90,7 +90,7 @@
X 	rm -f OS.NAME
X 
X install: force
X-	$(INSTALL) -m 6111 -o root -g root $(PROG) $(DESTDIR)$(BINDEST)/$(PROG)
X+	$(INSTALL) -m 6111 -o root -g wheel $(PROG) $(DESTDIR)$(BINDEST)/$(PROG)
X 	chmod gou+s $(DESTDIR)$(BINDEST)/$(PROG)
X 
X install-man: force
END-of-./patches/patch-ae
echo x - ./patches/patch-af
sed 's/^X//' >./patches/patch-af << 'END-of-./patches/patch-af'
X--- pcapture.c.old	Wed Jul 29 20:59:36 1998
X+++ pcapture.c	Wed Jul 29 21:00:19 1998
X@@ -188,11 +188,11 @@
X usage()
X {
X   extern char version[];
X-  extern char pcap_version[];
X+/*  extern char pcap_version[]; */
X 
X   (void)fprintf(stderr, "%s v.%s for %s ", program_name, 
X 		version, osName);
X-  (void)fprintf(stderr, "[libpcap version %s]\n", pcap_version);
X+/*  (void)fprintf(stderr, "[libpcap version %s]\n", pcap_version); */
X   (void)fprintf(stderr, "Written by %s\n", author);
X   (void)fprintf(stderr, "\nUsage: %s [-r (refresh time [default 3 secs]]\n\t"
X 		"    [-n (numeric IP addresses)]\n\t"
END-of-./patches/patch-af
exit

>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?199807300137.VAA14691>