2016-09-10 13:03:40 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.21 2016/09/10 13:03:42 ajacoutot Exp $
|
2008-05-21 22:28:35 +00:00
|
|
|
|
|
|
|
COMMENT-main = tools to collect and process netflow data
|
|
|
|
COMMENT-nfprofile = filters data from nfdump according to profiles
|
|
|
|
|
2014-12-17 14:53:43 +00:00
|
|
|
V = 1.6.13
|
2013-05-03 01:16:36 +00:00
|
|
|
DISTNAME = nfdump-$V
|
2010-07-12 22:07:37 +00:00
|
|
|
FULLPKGNAME-main = nfdump-$V
|
|
|
|
FULLPKGNAME-nfprofile = nfprofile-$V
|
2016-09-10 13:03:40 +00:00
|
|
|
REVISION-main = 0
|
|
|
|
REVISION-nfprofile = 0
|
2010-06-04 11:28:42 +00:00
|
|
|
|
2008-05-21 22:28:35 +00:00
|
|
|
CATEGORIES = net
|
|
|
|
HOMEPAGE = http://nfdump.sourceforge.net/
|
|
|
|
|
|
|
|
MAINTAINER = Stuart Henderson <sthen@openbsd.org>
|
|
|
|
|
|
|
|
# BSD
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
|
2014-06-02 12:31:24 +00:00
|
|
|
WANTLIB = c z
|
2008-05-21 22:28:35 +00:00
|
|
|
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=nfdump/}
|
|
|
|
|
2011-03-24 23:03:23 +00:00
|
|
|
CONFIGURE_STYLE = gnu
|
2008-05-21 22:28:35 +00:00
|
|
|
|
2013-05-03 01:16:36 +00:00
|
|
|
CONFIGURE_ARGS += --enable-compat15 \
|
2008-05-21 22:28:35 +00:00
|
|
|
--enable-ftconv \
|
2013-05-03 01:16:36 +00:00
|
|
|
--enable-nfprofile \
|
|
|
|
--enable-nftrack \
|
|
|
|
--enable-nsel \
|
2011-03-24 23:03:23 +00:00
|
|
|
--enable-sflow \
|
2013-05-03 01:16:36 +00:00
|
|
|
--with-rrdpath=${LOCALBASE} \
|
|
|
|
--with-ftpath=${LOCALBASE}
|
2008-05-21 22:28:35 +00:00
|
|
|
|
|
|
|
MULTI_PACKAGES = -main -nfprofile
|
|
|
|
|
2010-11-19 22:31:32 +00:00
|
|
|
LIB_DEPENDS-main = net/flow-tools>=0.68.5
|
2010-11-11 16:27:54 +00:00
|
|
|
WANTLIB-main = ${WANTLIB} ft
|
2010-11-19 22:31:32 +00:00
|
|
|
LIB_DEPENDS-nfprofile = net/rrdtool
|
2014-06-02 12:31:24 +00:00
|
|
|
WANTLIB-nfprofile = ${WANTLIB} pthread rrd
|
2010-11-19 22:31:32 +00:00
|
|
|
RUN_DEPENDS-nfprofile = nfdump-$V:net/nfdump,-main
|
2008-05-21 22:28:35 +00:00
|
|
|
|
2014-06-02 12:31:24 +00:00
|
|
|
REORDER_DEPENDENCIES += ${PORTSDIR}/infrastructure/mk/automake.dep
|
|
|
|
|
2008-05-21 22:28:35 +00:00
|
|
|
post-install:
|
2010-06-04 11:28:42 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nfdump
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/nfdump
|
2011-03-24 23:03:23 +00:00
|
|
|
head -119 ${WRKSRC}/bin/sflow.c > ${PREFIX}/share/doc/nfdump/COPYRIGHT
|
2008-05-21 22:28:35 +00:00
|
|
|
|
|
|
|
CONFIGURE_ENV = LDFLAGS="${LDFLAGS} -L${X11BASE}/lib"
|
2013-03-11 11:35:43 +00:00
|
|
|
TEST_FLAGS = TZ=CET
|
2008-05-21 22:28:35 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|