af99f8cdbb
I tried to fix this port for modern C++ compilers, I really did. I had come up with a couple of dozen patches and some REIMPLACE_CMD fixes too. It almost compiled. I seemed to have lost that all those patches since then though. tijl@ had a similar experience a few months ago. This port was released by the maintainer 10 years ago. Among the reasons stated was that maintainance was impossible to do correctly without access to netflow-speaking routers. Also, no new release of the source code was ever made, it's still in beta. Therefore I recommend that this port requires a true maintainer, one that has access to netflow routers. Given that the source was never updated, I am not sure its even still useful 10 years later. So I recommend this port be pruned on 15 August 2014 if no suitable maintainer shows up. The port is also unstaged. Related PR: ports/177211 Approved by: portmgr (implicit)
56 lines
1.5 KiB
Makefile
56 lines
1.5 KiB
Makefile
# Created by: Andreas Klemm <andreas@klemm.gtn.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= cflowd
|
|
PORTVERSION= 2.1.b1
|
|
PORTREVISION= 12
|
|
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++
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= bison gmake libtool:keepla
|
|
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
|
|
|
|
DEPRECATED= Unmaintained 10 years, requires dozens of patches, unverifiable
|
|
EXPIRATION_DATE=2014-08-15
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1000000
|
|
BROKEN= Fails with recent flex/clang/libc++, try net-mgmt/flow-tools
|
|
.endif
|
|
|
|
.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|fstream\.h|fstream|' -e 's|iomanip\.h|iomanip|' \
|
|
-e 's|iostream\.h|iostream|' -e 's|strstream\.h|strstream|'
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${FILESDIR}/cflowd.sh \
|
|
${PREFIX}/etc/rc.d/cflowd-base.sh.sample
|
|
|
|
.include <bsd.port.mk>
|