summaryrefslogtreecommitdiffstats
path: root/net-mgmt/flow-tools-ng/Makefile
blob: b064a0b527b515222bf072768bbcaf6a99962b40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Created by: @BABOLO <.@babolo.ru>
# $FreeBSD$

PORTNAME=	flow-tools
PORTVERSION=	0.68.5.1
PORTREVISION=	1
CATEGORIES=	net-mgmt
MASTER_SITES=	GOOGLE_CODE
PKGNAMESUFFIX=	-ng

MAINTAINER=	c.kworr@gmail.com
COMMENT=	Suite of tools and library to work with netflow data

LICENSE=	BSD2CLAUSE

BROKEN=		Unfetchable (google code has gone away)
DEPRECATED=	Unfetchable for more than six months (google code has gone away)
EXPIRATION_DATE=	2017-04-30

OPTIONS_DEFINE=	MYSQL OPENSSL PGSQL
PGSQL_CONFIGURE_OFF=	--without-postgresql
PGSQL_CONFIGURE_ON=	--with-postgresql
PGSQL_USES=		pgsql
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_USES=		ssl

CONFLICTS=	flow-tools-[0-9]*

USES=		gmake libtool python:run tar:bzip2
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip

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>
OpenPOWER on IntegriCloud