aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorsergei <sergei@FreeBSD.org>2004-11-07 07:48:46 +0800
committersergei <sergei@FreeBSD.org>2004-11-07 07:48:46 +0800
commit18f996ff303a0f0d59b25f0ca2234c804309486a (patch)
treee65356d05b331b829ac41ff84183a22902b1abf2 /net-mgmt
parent85da03a162723bf1c470872741f5674abd80bee7 (diff)
downloadfreebsd-ports-gnome-18f996ff303a0f0d59b25f0ca2234c804309486a.tar.gz
freebsd-ports-gnome-18f996ff303a0f0d59b25f0ca2234c804309486a.tar.zst
freebsd-ports-gnome-18f996ff303a0f0d59b25f0ca2234c804309486a.zip
Add net-mgmt/nfdump:
NFDUMP tools support netflow v5 and v7 capturing and processing. nfcapd - netflow capture daemon. Reads the netflow data from the network and stores the data into files. nfdump - netflow dump. Reads the netflow data from the files stored by nfcapd. It's syntax is similar to tcpdump. If you like tcpdump you will like nfdump. nfprofile - netflow profiler. Reads the netflow data from the files stored by nfcapd. Filters the netflow data according to the specified filter sets ( profiles ) and stores the filtered data into files for later use. nfreplay - netflow replay Reads the netflow data from the files stored by nfcapd and sends it over the network to another host. WWW: http://nfdump.sourceforge.net PR: ports/72171 Submitted by: Janos Mohacsi <janos.mohacsi@niif.hu>
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/Makefile1
-rw-r--r--net-mgmt/nfdump-devel/Makefile30
-rw-r--r--net-mgmt/nfdump-devel/distinfo2
-rw-r--r--net-mgmt/nfdump-devel/files/patch-Makefile.in48
-rw-r--r--net-mgmt/nfdump-devel/pkg-descr22
-rw-r--r--net-mgmt/nfdump/Makefile30
-rw-r--r--net-mgmt/nfdump/distinfo2
-rw-r--r--net-mgmt/nfdump/files/patch-Makefile.in48
-rw-r--r--net-mgmt/nfdump/pkg-descr22
9 files changed, 205 insertions, 0 deletions
diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile
index 19bc4d866f4d..f8b1d4aa9fad 100644
--- a/net-mgmt/Makefile
+++ b/net-mgmt/Makefile
@@ -89,6 +89,7 @@
SUBDIR += netustad
SUBDIR += netwag
SUBDIR += netwox
+ SUBDIR += nfdump
SUBDIR += nitpicker
SUBDIR += nocol
SUBDIR += nrg
diff --git a/net-mgmt/nfdump-devel/Makefile b/net-mgmt/nfdump-devel/Makefile
new file mode 100644
index 000000000000..b019b0bab79b
--- /dev/null
+++ b/net-mgmt/nfdump-devel/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: nfdump
+# Date created: 2004-09-29
+# Whom: Janos.Mohacsi@bsd.hu
+#
+# $FreeBSD$
+#
+
+PORTNAME= nfdump
+PORTVERSION= 1.1
+CATEGORIES= net-mgmt
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= janos.mohacsi@bsd.hu
+COMMENT= Command-line tools to collect and process NetFlow data
+
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+
+PLIST_FILES= bin/nfcapd bin/nfdump bin/nfprofile bin/nfreplay bin/nfclean.pl
+MAN1= nfcapd.1 nfdump.1 nfprofile.1 nfreplay.1
+PORTDOCS= AUTHORS ChangeLog INSTALL README
+
+.if !defined(NOPORTDOCS)
+post-install:
+ @${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/net-mgmt/nfdump-devel/distinfo b/net-mgmt/nfdump-devel/distinfo
new file mode 100644
index 000000000000..4a33651e3523
--- /dev/null
+++ b/net-mgmt/nfdump-devel/distinfo
@@ -0,0 +1,2 @@
+MD5 (nfdump-1.1.tar.gz) = b9085f91d64985e856e43200d2869a87
+SIZE (nfdump-1.1.tar.gz) = 92044
diff --git a/net-mgmt/nfdump-devel/files/patch-Makefile.in b/net-mgmt/nfdump-devel/files/patch-Makefile.in
new file mode 100644
index 000000000000..99117d595dc2
--- /dev/null
+++ b/net-mgmt/nfdump-devel/files/patch-Makefile.in
@@ -0,0 +1,48 @@
+
+$FreeBSD$
+
+--- Makefile.in.orig Wed Sep 22 09:23:10 2004
++++ Makefile.in Wed Sep 29 16:31:23 2004
+@@ -47,7 +47,7 @@
+ LFLAGS = -i
+ LDFLAGS = @LIBS@
+ PREFIX = @prefix@
+-MANDIR = @mandir@
++MANDIR = @prefix@
+ FSRC = grammar.c scanner.c nftree.c netflow_v5.c netflow_v7.c nfstat.c util.c
+ FOBJ = $(FSRC:.c=.o)
+ ASRC = $(FSRC) nfdump.c nftree_check.c nfreplay.c
+@@ -82,20 +82,20 @@
+ $(CC) $(CFLAGS) $(INCS) -o $@ nfreplay.o $(FOBJ) $(LDFLAGS)
+
+ install: $(OBJECTS)
+- test -d $(PREFIX) || install -d -o root -g root -m 755 $(PREFIX)
+- test -d $(PREFIX)/bin || install -d -o root -g root -m 755 $(PREFIX)/bin
+- test -d $(MANDIR)/man || install -d -o root -g root -m 755 $(MANDIR)/man
+- test -d $(MANDIR)/man/man1 || install -d -o root -g root -m 755 $(MANDIR)/man/man1
+- $(INSTALL) -o root -g root -m 755 nfcapd $(PREFIX)/bin
+- $(INSTALL) -o root -g root -m 755 nfdump $(PREFIX)/bin
+- $(INSTALL) -o root -g root -m 755 nfprofile $(PREFIX)/bin
+- $(INSTALL) -o root -g root -m 755 nfreplay $(PREFIX)/bin
+- $(INSTALL) -o root -g root -m 755 nfclean.pl $(PREFIX)/bin
++ test -d $(PREFIX) || install -d -o root -g wheel -m 755 $(PREFIX)
++ test -d $(PREFIX)/bin || install -d -o root -g wheel -m 755 $(PREFIX)/bin
++ test -d $(MANDIR)/man || install -d -o root -g wheel -m 755 $(MANDIR)/man
++ test -d $(MANDIR)/man/man1 || install -d -o root -g wheel -m 755 $(MANDIR)/man/man1
++ $(INSTALL) -o root -g wheel -m 755 nfcapd $(PREFIX)/bin
++ $(INSTALL) -o root -g wheel -m 755 nfdump $(PREFIX)/bin
++ $(INSTALL) -o root -g wheel -m 755 nfprofile $(PREFIX)/bin
++ $(INSTALL) -o root -g wheel -m 755 nfreplay $(PREFIX)/bin
++ $(INSTALL) -o root -g wheel -m 755 nfclean.pl $(PREFIX)/bin
+
+- $(INSTALL) -o root -g root -m 644 nfcapd.1 $(MANDIR)/man/man1
+- $(INSTALL) -o root -g root -m 644 nfdump.1 $(MANDIR)/man/man1
+- $(INSTALL) -o root -g root -m 644 nfprofile.1 $(MANDIR)/man/man1
+- $(INSTALL) -o root -g root -m 644 nfreplay.1 $(MANDIR)/man/man1
++ $(INSTALL) -o root -g wheel -m 644 nfcapd.1 $(MANDIR)/man/man1
++ $(INSTALL) -o root -g wheel -m 644 nfdump.1 $(MANDIR)/man/man1
++ $(INSTALL) -o root -g wheel -m 644 nfprofile.1 $(MANDIR)/man/man1
++ $(INSTALL) -o root -g wheel -m 644 nfreplay.1 $(MANDIR)/man/man1
+
+ uninstall:
+ /bin/rm -f $(PREFIX)/bin/nfcapd
diff --git a/net-mgmt/nfdump-devel/pkg-descr b/net-mgmt/nfdump-devel/pkg-descr
new file mode 100644
index 000000000000..553f2ef06c74
--- /dev/null
+++ b/net-mgmt/nfdump-devel/pkg-descr
@@ -0,0 +1,22 @@
+NFDUMP tools support netflow v5 and v7 capturing and processing.
+
+nfcapd - netflow capture daemon.
+Reads the netflow data from the network and stores the data into files.
+
+nfdump - netflow dump.
+Reads the netflow data from the files stored by nfcapd. It's syntax is similar
+to tcpdump. If you like tcpdump you will like nfdump.
+
+nfprofile - netflow profiler.
+Reads the netflow data from the files stored by nfcapd. Filters the netflow
+data according to the specified filter sets ( profiles ) and stores the
+filtered data into files for later use.
+
+nfreplay - netflow replay
+Reads the netflow data from the files stored by nfcapd and sends it over
+the network to another host.
+
+
+WWW: http://nfdump.sourceforge.net
+
+Janos Mohacsi <janos.mohacsi@bsd.hu>
diff --git a/net-mgmt/nfdump/Makefile b/net-mgmt/nfdump/Makefile
new file mode 100644
index 000000000000..b019b0bab79b
--- /dev/null
+++ b/net-mgmt/nfdump/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: nfdump
+# Date created: 2004-09-29
+# Whom: Janos.Mohacsi@bsd.hu
+#
+# $FreeBSD$
+#
+
+PORTNAME= nfdump
+PORTVERSION= 1.1
+CATEGORIES= net-mgmt
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= janos.mohacsi@bsd.hu
+COMMENT= Command-line tools to collect and process NetFlow data
+
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+
+PLIST_FILES= bin/nfcapd bin/nfdump bin/nfprofile bin/nfreplay bin/nfclean.pl
+MAN1= nfcapd.1 nfdump.1 nfprofile.1 nfreplay.1
+PORTDOCS= AUTHORS ChangeLog INSTALL README
+
+.if !defined(NOPORTDOCS)
+post-install:
+ @${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/net-mgmt/nfdump/distinfo b/net-mgmt/nfdump/distinfo
new file mode 100644
index 000000000000..4a33651e3523
--- /dev/null
+++ b/net-mgmt/nfdump/distinfo
@@ -0,0 +1,2 @@
+MD5 (nfdump-1.1.tar.gz) = b9085f91d64985e856e43200d2869a87
+SIZE (nfdump-1.1.tar.gz) = 92044
diff --git a/net-mgmt/nfdump/files/patch-Makefile.in b/net-mgmt/nfdump/files/patch-Makefile.in
new file mode 100644
index 000000000000..99117d595dc2
--- /dev/null
+++ b/net-mgmt/nfdump/files/patch-Makefile.in
@@ -0,0 +1,48 @@
+
+$FreeBSD$
+
+--- Makefile.in.orig Wed Sep 22 09:23:10 2004
++++ Makefile.in Wed Sep 29 16:31:23 2004
+@@ -47,7 +47,7 @@
+ LFLAGS = -i
+ LDFLAGS = @LIBS@
+ PREFIX = @prefix@
+-MANDIR = @mandir@
++MANDIR = @prefix@
+ FSRC = grammar.c scanner.c nftree.c netflow_v5.c netflow_v7.c nfstat.c util.c
+ FOBJ = $(FSRC:.c=.o)
+ ASRC = $(FSRC) nfdump.c nftree_check.c nfreplay.c
+@@ -82,20 +82,20 @@
+ $(CC) $(CFLAGS) $(INCS) -o $@ nfreplay.o $(FOBJ) $(LDFLAGS)
+
+ install: $(OBJECTS)
+- test -d $(PREFIX) || install -d -o root -g root -m 755 $(PREFIX)
+- test -d $(PREFIX)/bin || install -d -o root -g root -m 755 $(PREFIX)/bin
+- test -d $(MANDIR)/man || install -d -o root -g root -m 755 $(MANDIR)/man
+- test -d $(MANDIR)/man/man1 || install -d -o root -g root -m 755 $(MANDIR)/man/man1
+- $(INSTALL) -o root -g root -m 755 nfcapd $(PREFIX)/bin
+- $(INSTALL) -o root -g root -m 755 nfdump $(PREFIX)/bin
+- $(INSTALL) -o root -g root -m 755 nfprofile $(PREFIX)/bin
+- $(INSTALL) -o root -g root -m 755 nfreplay $(PREFIX)/bin
+- $(INSTALL) -o root -g root -m 755 nfclean.pl $(PREFIX)/bin
++ test -d $(PREFIX) || install -d -o root -g wheel -m 755 $(PREFIX)
++ test -d $(PREFIX)/bin || install -d -o root -g wheel -m 755 $(PREFIX)/bin
++ test -d $(MANDIR)/man || install -d -o root -g wheel -m 755 $(MANDIR)/man
++ test -d $(MANDIR)/man/man1 || install -d -o root -g wheel -m 755 $(MANDIR)/man/man1
++ $(INSTALL) -o root -g wheel -m 755 nfcapd $(PREFIX)/bin
++ $(INSTALL) -o root -g wheel -m 755 nfdump $(PREFIX)/bin
++ $(INSTALL) -o root -g wheel -m 755 nfprofile $(PREFIX)/bin
++ $(INSTALL) -o root -g wheel -m 755 nfreplay $(PREFIX)/bin
++ $(INSTALL) -o root -g wheel -m 755 nfclean.pl $(PREFIX)/bin
+
+- $(INSTALL) -o root -g root -m 644 nfcapd.1 $(MANDIR)/man/man1
+- $(INSTALL) -o root -g root -m 644 nfdump.1 $(MANDIR)/man/man1
+- $(INSTALL) -o root -g root -m 644 nfprofile.1 $(MANDIR)/man/man1
+- $(INSTALL) -o root -g root -m 644 nfreplay.1 $(MANDIR)/man/man1
++ $(INSTALL) -o root -g wheel -m 644 nfcapd.1 $(MANDIR)/man/man1
++ $(INSTALL) -o root -g wheel -m 644 nfdump.1 $(MANDIR)/man/man1
++ $(INSTALL) -o root -g wheel -m 644 nfprofile.1 $(MANDIR)/man/man1
++ $(INSTALL) -o root -g wheel -m 644 nfreplay.1 $(MANDIR)/man/man1
+
+ uninstall:
+ /bin/rm -f $(PREFIX)/bin/nfcapd
diff --git a/net-mgmt/nfdump/pkg-descr b/net-mgmt/nfdump/pkg-descr
new file mode 100644
index 000000000000..553f2ef06c74
--- /dev/null
+++ b/net-mgmt/nfdump/pkg-descr
@@ -0,0 +1,22 @@
+NFDUMP tools support netflow v5 and v7 capturing and processing.
+
+nfcapd - netflow capture daemon.
+Reads the netflow data from the network and stores the data into files.
+
+nfdump - netflow dump.
+Reads the netflow data from the files stored by nfcapd. It's syntax is similar
+to tcpdump. If you like tcpdump you will like nfdump.
+
+nfprofile - netflow profiler.
+Reads the netflow data from the files stored by nfcapd. Filters the netflow
+data according to the specified filter sets ( profiles ) and stores the
+filtered data into files for later use.
+
+nfreplay - netflow replay
+Reads the netflow data from the files stored by nfcapd and sends it over
+the network to another host.
+
+
+WWW: http://nfdump.sourceforge.net
+
+Janos Mohacsi <janos.mohacsi@bsd.hu>