View | Details | Raw Unified | Return to bug 172526
Collapse All | Expand All

(-)b/net-mgmt/nfdump/Makefile (-18 / +35 lines)
Lines 21-39 GNU_CONFIGURE= yes Link Here
21
MAKE_JOBS_UNSAFE=	yes
21
MAKE_JOBS_UNSAFE=	yes
22
22
23
#flow-tools support
23
#flow-tools support
24
OPTIONS=	FT2NFDUMP	"With Flow-tools to nfdump converter" off \
24
OPTIONS_DEFINE=		FT2NFDUMP NFPROFILE FIXTIMEBUG READPCAP NFTRACK \
25
		NFPROFILE	"With nfprofile  (nfsen requires it)" on \
25
			SFLOW NFDUMP15
26
		FIXTIMEBUG      "With fixing swap time bug of some v5" off \
26
OPTIONS_DEFAULT=	NFPROFILE
27
		READPCAP        "With pcap support" off \
28
		NFTRACK         "With PortTracker support" off \
29
		SFLOW		"Build sflow collector daemon also" off
30
27
31
.include <bsd.port.pre.mk>
28
FT2NFDUMP_DESC=		With Flow-tools to nfdump converter
29
NFPROFILE_DESC=		With nfprofile (nfsen requires it)
30
FIXTIMEBUG_DESC=	With fixing swap time bug of some v5
31
READPCAP_DESC=		With pcap support
32
NFTRACK_DESC=		With PortTracker support
33
SFLOW_DESC=		Build sflow collector daemon also
34
NFDUMP15_DESC=		Enable compatbility with version 1.5
35
36
.include <bsd.port.options.mk>
32
37
33
#for compatibility
38
#for compatibility
34
#
39
#
35
.ifndef(WITHOUT_NFDUMP15_SUPPORT)
40
.if ${PORT_OPTIONS:MNFDUMP15}
36
CONFIGURE_ARGS=		--enable-compat15
41
CONFIGURE_ARGS+=	--enable-compat15
42
.else
43
CONFIGURE_ARGS+=	--disable-compat15
37
.endif
44
.endif
38
45
39
PLIST_FILES=	bin/nfanon bin/nfcapd bin/nfdump bin/nfexpire bin/nfreplay
46
PLIST_FILES=	bin/nfanon bin/nfcapd bin/nfdump bin/nfexpire bin/nfreplay
Lines 41-88 MAN1= nfanon.1 nfcapd.1 nfdump.1 nfexpire.1 nfreplay.1 Link Here
41
MAN1+=		ft2nfdump.1 nfprofile.1 sfcapd.1
48
MAN1+=		ft2nfdump.1 nfprofile.1 sfcapd.1
42
PORTDOCS=	AUTHORS ChangeLog INSTALL README
49
PORTDOCS=	AUTHORS ChangeLog INSTALL README
43
50
44
.if defined(WITH_FIXTIMEBUG)
51
.if ${PORT_OPTIONS:MFIXTIMEBUG}
45
CONFIGURE_ARGS+=	--enable-fixtimebug
52
CONFIGURE_ARGS+=	--enable-fixtimebug
53
.else
54
CONFIGURE_ARGS+=	--disable-fixtimebug
46
.endif
55
.endif
47
56
48
.if defined(WITH_NFPROFILE)
57
.if ${PORT_OPTIONS:MNFPROFILE}
49
CONFIGURE_ARGS+=	--enable-nfprofile
58
CONFIGURE_ARGS+=	--enable-nfprofile
50
PLIST_FILES+=	bin/nfprofile
59
PLIST_FILES+=	bin/nfprofile
60
.else
61
CONFIGURE_ARGS+=	--disable-nfprofile
51
.endif
62
.endif
52
63
53
.if defined(WITH_NFTRACK)
64
.if ${PORT_OPTIONS:MNFTRACK}
54
CONFIGURE_ARGS+=	--enable-nftrack
65
CONFIGURE_ARGS+=	--enable-nftrack
55
PLIST_FILES+=	bin/nftrack
66
PLIST_FILES+=	bin/nftrack
67
.else
68
CONFIGURE_ARGS+=	--disable-nftrack
56
.endif
69
.endif
57
70
58
.if defined(WITH_NFPROFILE) || defined(WITH_NFTRACK)
71
.if ${PORT_OPTIONS:MNFPROFILE} || ${PORT_OPTIONS:MNFTRACK}
59
CONFIGURE_ARGS+=	--with-rrdpath=${LOCALBASE}
72
CONFIGURE_ARGS+=	--with-rrdpath=${LOCALBASE}
60
BUILD_DEPENDS+=	rrdtool:${PORTSDIR}/databases/rrdtool
73
BUILD_DEPENDS+=	rrdtool:${PORTSDIR}/databases/rrdtool
61
RUN_DEPENDS+=	rrdtool:${PORTSDIR}/databases/rrdtool
74
RUN_DEPENDS+=	rrdtool:${PORTSDIR}/databases/rrdtool
62
.endif
75
.endif
63
76
64
#flow-tools support
77
#flow-tools support
65
.if defined(WITH_FT2NFDUMP)
78
.if ${PORT_OPTIONS:MFT2NFDUMP}
66
BUILD_DEPENDS+=		flow-cat:${PORTSDIR}/net-mgmt/flow-tools
79
BUILD_DEPENDS+=		flow-cat:${PORTSDIR}/net-mgmt/flow-tools
67
CONFIGURE_ARGS+=	--enable-ftconv --with-ftpath=${LOCALBASE}
80
CONFIGURE_ARGS+=	--enable-ftconv --with-ftpath=${LOCALBASE}
68
PLIST_FILES+=	bin/ft2nfdump
81
PLIST_FILES+=	bin/ft2nfdump
69
.endif
82
.endif
70
83
71
.if defined (WITH_READPCAP)
84
.if ${PORT_OPTIONS:MREADPCAP}
72
CONFIGURE_ARGS+=	--enable-readpcap
85
CONFIGURE_ARGS+=	--enable-readpcap
86
.else
87
CONFIGURE_ARGS+=	--disable-readpcap
73
.endif
88
.endif
74
89
75
#sflow capture support
90
#sflow capture support
76
.if defined(WITH_SFLOW)
91
.if ${PORT_OPTIONS:MSFLOW}
77
CONFIGURE_ARGS+=	--enable-sflow
92
CONFIGURE_ARGS+=	--enable-sflow
78
PLIST_FILES+=	bin/sfcapd
93
PLIST_FILES+=	bin/sfcapd
79
#MAN1+=		sfcapd.1
94
#MAN1+=		sfcapd.1
95
.else
96
CONFIGURE_ARGS+=	--disable-sflow
80
.endif
97
.endif
81
98
82
.if !defined(NOPORTDOCS)
99
.if ${PORT_OPTIONS:MDOCS}
83
post-install:
100
post-install:
84
	${MKDIR} ${DOCSDIR}
101
	${MKDIR} ${DOCSDIR}
85
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
102
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
86
.endif
103
.endif
87
104
88
.include <bsd.port.post.mk>
105
.include <bsd.port.mk>

Return to bug 172526