diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2007-06-10 11:40:05 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2007-06-10 11:40:05 +0000 |
commit | 85b1b315c3324dc2801f5011b45afc8aaa639a5e (patch) | |
tree | 4a0f466b00f140f3131251c9a3b0b021a4cb668f /net-mgmt/nfdump-devel | |
parent | ba2750c21e4244bd1db04243a74cd9ff0dd8df93 (diff) | |
download | ports-85b1b315c3324dc2801f5011b45afc8aaa639a5e.tar.gz ports-85b1b315c3324dc2801f5011b45afc8aaa639a5e.zip |
Notes
Diffstat (limited to 'net-mgmt/nfdump-devel')
-rw-r--r-- | net-mgmt/nfdump-devel/Makefile | 61 | ||||
-rw-r--r-- | net-mgmt/nfdump-devel/distinfo | 3 | ||||
-rw-r--r-- | net-mgmt/nfdump-devel/files/patch-Makefile.in | 16 | ||||
-rw-r--r-- | net-mgmt/nfdump-devel/files/patch-configure | 23 | ||||
-rw-r--r-- | net-mgmt/nfdump-devel/files/patch-ft2nfdump.c | 14 | ||||
-rw-r--r-- | net-mgmt/nfdump-devel/pkg-descr | 21 |
6 files changed, 138 insertions, 0 deletions
diff --git a/net-mgmt/nfdump-devel/Makefile b/net-mgmt/nfdump-devel/Makefile new file mode 100644 index 000000000000..23733cff5d44 --- /dev/null +++ b/net-mgmt/nfdump-devel/Makefile @@ -0,0 +1,61 @@ +# New ports collection makefile for: nfdump-devel +# Date created: 2007-05-20 +# Whom: Janos.Mohacsi@bsd.hu +# +# $FreeBSD$ +# + +PORTNAME= nfdump-devel +PORTVERSION= 20070312 +CATEGORIES= net-mgmt +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= nfdump +DISTNAME= nfdump-snapshot-${PORTVERSION} + +MAINTAINER= janos.mohacsi@bsd.hu +COMMENT= Development version of tools to collect and process NetFlow data + +BUILD_DEPENDS= rrdtool:${PORTSDIR}/net/rrdtool +RUN_DEPENDS= ${BUILD_DEPENDS} + +GNU_CONFIGURE= yes +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} --enable-nfprofile --with-rrdpath=${LOCALBASE} + +#flow-tools support +OPTIONS= FT2NFDUMP "With Flow-tools to nfdump converter" off \ + SFLOW "Build sflow collector daemon also" off + +.include <bsd.port.pre.mk> + +#for compatibility +# +.ifndef(WITHOUT_NFDUMP14_SUPPORT) +CONFIGURE_ARGS= --enable-compat14 +.endif + +PLIST_FILES= bin/nfcapd bin/nfdump bin/nfreplay bin/nfexpire bin/nfprofile +MAN1= nfcapd.1 nfdump.1 nfexpire.1 nfprofile.1 nfreplay.1 +PORTDOCS= AUTHORS ChangeLog INSTALL README + +#flow-tools support +.if defined(WITH_FT2NFDUMP) +BUILD_DEPENDS+= flow-cat:${PORTSDIR}/net-mgmt/flow-tools +CONFIGURE_ARGS+= --enable-ftconv --with-ftpath=${LOCALBASE} +PLIST_FILES+= bin/ft2nfdump +MAN1+= ft2nfdump.1 +.endif + +#sflow capture support +.if defined(WITH_SFLOW) +CONFIGURE_ARGS+= --enable-sflow +PLIST_FILES+= bin/sfcapd +MAN1+= sfcapd.1 +.endif + +.if !defined(NOPORTDOCS) +post-install: + ${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} +.endif + +.include <bsd.port.post.mk> diff --git a/net-mgmt/nfdump-devel/distinfo b/net-mgmt/nfdump-devel/distinfo new file mode 100644 index 000000000000..8347905a0999 --- /dev/null +++ b/net-mgmt/nfdump-devel/distinfo @@ -0,0 +1,3 @@ +MD5 (nfdump-snapshot-20070312.tar.gz) = 4f8b1f3a88d6dd93042829f07f6bb0f3 +SHA256 (nfdump-snapshot-20070312.tar.gz) = c3815ba3a98a80150586fd5b7eaf9a2bd5d78164e15a7de5a63c4bcc70aeb149 +SIZE (nfdump-snapshot-20070312.tar.gz) = 280144 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..29a56d6b2279 --- /dev/null +++ b/net-mgmt/nfdump-devel/files/patch-Makefile.in @@ -0,0 +1,16 @@ + +$FreeBSD$ + +--- Makefile.in.orig ++++ Makefile.in +@@ -108,8 +108,8 @@ + test -d $(MANDIR)/man1 || install -d -o root -g bin -m 755 $(MANDIR)/man1 + for file in $(OBJECTS); do \ + if [ -f $$file.1 ]; then \ +- $(INSTALL) -o root -g bin -m 755 $$file $(PREFIX)/bin ; \ +- $(INSTALL) -o root -g bin -m 644 $$file.1 $(MANDIR)/man1 ; \ ++ $(BSD_INSTALL_PROGRAM) $$file $(PREFIX)/bin ; \ ++ $(BSD_INSTALL_MAN) $$file.1 $(MANDIR)/man1 ; \ + fi \ + done; + diff --git a/net-mgmt/nfdump-devel/files/patch-configure b/net-mgmt/nfdump-devel/files/patch-configure new file mode 100644 index 000000000000..28286602f934 --- /dev/null +++ b/net-mgmt/nfdump-devel/files/patch-configure @@ -0,0 +1,23 @@ + +$FreeBSD$ + +--- configure.orig ++++ configure +@@ -2843,7 +2843,7 @@ + fi + + if test -d "$WHERE_FTPATH"; then +- if test ! -f "$WHERE_FTPATH/lib/ftlib.h"; then ++ if test ! -f "$WHERE_FTPATH/include/ftlib.h"; then + { { echo "$as_me:$LINENO: error: ftlib.h file not found in flow-tools directory '$WHERE_FTPATH'. Use --with-ftpath=PATH" >&5 + echo "$as_me: error: ftlib.h file not found in flow-tools directory '$WHERE_FTPATH'. Use --with-ftpath=PATH" >&2;} + { (exit 1); exit 1; }; } +@@ -2853,7 +2853,7 @@ + echo "$as_me: error: libft.a not found in flow-tools directory '$WHERE_FTPATH'. Build flow tools first" >&2;} + { (exit 1); exit 1; }; } + fi +- FT_INCLUDES="-I$WHERE_FTPATH/src -I$WHERE_FTPATH/lib" ++ FT_INCLUDES="-I$WHERE_FTPATH/include -I$WHERE_FTPATH/lib" + FT_LDFLAGS="-L$WHERE_FTPATH/lib" + else + { { echo "$as_me:$LINENO: error: flow-tools directory '$WHERE_FTPATH' does not exists. Use --with-ftpath=PATH" >&5 diff --git a/net-mgmt/nfdump-devel/files/patch-ft2nfdump.c b/net-mgmt/nfdump-devel/files/patch-ft2nfdump.c new file mode 100644 index 000000000000..ed82a48c45c0 --- /dev/null +++ b/net-mgmt/nfdump-devel/files/patch-ft2nfdump.c @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- ft2nfdump.c.orig ++++ ft2nfdump.c +@@ -66,7 +66,7 @@ + #include "nffile.h" + #include "launch.h" + +-#include "ftbuild.h" ++/*#include "ftbuild.h" */ + + /* Global defines */ + #define MAXRECORDS 30 diff --git a/net-mgmt/nfdump-devel/pkg-descr b/net-mgmt/nfdump-devel/pkg-descr new file mode 100644 index 000000000000..88341fca512e --- /dev/null +++ b/net-mgmt/nfdump-devel/pkg-descr @@ -0,0 +1,21 @@ +NFDUMP tools support netflow v5, v7 and v9 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. + +ft2nfdump - flow-tools to nfdump - optional component + +WWW: http://nfdump.sourceforge.net |