aboutsummaryrefslogtreecommitdiffstats
path: root/net/cflowd/Makefile
blob: c61b5a1893597a0477067471f0fa8f8a14016b42 (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
# 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
PORTVERSION=    2-1-b1
PORTREVISION=   5
CATEGORIES= net
MASTER_SITES=   ftp://ftp.caida.org/pub/cflowd/
DISTNAME=   ${PORTNAME}-${PORTVERSION}

.if defined(CFLOWD_FLOWSCAN_PATCH)
PATCH_SITES=    http://net.doit.wisc.edu/~plonka/cflowd/
PATCHFILES= cflowd-2-1-b1-djp.patch
.endif

MAINTAINER= ler@lerctr.org
COMMENT=    Flow analysis tool used for analyzing Cisco's NetFlow switching

BUILD_DEPENDS=  ${LOCALBASE}/lib/libArts.a:${PORTSDIR}/net/arts++

GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_BISON=  yes

CONFIGURE_ARGS+=--enable-shared --with-artspp=${PREFIX}

MANL=       cfdases.l cfdifmatrix.l cfdnets.l cfdnexthops.l \
        cfdportmatrix.l cfdprotos.l cfdtos.l flowdump.l flowwatch.l

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 500113
BROKEN=         "Does not compile (bad C++ code)"
.endif

.if !defined(CFLOWD_FLOWSCAN_PATCH)
pre-everything::
    @${ECHO} "you can compile cflowd with patches for FlowScan by typing:"
    @${ECHO} "make CFLOWD_FLOWSCAN_PATCH=yes"
.endif

post-install:
    ${INSTALL_SCRIPT} ${FILESDIR}/cflowd.sh \
        ${PREFIX}/etc/rc.d/cflowd-base.sh.sample

.include <bsd.port.post.mk>