summaryrefslogtreecommitdiff
path: root/net-mgmt/nfdump
diff options
context:
space:
mode:
authorSergei Kolobov <sergei@FreeBSD.org>2004-11-06 23:48:46 +0000
committerSergei Kolobov <sergei@FreeBSD.org>2004-11-06 23:48:46 +0000
commit84453d1c9357f97df3295a559fb85671406c4b54 (patch)
tree37b55956e2ae26049484120812eea384e5f0a2a2 /net-mgmt/nfdump
parentAdd gdvrecv, a set of tools for FreeBSD to receives audio and video data from a (diff)
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>
Notes
Notes: svn path=/head/; revision=121015
Diffstat (limited to 'net-mgmt/nfdump')
-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
4 files changed, 102 insertions, 0 deletions
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>