openbsd-ports/net/flow-tools/Makefile
2011-09-16 11:13:37 +00:00

60 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.24 2011/09/16 11:13:38 espie Exp $
SHARED_LIBS += ft 0.0 # .0.0
COMMENT= cisco NetFlow utilities
DISTNAME= flow-tools-0.68.5.1
EXTRACT_SUFX= .tar.bz2
REVISION= 1
CATEGORIES= net
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
# forked from: http://www.splintered.net/sw/flow-tools/
HOMEPAGE= http://code.google.com/p/flow-tools/
MASTER_SITES= http://flow-tools.googlecode.com/files/
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
FLAVORS= pgsql
FLAVOR?=
WANTLIB= c z
MODULES= lang/python
CONFIGURE_STYLE= gnu old # XXX allow sysconfdir to be overridden
SEPARATE_BUILD= simple
CONFIGURE_ARGS+= --localstatedir=/var/flow-tools \
--mandir="${LOCALBASE}/man" \
--sysconfdir="${SYSCONFDIR}/flow-tools"
.if !${FLAVOR:L:Mpgsql}
CONFIGURE_ARGS+= --without-postgresql
.else
WANTLIB += pq
LIB_DEPENDS+= databases/postgresql,-main
.endif
MAKE_FLAGS+= SUBDIRS="lib src bin configs docs"
FAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples/flow-tools
USE_GMAKE= Yes
USE_LIBTOOL= Yes
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},;' \
-e 's,/usr/local/netflow/var/sym/,${SYSCONFDIR}/flow-tools/sym/,;' \
flow-log2rrd flow-rpt2rrd flow-rptfmt
.include <bsd.port.mk>