freebsd-ports/net-mgmt/flow-tools-ng/Makefile
Tijl Coosemans 9b95abf4da - Add USES=libtool
- Add INSTALL_TARGET=install-strip
- Replace pkg-install and pkg-deinstall with USERS, GROUPS and pkg-plist
  commands
- Use ETCDIR
2014-07-09 11:13:29 +00:00

59 lines
1.5 KiB
Makefile

# Created by: @BABOLO <.@babolo.ru>
# $FreeBSD$
PORTNAME= flow-tools
PORTVERSION= 0.68.5.1
PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
PKGNAMESUFFIX= -ng
MAINTAINER= c.kworr@gmail.com
COMMENT= Suite of tools and library to work with netflow data
LICENSE= BSD2CLAUSE
OPTIONS_DEFINE= MYSQL OPENSSL PGSQL
PGSQL_CONFIGURE_OFF= --without-postgresql
PGSQL_CONFIGURE_ON= --with-postgresql
PGSQL_USE= PGSQL=yes
MYSQL_CONFIGURE_OFF= --without-mysql
MYSQL_CONFIGURE_ON= --with-mysql="${PREFIX}"
MYSQL_USE= MYSQL=yes
OPENSSL_CONFIGURE_OFF= --without-openssl
OPENSSL_CONFIGURE_ON= --with-openssl="${OPENSSLBASE}"
OPENSSL_USE= OPENSSL=yes
CONFLICTS= flow-tools-[0-9]*
USES= gmake libtool tar:bzip2
USE_LDCONFIG= yes
USE_PYTHON_RUN= yes
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
PLIST_SUB= RESETPREFIX=${PREFIX}
SUB_LIST= FLOW_CAPTURE_SPOOL="${FLOW_CAPTURE_SPOOL}" \
FLOW_CAPTURE_PIDDIR="${FLOW_CAPTURE_PIDDIR}"
USE_RC_SUBR= flow_capture flow_fanout
FLOW_CAPTURE_SPOOL= /var/db/flows
FLOW_CAPTURE_PIDDIR= /var/run/flow-capture
USERS= flowtools
GROUPS= flowtools
post-patch:
@${REINPLACE_CMD}\
-e 's|@sysconfdir@/sym/|${ETCDIR}/|' \
-e 's|@sysconfdir@/cfg/|${ETCDIR}/|' \
${WRKSRC}/docs/flow-*.1.in ${WRKSRC}/docs/flow-*.html.in
@${REINPLACE_CMD} -e 's|!/bin/env|!/usr/bin/env|' \
${WRKSRC}/bin/* ${WRKSRC}/utils/*
post-install:
${MKDIR} ${STAGEDIR}${FLOW_CAPTURE_SPOOL}
${MKDIR} ${STAGEDIR}${FLOW_CAPTURE_PIDDIR}
${INSTALL_MAN} ${WRKSRC}/docs/*.1 ${STAGEDIR}${PREFIX}/man/man1/
.include <bsd.port.mk>