aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/super_mediator/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/super_mediator/Makefile')
-rw-r--r--net-mgmt/super_mediator/Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/net-mgmt/super_mediator/Makefile b/net-mgmt/super_mediator/Makefile
new file mode 100644
index 000000000000..9ac8ffd0bfe0
--- /dev/null
+++ b/net-mgmt/super_mediator/Makefile
@@ -0,0 +1,48 @@
+# Created by: Inacio <nacho319+freebsdZilla@gmail.com>
+# $FreeBSD$
+
+PORTNAME= super_mediator
+PORTVERSION= 1.2.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:${PORTSDIR}/net/libfixbuf \
+ libltdl.so:${PORTSDIR}/devel/libltdl
+
+GNU_CONFIGURE= yes
+INSTALL_TARGET= install-strip
+USES= libtool pathfix perl5 pkgconfig
+USE_GNOME= glib20
+USE_LDCONFIG= yes
+
+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:${PORTSDIR}/security/silktools
+SPREAD_LIB_DEPENDS= libspread.so:${PORTSDIR}/net/spread4
+MYSQL_LIB_DEPENDS= libmysqlclient.so:${PORTSDIR}/${_MYSQL_CLIENT}
+
+MYSQL_USE= mysql=yes
+
+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>