freebsd-ports/net-mgmt/flow-tools/Makefile
Mark Linimon a8693b8dee Force numerous ports that fail to build with clang over to instead always
rely on gcc.  The patch uses the new USE_GCC=any code in Mk/bsd.gcc.mk to
accomplish this.

The ports chosen were ports that blocked 2 or more ports from building with
clang.  (There are several hundred other ports that still fail to build with
clang, even with this patch.  This is merely one step along the way.)

Those interested in fixing these ports with clang, and have clang as their
default compiler, can simply set FORCE_BASE_CC_FOR_TESTING=yes.

For those who have gcc as their default compiler, this change is believed
to cause no change.

Hat:		portmgr
Tested with:	multiple runs on amd64-8-exp-bcm and 9-exp-clang, with various
		combinations of patch/no-patch and flag settings.
2012-10-09 22:12:13 +00:00

88 lines
2.3 KiB
Makefile

# New ports collection makefile for: flow-tools
# Date created: 2000 Jul 25
# Whom: @BABOLO <.@babolo.ru>
#
# $FreeBSD$
#
PORTNAME= flow-tools
PORTVERSION= 0.68
PORTREVISION= 7
CATEGORIES= net-mgmt
MASTER_SITES= ftp://ftp.eng.oar.net/pub/flow-tools/
MAINTAINER= 5u623l20@gmail.com
COMMENT= Suite of tools and library to work with netflow data
PORTSCOUT= skipv:0.411
OPTIONS= MYSQL "Enable MySQL support" off \
OPENSSL "Enable OpenSSL support" off \
PGSQL "Enable PostgreSQL support" off
CONFLICTS= flow-tools-ng-[0-9]*
USE_GCC= any
USE_PYTHON_RUN= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--localstatedir="${PREFIX}"
MAN1= flow-capture.1 flow-cat.1 flow-dscan.1 flow-expire.1 \
flow-export.1 flow-fanout.1 flow-filter.1 flow-gen.1 \
flow-header.1 flow-import.1 flow-mask.1 flow-merge.1 \
flow-nfilter.1 flow-print.1 flow-receive.1 \
flow-report.1 flow-send.1 flow-split.1 flow-stat.1 \
flow-tag.1 flow-tools.1 flow-tools-examples.1 \
flow-xlate.1 flow-rptfmt.1 flow-log2rrd.1 flow-rpt2rrd.1
SUB_FILES= pkg-install pkg-deinstall
SUB_LIST= FLOW_CAPTURE_SPOOL="${FLOW_CAPTURE_SPOOL}" \
FLOW_CAPTURE_USER="${FLOW_CAPTURE_USER}" \
FLOW_CAPTURE_GROUP="${FLOW_CAPTURE_GROUP}" \
FLOW_CAPTURE_UID="${FLOW_CAPTURE_UID}" \
FLOW_CAPTURE_GID="${FLOW_CAPTURE_GID}" \
FLOW_CAPTURE_PIDDIR="${FLOW_CAPTURE_PIDDIR}"
USE_RC_SUBR= flow_capture flow_fanout
VARDIR?= /var
FLOW_CAPTURE_SPOOL= ${VARDIR}/db/flows
FLOW_CAPTURE_USER= flowtools
FLOW_CAPTURE_GROUP= flowtools
FLOW_CAPTURE_UID= 174
FLOW_CAPTURE_GID= 174
FLOW_CAPTURE_PIDDIR= ${VARDIR}/run/flow-capture
.include <bsd.port.pre.mk>
.if defined(WITH_PGSQL)
CONFIGURE_ARGS+=--with-pgsql="${PREFIX}"
USE_PGSQL= yes
.endif
.if defined(WITH_MYSQL)
CONFIGURE_ARGS+=--with-mysql="${PREFIX}"
USE_MYSQL= yes
.endif
.if defined(WITH_OPENSSL)
CONFIGURE_ARGS+=--with-openssl="${OPENSSLBASE}"
.endif
post-patch:
${REINPLACE_CMD}\
-e 's|@localstatedir@/sym/|${PREFIX}/share/flow-tools/|' \
-e 's|@localstatedir@/cfg/|${PREFIX}/etc/flow-tools/|' \
${WRKSRC}/docs/flow-*.1.in ${WRKSRC}/docs/flow-*.html.in
pre-su-install:
@${SETENV} ${SCRIPTS_ENV} \
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
post-install:
.for I in ${MAN1}
${INSTALL_MAN} ${WRKSRC}/docs/${I} ${PREFIX}/man/man1/
.endfor
@${SETENV} ${SCRIPTS_ENV} \
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>