blob: 7228ac94ef510d75e979545a072ab3650a73d385 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Created by: Andreas Klemm <andreas@klemm.gtn.com>
# $FreeBSD$
PORTNAME= cflowd
PORTVERSION= 2.1.b1
PORTREVISION= 10
PORTEPOCH= 1
CATEGORIES= net-mgmt
MASTER_SITES= http://www.caida.org/tools/measurement/cflowd/download/
DISTNAME= ${PORTNAME}-${PORTVERSION:S|.|-|g}
MAINTAINER= ports@FreeBSD.org
COMMENT= Flow analysis tool used for analyzing Cisco's NetFlow switching
LIB_DEPENDS= Arts:${PORTSDIR}/net-mgmt/arts++
USE_AUTOTOOLS= libtool
USE_GMAKE= yes
USES= bison
USE_LDCONFIG= yes
CONFIGURE_ARGS= --enable-shared --with-artspp=${LOCALBASE}
MANL= cfdases.l cfdifmatrix.l cfdnets.l cfdnexthops.l \
cfdportmatrix.l cfdprotos.l cfdtos.l flowdump.l flowwatch.l
OPTIONS_DEFINE= FLOWSCAN
FLOWSCAN_DESC= FlowScan patch
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MFLOWSCAN}
PATCH_SITES+= http://net.doit.wisc.edu/~plonka/cflowd/
PATCHFILES+= cflowd-${PORTVERSION:S|.|-|g}-djp.patch
.endif
post-extract:
${CHMOD} -R u+w ${WRKSRC}
post-patch:
@${FIND} ${WRKSRC} -type f | ${XARGS} \
${REINPLACE_CMD} -e 's|iostream.h>|iostream>|;s|strstream.h|sstream|'
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} \
${REINPLACE_CMD} -e '/^LIBTOOL =/s^\$$(top_builddir)/libtool^${LIBTOOL}^' \
-e '/LIBTOOL/ { ;\
N ;\
/ -o / s|$${LIBTOOL} $${CXX}|$${LIBTOOL} --mode=link $${CXX}| ;\
P ;\
D ;\
}';
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} \
-e 's|$${LIBTOOL} $$(CXX)|$${LIBTOOL} --mode=compile $$(CXX)|' \
-e 's|$${LIBTOOL} $${CXX}|$${LIBTOOL} --mode=compile $${CXX}|' \
-e 's|$${LIBTOOL} \.\.|$${LIBTOOL} --mode=install ..|'
post-install:
${INSTALL_SCRIPT} ${FILESDIR}/cflowd.sh \
${PREFIX}/etc/rc.d/cflowd-base.sh.sample
.include <bsd.port.mk>
|