summaryrefslogtreecommitdiff
path: root/net/ntop
diff options
context:
space:
mode:
authorkim <kim@pkgsrc.org>1998-08-07 22:42:29 +0000
committerkim <kim@pkgsrc.org>1998-08-07 22:42:29 +0000
commit7088e7751a394deaf6d12bf938fd1f28cc92f691 (patch)
tree6b034e9c8d538ebd5f9b527b15f64e2bb7d4d955 /net/ntop
parent958bc89399b9eeaf97ad01664663d2a53f3f841e (diff)
downloadpkgsrc-7088e7751a394deaf6d12bf938fd1f28cc92f691.tar.gz
Adding ntop, "network top", v0.4
Diffstat (limited to 'net/ntop')
-rw-r--r--net/ntop/Makefile24
-rw-r--r--net/ntop/files/md53
-rw-r--r--net/ntop/patches/patch-aa28
-rw-r--r--net/ntop/patches/patch-ab27
-rw-r--r--net/ntop/patches/patch-ac12
-rw-r--r--net/ntop/patches/patch-ad49
-rw-r--r--net/ntop/patches/patch-ae12
-rw-r--r--net/ntop/pkg/COMMENT1
-rw-r--r--net/ntop/pkg/DESCR10
-rw-r--r--net/ntop/pkg/PLIST3
10 files changed, 169 insertions, 0 deletions
diff --git a/net/ntop/Makefile b/net/ntop/Makefile
new file mode 100644
index 00000000000..ca42fb7f6b8
--- /dev/null
+++ b/net/ntop/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 1998/08/07 22:42:29 kim Exp $
+
+DISTNAME= ntop-0.4-src
+PKGNAME= ntop-0.4
+WRKSRC= ${WRKDIR}/${PKGNAME}
+CATEGORIES= net
+MASTER_SITES= http://jake.unipi.it/~deri/ntop/
+
+MAINTAINER= kim@tac.nyc.ny.us
+
+DEPENDS+= autoconf-2.12:../../devel/autoconf
+DEPENDS+= ncurses-1.9.9g:../../devel/ncurses
+
+HAS_CONFIGURE= yes
+GNU_CONFIGURE= yes
+
+CONFIGURE_ENV+= CPPFLAGS=-I${PREFIX}/include
+CONFIGURE_ENV+= CFLAGS=-I${PREFIX}/include
+CONFIGURE_ENV+= LDFLAGS=-L${PREFIX}/lib
+
+pre-configure:
+ (cd ${WRKSRC}; autoconf)
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/ntop/files/md5 b/net/ntop/files/md5
new file mode 100644
index 00000000000..8757b88fd28
--- /dev/null
+++ b/net/ntop/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1 1998/08/07 22:42:29 kim Exp $
+
+MD5 (ntop-0.4-src.tar.gz) = 6867ac4fd7390de478ce0c401c11e23e
diff --git a/net/ntop/patches/patch-aa b/net/ntop/patches/patch-aa
new file mode 100644
index 00000000000..47d35ad0d59
--- /dev/null
+++ b/net/ntop/patches/patch-aa
@@ -0,0 +1,28 @@
+$NetBSD: patch-aa,v 1.1 1998/08/07 22:42:29 kim Exp $
+
+--- Makefile.in.orig Mon Aug 3 06:43:38 1998
++++ Makefile.in Fri Aug 7 18:22:37 1998
+@@ -76,6 +76,8 @@
+
+ CLEANFILES = $(PROG) $(OBJ) $(GENSRC)
+
++all: $(PROG)
++
+ $(PROG): $(OBJ) @V_PCAPDEP@
+ @rm -f $@
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
+@@ -90,12 +92,8 @@
+ rm -f OS.NAME
+
+ install: force
+- $(INSTALL) -m 6111 -o root -g sys $(PROG) $(DESTDIR)$(BINDEST)/$(PROG)
+- chmod gou+s $(DESTDIR)$(BINDEST)/$(PROG)
+-
+-install-man: force
+- $(INSTALL) -m 444 -o bin -g bin $(PROG).8 \
+- $(DESTDIR)$(MANDEST)/man8/$(PROG).8
++ $(INSTALL) -m 6550 $(PROG) $(DESTDIR)$(BINDEST)/$(PROG)
++ $(INSTALL) -m 444 $(PROG).8 $(DESTDIR)$(MANDEST)/man8/$(PROG).8
+
+ lint: $(GENSRC) force
+ lint -hbxn $(SRC) | \
diff --git a/net/ntop/patches/patch-ab b/net/ntop/patches/patch-ab
new file mode 100644
index 00000000000..f1e9c68e7af
--- /dev/null
+++ b/net/ntop/patches/patch-ab
@@ -0,0 +1,27 @@
+$NetBSD: patch-ab,v 1.1 1998/08/07 22:42:29 kim Exp $
+
+--- ntop.h.orig Fri Jul 31 12:31:45 1998
++++ ntop.h Fri Aug 7 18:07:14 1998
+@@ -16,7 +16,13 @@
+ #endif
+
+ #include <errno.h>
+-#include "sn_curses.h"
++#ifdef HAVE_NCURSES_H
++#include <ncurses.h>
++#else
++#ifdef HAVE_CURSES_H
++#invlude <curses.h>
++#endif
++#endif
+ #include <ctype.h>
+ #include <sys/types.h>
+ #include <unistd.h>
+@@ -38,7 +44,6 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+-#include <ethertype.h>
+ #include <setjmp.h>
+ #include <pcap.h>
+
diff --git a/net/ntop/patches/patch-ac b/net/ntop/patches/patch-ac
new file mode 100644
index 00000000000..ce5f0eb5add
--- /dev/null
+++ b/net/ntop/patches/patch-ac
@@ -0,0 +1,12 @@
+$NetBSD: patch-ac,v 1.1 1998/08/07 22:42:30 kim Exp $
+
+--- interface.h.ORIG Fri Jul 31 05:22:13 1998
++++ interface.h Fri Aug 7 16:52:22 1998
+@@ -26,7 +26,6 @@
+ */
+
+
+-#include <gnuc.h>
+ #ifdef HAVE_OS_PROTO_H
+ #include "os-proto.h"
+ #endif
diff --git a/net/ntop/patches/patch-ad b/net/ntop/patches/patch-ad
new file mode 100644
index 00000000000..ba7ed13ebc2
--- /dev/null
+++ b/net/ntop/patches/patch-ad
@@ -0,0 +1,49 @@
+$NetBSD: patch-ad,v 1.1 1998/08/07 22:42:30 kim Exp $
+
+--- configure.in.orig Thu Jul 30 06:09:44 1998
++++ configure.in Fri Aug 7 18:16:15 1998
+@@ -18,7 +18,7 @@
+
+ AC_LBL_C_INIT(V_CCOPT, V_INCLS)
+
+-AC_CHECK_HEADERS(fcntl.h malloc.h memory.h)
++AC_CHECK_HEADERS(fcntl.h malloc.h memory.h ncurses.h curses.h)
+ AC_HEADER_TIME
+
+ AC_REPLACE_FUNCS(vfprintf)
+@@ -27,6 +27,8 @@
+
+ AC_LBL_LIBPCAP(V_PCAPDEP, V_INCLS)
+
++AC_CHECK_LIB(ncurses, main)
++
+ V_GROUP=0
+ case "$target_os" in
+
+@@ -47,19 +49,19 @@
+ ;;
+ esac
+
+-if test -f /dev/bpf0 ; then
+- V_GROUP=bpf
+-fi
++#if test -f /dev/bpf0 ; then
++# V_GROUP=bpf
++#fi
+
+ AC_LBL_CHECK_TYPE(int32_t, int)
+ AC_LBL_CHECK_TYPE(u_int32_t, u_int)
+
+ AC_LBL_DEVEL(V_CCOPT)
+
+-if test -r lbl/gnuc.h ; then
+- rm -f gnuc.h
+- ln -s lbl/gnuc.h gnuc.h
+-fi
++#if test -r lbl/gnuc.h ; then
++# rm -f gnuc.h
++# ln -s lbl/gnuc.h gnuc.h
++#fi
+
+ AC_SUBST(V_CCOPT)
+ AC_SUBST(V_GROUP)
diff --git a/net/ntop/patches/patch-ae b/net/ntop/patches/patch-ae
new file mode 100644
index 00000000000..88db24e8fe2
--- /dev/null
+++ b/net/ntop/patches/patch-ae
@@ -0,0 +1,12 @@
+$NetBSD: patch-ae,v 1.1 1998/08/07 22:42:30 kim Exp $
+
+--- setsignal.c.orig Fri Jul 31 05:21:22 1998
++++ setsignal.c Fri Aug 7 18:12:53 1998
+@@ -40,7 +40,6 @@
+ #include <string.h>
+ #endif
+
+-#include <gnuc.h>
+ #ifdef HAVE_OS_PROTO_H
+ #include "os-proto.h"
+ #endif
diff --git a/net/ntop/pkg/COMMENT b/net/ntop/pkg/COMMENT
new file mode 100644
index 00000000000..c595d6d230d
--- /dev/null
+++ b/net/ntop/pkg/COMMENT
@@ -0,0 +1 @@
+shows network usage (similar to "top" for processes)
diff --git a/net/ntop/pkg/DESCR b/net/ntop/pkg/DESCR
new file mode 100644
index 00000000000..132e6879d66
--- /dev/null
+++ b/net/ntop/pkg/DESCR
@@ -0,0 +1,10 @@
+ntop is a tool that shows the network usage, similar to what the
+popular top Unix command does. ntop has been written in a portable
+way in order to virtually run on every Unix platform.
+
+ntop can be used in both interactive or web mode. In the first case,
+ntop displays the network status on the user's terminmal whereas in
+web mode a web browser (e.g. netscape) can attach to ntop (that acts
+as a web server) and get a dump of thge network status. In the latter
+case, ntop can be seen as a simple RMON-like agent with an embedded
+web interface.
diff --git a/net/ntop/pkg/PLIST b/net/ntop/pkg/PLIST
new file mode 100644
index 00000000000..63117cfbeb1
--- /dev/null
+++ b/net/ntop/pkg/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 1998/08/07 22:42:30 kim Exp $
+sbin/ntop
+man/man8/ntop.8