2000-11-08 06:15:11 +01:00
|
|
|
# New ports collection makefile for: cflowd
|
|
|
|
# Date created: Di 7 Nov 2000 19:48:50 CET
|
|
|
|
# Whom: Andreas Klemm <andreas@klemm.gtn.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= cflowd
|
2003-10-08 04:55:42 +02:00
|
|
|
PORTVERSION= 2.1.b1
|
2007-10-17 12:13:01 +02:00
|
|
|
PORTREVISION= 10
|
2003-10-08 04:55:42 +02:00
|
|
|
PORTEPOCH= 1
|
2004-02-23 05:42:13 +01:00
|
|
|
CATEGORIES= net-mgmt
|
2007-06-15 19:06:41 +02:00
|
|
|
MASTER_SITES= http://www.caida.org/tools/measurement/cflowd/download/
|
2004-12-01 03:04:06 +01:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S|.|-|g}
|
2001-03-13 23:20:15 +01:00
|
|
|
|
2004-03-22 12:48:21 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= Flow analysis tool used for analyzing Cisco's NetFlow switching
|
2000-11-08 06:15:11 +01:00
|
|
|
|
2004-12-01 03:04:06 +01:00
|
|
|
LIB_DEPENDS= Arts.0:${PORTSDIR}/net-mgmt/arts++
|
2000-11-19 00:26:01 +01:00
|
|
|
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2000-11-08 06:15:11 +01:00
|
|
|
USE_GMAKE= yes
|
2007-10-17 12:13:01 +02:00
|
|
|
USE_BISON= build
|
2006-08-15 02:56:24 +02:00
|
|
|
USE_LDCONFIG= yes
|
2000-11-19 00:26:01 +01:00
|
|
|
|
2004-12-01 03:04:06 +01:00
|
|
|
CONFIGURE_ARGS= --enable-shared --with-artspp=${LOCALBASE}
|
2000-11-08 06:15:11 +01:00
|
|
|
|
|
|
|
MANL= cfdases.l cfdifmatrix.l cfdnets.l cfdnexthops.l \
|
|
|
|
cfdportmatrix.l cfdprotos.l cfdtos.l flowdump.l flowwatch.l
|
|
|
|
|
2004-12-01 03:04:06 +01:00
|
|
|
OPTIONS= FLOWSCAN "FlowScan patch" off
|
2004-03-14 00:55:49 +01:00
|
|
|
|
2004-12-01 03:04:06 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2004-03-14 00:55:49 +01:00
|
|
|
|
2004-12-01 03:04:06 +01:00
|
|
|
.if defined(WITH_FLOWSCAN)
|
|
|
|
PATCH_SITES+= http://net.doit.wisc.edu/~plonka/cflowd/
|
|
|
|
PATCHFILES+= cflowd-${PORTVERSION:S|.|-|g}-djp.patch
|
2001-03-13 23:20:15 +01:00
|
|
|
.endif
|
|
|
|
|
2007-06-15 19:06:41 +02:00
|
|
|
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 ..|'
|
2004-12-01 03:04:06 +01:00
|
|
|
|
2001-03-25 12:37:36 +02:00
|
|
|
post-install:
|
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/cflowd.sh \
|
2001-03-25 15:28:21 +02:00
|
|
|
${PREFIX}/etc/rc.d/cflowd-base.sh.sample
|
2001-03-25 12:37:36 +02:00
|
|
|
|
2004-03-14 00:55:49 +01:00
|
|
|
.include <bsd.port.post.mk>
|