aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/p5-Cflow
diff options
context:
space:
mode:
authorPhilippe Audeoud <jadawin@FreeBSD.org>2013-11-12 22:19:20 +0000
committerPhilippe Audeoud <jadawin@FreeBSD.org>2013-11-12 22:19:20 +0000
commit6969905b0d66a7b4aa83819b3acb4af70f1726e4 (patch)
treec03b1ce12ca9fd891e010da1a0e04f89e8eeee7d /net-mgmt/p5-Cflow
parent8added90ddef419ec1e94bac7f092adcd879fff1 (diff)
downloadports-6969905b0d66a7b4aa83819b3acb4af70f1726e4.tar.gz
ports-6969905b0d66a7b4aa83819b3acb4af70f1726e4.zip
- Add option for flow-tools-ng
PR: ports/183901 Submitted by: Sevan Janiyan <venture37@geeklan.co.uk> Approved by: maintainer
Notes
Notes: svn path=/head/; revision=333631
Diffstat (limited to 'net-mgmt/p5-Cflow')
-rw-r--r--net-mgmt/p5-Cflow/Makefile16
-rw-r--r--net-mgmt/p5-Cflow/pkg-descr2
-rw-r--r--net-mgmt/p5-Cflow/pkg-plist2
3 files changed, 14 insertions, 6 deletions
diff --git a/net-mgmt/p5-Cflow/Makefile b/net-mgmt/p5-Cflow/Makefile
index 7daafa3b7db9..f7f67da5c6b4 100644
--- a/net-mgmt/p5-Cflow/Makefile
+++ b/net-mgmt/p5-Cflow/Makefile
@@ -12,26 +12,32 @@ PKGNAMEPREFIX= p5-
MAINTAINER= fw@moov.de
COMMENT= Analyze raw flow files written by cflowd (Cisco NetFlow data)
-OPTIONS_DEFINE= FLOW_TOOLS
+OPTIONS_SINGLE= FT
+OPTIONS_SINGLE_FT= FLOW_TOOLS FLOW_TOOLS_NG
+OPTIONS_DEFAULT= FLOW_TOOLS
FLOW_TOOLS_DESC= Enable flow-tools support
+FLOW_TOOLS_NG_DESC= Enable flow-tools-ng support
USES= perl5
USE_PERL5= configure
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MFLOW_TOOLS}
BUILD_DEPENDS+= ${LOCALBASE}/lib/libft.a:${PORTSDIR}/net-mgmt/flow-tools
RUN_DEPENDS+= ${LOCALBASE}/lib/libft.a:${PORTSDIR}/net-mgmt/flow-tools
+.endif
+
+.if ${PORT_OPTIONS:MFLOW_TOOLS_NG}
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libft.a:${PORTSDIR}/net-mgmt/flow-tools-ng
+RUN_DEPENDS+= ${LOCALBASE}/lib/libft.a:${PORTSDIR}/net-mgmt/flow-tools-ng
+.endif
+.if ${PORT_OPTIONS:MFLOW_TOOLS}||${PORT_OPTIONS:MFLOW_TOOLS_NG}
CFLAGS+= -I${LOCALBASE}/include -DOSU
CONFIGURE_ARGS+= \
"LDDLFLAGS= -shared -L${LOCALBASE}/lib -lft -lz" \
"INC= -I${LOCALBASE}/include" "LDLOADLIBS= -L${LOCALBASE}/lib -lft -lz"
.endif
-MAN1= flowdumper.1
-MAN3= Cflow.3
-
.include <bsd.port.mk>
diff --git a/net-mgmt/p5-Cflow/pkg-descr b/net-mgmt/p5-Cflow/pkg-descr
index d66cf016a2b4..ff3cf6348fb9 100644
--- a/net-mgmt/p5-Cflow/pkg-descr
+++ b/net-mgmt/p5-Cflow/pkg-descr
@@ -1,4 +1,4 @@
Cflow is a perl module for analyzing raw flow files written by
cflowd, a package used to collect Cisco NetFlow data.
-WWW: http://net.doit.wisc.edu/~plonka/Cflow/
+WWW: http://net.doit.wisc.edu/~plonka/Cflow/
diff --git a/net-mgmt/p5-Cflow/pkg-plist b/net-mgmt/p5-Cflow/pkg-plist
index 57c85d3587fc..a41d1265a43d 100644
--- a/net-mgmt/p5-Cflow/pkg-plist
+++ b/net-mgmt/p5-Cflow/pkg-plist
@@ -4,4 +4,6 @@ bin/flowdumper
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Cflow/autosplit.ix
%%SITE_PERL%%/%%PERL_ARCH%%/Cflow.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Cflow/.packlist
+%%PERL5_MAN3%%/Cflow.3.gz
+man/man1/flowdumper.1.gz
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Cflow