openbsd-ports/net/nfdump/Makefile

66 lines
1.7 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.6 2010/06/04 11:28:42 sthen Exp $
2008-05-21 18:28:35 -04:00
COMMENT-main = tools to collect and process netflow data
COMMENT-nfprofile = filters data from nfdump according to profiles
V = 1.5.8
DISTNAME = nfdump-$V
NFSEN = nfsen-1.3.2
FULLPKGNAME-main = nfdump-$Vp2
FULLPKGNAME-nfprofile = nfprofile-$Vp1
DISTFILES = ${DISTNAME}${EXTRACT_SUFX} \
${NFSEN}${EXTRACT_SUFX}:0
2008-05-21 18:28:35 -04:00
CATEGORIES = net
HOMEPAGE = http://nfdump.sourceforge.net/
MAINTAINER = Stuart Henderson <sthen@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c z
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=nfdump/}
MASTER_SITES0 = ${MASTER_SITE_SOURCEFORGE:=nfsen/}
2008-05-21 18:28:35 -04:00
2010-05-06 17:42:24 -04:00
CONFIGURE_STYLE = autoconf
AUTOCONF_VERSION = 2.61
2008-05-21 18:28:35 -04:00
CONFIGURE_ARGS += ${CONFIGURE_SHARED} \
--enable-nfprofile \
2010-05-06 17:42:24 -04:00
--with-rrdpath=${LOCALBASE} \
2008-05-21 18:28:35 -04:00
--enable-ftconv \
2010-05-06 17:42:24 -04:00
--with-ftpath=${LOCALBASE} \
2008-05-21 18:28:35 -04:00
--enable-sflow
MULTI_PACKAGES = -main -nfprofile
LIB_DEPENDS-main = ft:flow-tools->=0.68.5:net/flow-tools
2008-05-21 18:28:35 -04:00
LIB_DEPENDS-nfprofile = rrd:rrdtool-*:net/rrdtool
RUN_DEPENDS-nfprofile = :nfdump-$V:net/nfdump,-main
2008-05-21 18:28:35 -04:00
post-build:
perl -pi -e 's,/usr/local,${LOCALBASE},g;' \
-e 's,/usr/X11R6,${X11BASE},g;' \
${WRKSRC}/../${NFSEN}/contrib/PortTracker/do_compile
cd ${WRKSRC}/../${NFSEN}/contrib/PortTracker; \
./do_compile
2008-05-21 18:28:35 -04:00
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/../${NFSEN}/contrib/PortTracker/nftrack \
${PREFIX}/bin/
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nfdump
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/nfdump
head -119 ${WRKSRC}/sflow.c > ${PREFIX}/share/doc/nfdump/COPYRIGHT
2008-05-21 18:28:35 -04:00
CONFIGURE_ENV = LDFLAGS="${LDFLAGS} -L${X11BASE}/lib"
REGRESS_TARGET = test
REGRESS_FLAGS = TZ=CET
.include <bsd.port.mk>