summaryrefslogtreecommitdiff
path: root/net-mgmt/super_mediator/Makefile
blob: d6e9981cb94ea383c32d105ba32a1900a1733138 (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
# Created by: Inacio <nacho319+freebsdZilla@gmail.com>
# $FreeBSD$

PORTNAME=	super_mediator
PORTVERSION=	1.6.0
PORTREVISION=	2
CATEGORIES=	net-mgmt
MASTER_SITES=	http://tools.netsa.cert.org/releases/

MAINTAINER=	nacho319+freebsdZilla@gmail.com
COMMENT=	SuperMediator is an IPFIX mediator by CMU CERT generally used with YAF

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libfixbuf.so:net/libfixbuf \
		libltdl.so:devel/libltdl

GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip
USES=		compiler:c11 libtool pathfix perl5 pkgconfig ssl
USE_GNOME=	glib20

PLIST_SUB+=	PORTVERSION="${PORTVERSION}"

OPTIONS_DEFINE=	SPREAD MYSQL SKIPSET
OPTIONS_DEFAULT=	MYSQL SKIPSET

SPREAD_DESC=	Enable Spread libary as a pub/sub distribution capability
MYSQL_DESC=	Enable SuperMediator to directly write into MySQL
SKIPSET_DESC=	Enable SiLK IPSET files for filtering

SKIPSET_LIB_DEPENDS=	libsilk.so:security/silktools
SPREAD_LIB_DEPENDS=	libspread.so:net/spread4
MYSQL_LIB_DEPENDS=	libmysqlclient.so:${_MYSQL_CLIENT}

MYSQL_USE=	mysql

MYSQL_CONFIGURE_WITH=	mysql
SKIPSET_CONFIGURE_WITH=	skipset
SPREAD_CONFIGURE_WITH=	spread

post-install:
.for f in super_mediator.conf
	${MV} ${STAGEDIR}${PREFIX}/etc/$f ${STAGEDIR}${PREFIX}/etc/$f.sample
.endfor

.include <bsd.port.mk>