Index: Makefile =================================================================== --- Makefile (revision 379787) +++ Makefile (working copy) @@ -48,12 +48,13 @@ USE_OPENSSL= yes -OPTIONS_DEFINE= BROCCOLI BROCTL DEBUG IPSUMDUMP LBL_CF LBL_HF PERFTOOLS PORTS_SSL +OPTIONS_DEFINE= BROCCOLI BROCTL DEBUG ELASTICSEARCH IPSUMDUMP LBL_CF LBL_HF PERFTOOLS PORTS_SSL OPTIONS_DEFAULT=BROCCOLI BROCTL IPSUMDUMP LBL_CF LBL_HF PORTS_SSL BROCCOLI_DESC= Build support for libbroccoli communications BROCTL_DESC= Build BroControl support (requires BROCCOLI) DEBUG_DESC= Compile in debugging mode +ELASTICSEARCH_DESC= Build the ElasticSearch log writer (requires curl) IPSUMDUMP_DESC= Enables traffic summaries LBL_CF_DESC= Unix time to formated time/date filter support LBL_HF_DESC= Address to hostname filter support @@ -94,6 +95,13 @@ PLIST_SUB+= BROCTL="@comment " .endif +.if ${PORT_OPTIONS:MELASTICSEARCH} +CMAKE_ARGS+= -D DISABLE_ELASTICSEARCH:BOOL=false +LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl +.else +CMAKE_ARGS+= -D DISABLE_ELASTICSEARCH:BOOL=true +.endif + .if ${PORT_OPTIONS:MDEBUG} CMAKE_ARGS+= -D ENABLE_DEBUG:BOOL=true .else