1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
freebsd-ports/net-mgmt/flow-tools/Makefile
Renato Botelho f61f954576 Support STAGE
Approved by:	portmgr (blanket)
2014-03-26 19:12:53 +00:00

69 lines
1.7 KiB
Makefile

# Created by: @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_DEFINE= MYSQL OPENSSL PGSQL
CONFLICTS= flow-tools-ng-[0-9]*
USE_GCC= any
USE_PYTHON_RUN= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--localstatedir="${PREFIX}"
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.options.mk>
.if ${PORT_OPTIONS:MPGSQL}
CONFIGURE_ARGS+=--with-pgsql="${PREFIX}"
USE_PGSQL= yes
.endif
.if ${PORT_OPTIONS:MMYSQL}
CONFIGURE_ARGS+=--with-mysql="${PREFIX}"
USE_MYSQL= yes
.endif
.if ${PORT_OPTIONS:MOPENSSL}
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
@${REINPLACE_CMD} -e '/echo.*RANLIB/,+1d' \
${WRKSRC}/lib/Makefile.in
post-install:
${INSTALL_MAN} ${WRKSRC}/docs/*.1 ${STAGEDIR}${PREFIX}/man/man1/
.include <bsd.port.mk>