2013-04-19 17:32:37 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.31 2013/04/19 21:32:37 sthen Exp $
|
2010-05-06 17:40:31 -04:00
|
|
|
|
|
|
|
SHARED_LIBS += ft 0.0 # .0.0
|
2001-03-24 14:55:27 -05:00
|
|
|
|
2007-09-15 18:36:51 -04:00
|
|
|
COMMENT= cisco NetFlow utilities
|
2000-08-26 02:58:20 -04:00
|
|
|
|
2011-04-16 06:35:58 -04:00
|
|
|
DISTNAME= flow-tools-0.68.5.1
|
2010-05-06 17:40:31 -04:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2013-04-19 17:32:37 -04:00
|
|
|
REVISION= 3
|
2000-08-26 02:58:20 -04:00
|
|
|
CATEGORIES= net
|
|
|
|
|
2010-07-19 12:30:11 -04:00
|
|
|
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
2000-08-26 02:58:20 -04:00
|
|
|
|
2010-05-06 17:40:31 -04:00
|
|
|
# forked from: http://www.splintered.net/sw/flow-tools/
|
2010-07-19 12:30:11 -04:00
|
|
|
HOMEPAGE= http://code.google.com/p/flow-tools/
|
2001-09-04 11:22:14 -04:00
|
|
|
|
2010-05-06 17:40:31 -04:00
|
|
|
MASTER_SITES= http://flow-tools.googlecode.com/files/
|
2000-08-26 02:58:20 -04:00
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2010-05-06 17:40:31 -04:00
|
|
|
|
|
|
|
FLAVORS= pgsql
|
|
|
|
FLAVOR?=
|
|
|
|
|
2004-12-15 19:31:20 -05:00
|
|
|
WANTLIB= c z
|
2000-08-26 02:58:20 -04:00
|
|
|
|
2006-12-08 03:23:42 -05:00
|
|
|
MODULES= lang/python
|
|
|
|
|
2012-04-28 06:51:44 -04:00
|
|
|
LOCALSTATEDIR= ${BASELOCALSTATEDIR}/flow-tools
|
|
|
|
|
2011-11-28 05:52:03 -05:00
|
|
|
CONFIGURE_STYLE= gnu
|
2012-03-29 09:38:12 -04:00
|
|
|
SEPARATE_BUILD= Yes
|
2011-11-28 05:52:03 -05:00
|
|
|
SYSCONFDIR= ${BASESYSCONFDIR}/flow-tools
|
2006-12-08 03:23:42 -05:00
|
|
|
|
2013-02-09 09:49:50 -05:00
|
|
|
.if !${FLAVOR:Mpgsql}
|
2010-05-06 17:40:31 -04:00
|
|
|
CONFIGURE_ARGS+= --without-postgresql
|
|
|
|
.else
|
2010-11-19 17:31:32 -05:00
|
|
|
WANTLIB += pq
|
|
|
|
LIB_DEPENDS+= databases/postgresql,-main
|
2010-05-06 17:40:31 -04:00
|
|
|
.endif
|
|
|
|
|
2011-04-16 06:35:58 -04:00
|
|
|
MAKE_FLAGS+= SUBDIRS="lib src bin configs docs"
|
2010-05-06 17:40:31 -04:00
|
|
|
FAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples/flow-tools
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2011-04-16 06:35:58 -04:00
|
|
|
USE_GROFF= Yes
|
|
|
|
|
|
|
|
# let configure generate a new ftconfig.h, the supplied one has
|
|
|
|
# problems with libwrap
|
|
|
|
pre-configure:
|
|
|
|
rm -f ${WRKSRC}/lib/ftconfig.h
|
|
|
|
cd ${WRKSRC}/bin; perl -pi -e 's,/bin/env python,${MODPY_BIN},;' \
|
2011-11-28 05:52:03 -05:00
|
|
|
-e 's,/usr/local/netflow/var/sym/,${SYSCONFDIR}/sym/,;' \
|
2011-04-16 06:35:58 -04:00
|
|
|
flow-log2rrd flow-rpt2rrd flow-rptfmt
|
2006-12-08 03:23:42 -05:00
|
|
|
|
2000-08-26 02:58:20 -04:00
|
|
|
.include <bsd.port.mk>
|