1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/net-mgmt/cflowd/Makefile
Tijl Coosemans 805102b994 - USES=gmake libtool.
- Mark broken on FreeBSD 10+.  Fixing one problem leads to another and
  another in perpetuum...
2014-02-11 18:33:17 +00:00

54 lines
1.4 KiB
Makefile

# Created by: Andreas Klemm <andreas@klemm.gtn.com>
# $FreeBSD$
PORTNAME= cflowd
PORTVERSION= 2.1.b1
PORTREVISION= 11
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
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
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>