# 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: # # nfdump # nfdump/pkg-plist # nfdump/pkg-descr # nfdump/distinfo # nfdump/Makefile # nfdump/files # nfdump/files/patch-Makefile.in # echo c - nfdump mkdir -p nfdump > /dev/null 2>&1 echo x - nfdump/pkg-plist sed 's/^X//' >nfdump/pkg-plist << 'END-of-nfdump/pkg-plist' Xbin/nfcapd Xbin/nfdump Xbin/nfprofile Xbin/nfreplay Xbin/nfclean.pl X%%PORTDOCS%%%%DOCSDIR%%/AUTHORS X%%PORTDOCS%%%%DOCSDIR%%/ChangeLog X%%PORTDOCS%%%%DOCSDIR%%/INSTALL X%%PORTDOCS%%%%DOCSDIR%%/README X%%PORTDOCS%%@dirrm %%DOCSDIR%% END-of-nfdump/pkg-plist echo x - nfdump/pkg-descr sed 's/^X//' >nfdump/pkg-descr << 'END-of-nfdump/pkg-descr' XNFDUMP tools support netflow v5 and v7 capturing and processing. X Xnfcapd - netflow capture daemon. XReads the netflow data from the network and stores the data into files. X Xnfdump - netflow dump. XReads the netflow data from the files stored by nfcapd. It's syntax is similar Xto tcpdump. If you like tcpdump you will like nfdump. X Xnfprofile - netflow profiler. XReads the netflow data from the files stored by nfcapd. Filters the netflow Xdata according to the specified filter sets ( profiles ) and stores the Xfiltered data into files for later use. X Xnfreplay - netflow replay XReads the netflow data from the files stored by nfcapd and sends it over Xthe network to another host. X X XWWW: http://nfdump.sourceforge.net X XJanos Mohacsi END-of-nfdump/pkg-descr echo x - nfdump/distinfo sed 's/^X//' >nfdump/distinfo << 'END-of-nfdump/distinfo' XMD5 (nfdump-1.1.tar.gz) = b9085f91d64985e856e43200d2869a87 XSIZE (nfdump-1.1.tar.gz) = 92044 END-of-nfdump/distinfo echo x - nfdump/Makefile sed 's/^X//' >nfdump/Makefile << 'END-of-nfdump/Makefile' X# New ports collection makefile for: nfdump X# Date created: 29.09.2004 X# Whom: Janos.Mohacsi@bsd.hu X# X# $FreeBSD$ X# X XPORTNAME= nfdump XPORTVERSION= 1.1 XCATEGORIES= net-mgmt XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR= ${PORTNAME} X XMAINTAINER= janos.mohacsi@bsd.hu XCOMMENT= Tools to collect and process netflow data on the command line X XGNU_CONFIGURE= yes XMAN1= nfcapd.1 nfdump.1 nfprofile.1 nfreplay.1 X XDOC_FILES= AUTHORS ChangeLog INSTALL README X Xpost-install: X.ifndef(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X.for file in ${DOC_FILES} X @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} X.endfor X.endif X X.include END-of-nfdump/Makefile echo c - nfdump/files mkdir -p nfdump/files > /dev/null 2>&1 echo x - nfdump/files/patch-Makefile.in sed 's/^X//' >nfdump/files/patch-Makefile.in << 'END-of-nfdump/files/patch-Makefile.in' X X$FreeBSD$ X X--- Makefile.in.orig Wed Sep 22 09:23:10 2004 X+++ Makefile.in Wed Sep 29 16:31:23 2004 X@@ -47,7 +47,7 @@ X LFLAGS = -i X LDFLAGS = @LIBS@ X PREFIX = @prefix@ X-MANDIR = @mandir@ X+MANDIR = @prefix@ X FSRC = grammar.c scanner.c nftree.c netflow_v5.c netflow_v7.c nfstat.c util.c X FOBJ = $(FSRC:.c=.o) X ASRC = $(FSRC) nfdump.c nftree_check.c nfreplay.c X@@ -82,20 +82,20 @@ X $(CC) $(CFLAGS) $(INCS) -o $@ nfreplay.o $(FOBJ) $(LDFLAGS) X X install: $(OBJECTS) X- test -d $(PREFIX) || install -d -o root -g root -m 755 $(PREFIX) X- test -d $(PREFIX)/bin || install -d -o root -g root -m 755 $(PREFIX)/bin X- test -d $(MANDIR)/man || install -d -o root -g root -m 755 $(MANDIR)/man X- test -d $(MANDIR)/man/man1 || install -d -o root -g root -m 755 $(MANDIR)/man/man1 X- $(INSTALL) -o root -g root -m 755 nfcapd $(PREFIX)/bin X- $(INSTALL) -o root -g root -m 755 nfdump $(PREFIX)/bin X- $(INSTALL) -o root -g root -m 755 nfprofile $(PREFIX)/bin X- $(INSTALL) -o root -g root -m 755 nfreplay $(PREFIX)/bin X- $(INSTALL) -o root -g root -m 755 nfclean.pl $(PREFIX)/bin X+ test -d $(PREFIX) || install -d -o root -g wheel -m 755 $(PREFIX) X+ test -d $(PREFIX)/bin || install -d -o root -g wheel -m 755 $(PREFIX)/bin X+ test -d $(MANDIR)/man || install -d -o root -g wheel -m 755 $(MANDIR)/man X+ test -d $(MANDIR)/man/man1 || install -d -o root -g wheel -m 755 $(MANDIR)/man/man1 X+ $(INSTALL) -o root -g wheel -m 755 nfcapd $(PREFIX)/bin X+ $(INSTALL) -o root -g wheel -m 755 nfdump $(PREFIX)/bin X+ $(INSTALL) -o root -g wheel -m 755 nfprofile $(PREFIX)/bin X+ $(INSTALL) -o root -g wheel -m 755 nfreplay $(PREFIX)/bin X+ $(INSTALL) -o root -g wheel -m 755 nfclean.pl $(PREFIX)/bin X X- $(INSTALL) -o root -g root -m 644 nfcapd.1 $(MANDIR)/man/man1 X- $(INSTALL) -o root -g root -m 644 nfdump.1 $(MANDIR)/man/man1 X- $(INSTALL) -o root -g root -m 644 nfprofile.1 $(MANDIR)/man/man1 X- $(INSTALL) -o root -g root -m 644 nfreplay.1 $(MANDIR)/man/man1 X+ $(INSTALL) -o root -g wheel -m 644 nfcapd.1 $(MANDIR)/man/man1 X+ $(INSTALL) -o root -g wheel -m 644 nfdump.1 $(MANDIR)/man/man1 X+ $(INSTALL) -o root -g wheel -m 644 nfprofile.1 $(MANDIR)/man/man1 X+ $(INSTALL) -o root -g wheel -m 644 nfreplay.1 $(MANDIR)/man/man1 X X uninstall: X /bin/rm -f $(PREFIX)/bin/nfcapd END-of-nfdump/files/patch-Makefile.in exit