c2832a1290
suggested by bentley@
56 lines
1.2 KiB
Makefile
56 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.32 2013/08/07 21:32:16 naddy Exp $
|
|
|
|
SHARED_LIBS += ft 0.0 # .0.0
|
|
|
|
COMMENT= cisco NetFlow utilities
|
|
|
|
DISTNAME= flow-tools-0.68.5.1
|
|
EXTRACT_SUFX= .tar.bz2
|
|
REVISION= 4
|
|
CATEGORIES= net
|
|
|
|
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
|
|
|
# forked from: http://www.splintered.net/sw/flow-tools/
|
|
HOMEPAGE= https://code.google.com/p/flow-tools/
|
|
|
|
MASTER_SITES= https://flow-tools.googlecode.com/files/
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
FLAVORS= pgsql
|
|
FLAVOR?=
|
|
|
|
WANTLIB= c z
|
|
|
|
MODULES= lang/python
|
|
|
|
LOCALSTATEDIR= ${BASELOCALSTATEDIR}/flow-tools
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
SEPARATE_BUILD= Yes
|
|
SYSCONFDIR= ${BASESYSCONFDIR}/flow-tools
|
|
|
|
.if !${FLAVOR: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_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}/sym/,;' \
|
|
flow-log2rrd flow-rpt2rrd flow-rptfmt
|
|
|
|
.include <bsd.port.mk>
|