diff options
author | tabthorpe <tabthorpe@FreeBSD.org> | 2013-10-17 04:21:52 +0800 |
---|---|---|
committer | tabthorpe <tabthorpe@FreeBSD.org> | 2013-10-17 04:21:52 +0800 |
commit | d774e4a4376b4f7769a828b6f537a8da9a9c8f66 (patch) | |
tree | 32632d28cf058c2c1c3f4960989c6c184377655b /security/broccoli/Makefile | |
parent | 1ff87093d83262d58e24f88ba3d5f1f586c23c1d (diff) | |
download | freebsd-ports-gnome-d774e4a4376b4f7769a828b6f537a8da9a9c8f66.tar.gz freebsd-ports-gnome-d774e4a4376b4f7769a828b6f537a8da9a9c8f66.tar.zst freebsd-ports-gnome-d774e4a4376b4f7769a828b6f537a8da9a9c8f66.zip |
Broccoli is the Bro client communications library and lets you
create applications that can speak the Bro communication protocol.
WWW: http://www.icir.org/christian/broccoli/
PR: ports/ports/182476
Submitted by: Craig Leres <leres@ee.lbl.gov>
Diffstat (limited to 'security/broccoli/Makefile')
-rw-r--r-- | security/broccoli/Makefile | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/security/broccoli/Makefile b/security/broccoli/Makefile new file mode 100644 index 000000000000..914076da743b --- /dev/null +++ b/security/broccoli/Makefile @@ -0,0 +1,68 @@ +# Created by: Craig Leres <leres@ee.lbl.gov> +# $FreeBSD$ + +PORTNAME= broccoli +PORTVERSION= 2.1 +CATEGORIES= security +MASTER_SITES= http://www.bro-ids.org/downloads/release/ +DISTNAME= bro-${PORTVERSION} + +MAINTAINER= leres@ee.lbl.gov +COMMENT= The Bro Client Communications Library + +BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison \ + swig:${PORTSDIR}/devel/swig13 +LIB_DEPENDS= GeoIP:${PORTSDIR}/net/GeoIP + +EXTRACT_AFTER_ARGS= ${DISTNAME}/aux/broccoli + +USES= cmake:outsource perl5 +USE_LDCONFIG= yes +NO_MTREE= yes +CMAKE_SOURCE_PATH= ${WRKSRC}/aux/broccoli + +.if defined(BRO_PREFIX) +PREFIX=${BRO_PREFIX} +PLIST_SUB+= CLEANUP_PREFIX="" +.else +PLIST_SUB+= CLEANUP_PREFIX="@comment " +.endif +CMAKE_ARGS+= -D CMAKE_INSTALL_PREFIX:PATH=${PREFIX} \ + -D PY_MOD_INSTALL_DIR:PATH=${PREFIX} + +OPTIONS_DEFINE= DEBUG PYTHON RUBY + +DEBUG_DESC= Compile in debugging mode +PYTHON_DESC= Build python bindings for broccoli +RUBY_DESC= Build ruby bindings for broccoli + +NO_STAGE= yes +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MDEBUG} +CMAKE_ARGS+= -D ENABLE_DEBUG:BOOL=true +.endif + +.if ${PORT_OPTIONS:MPYTHON} +USE_PYTHON= yes +PLIST_SUB+= PYTHON="" +.else +CMAKE_ARGS+= -D DISABLE_PYTHON_BINDINGS:BOOL=true +PLIST_SUB+= PYTHON="@comment " +.endif + +.if ${PORT_OPTIONS:MRUBY} +USE_RUBY= yes +PLIST_SUB+= RUBY="" +.else +CMAKE_ARGS+= -D DISABLE_RUBY_BINDINGS:BOOL=true +PLIST_SUB+= RUBY="@comment " +.endif + +post-install: + @${MKDIR} ${PREFIX}/etc + @${INSTALL_SCRIPT} ${WRKSRC}/aux/broccoli/broccoli.conf ${PREFIX}/etc/broccoli.conf.sample + @[ -f ${PREFIX}/etc/broccoli.conf ] || \ + ${CP} -p ${PREFIX}/etc/broccoli.conf.sample ${PREFIX}/etc/broccoli.conf + +.include <bsd.port.mk> |