2017-09-15 20:18:26 +02:00
|
|
|
# Created by: Craig Leres <leres@FreeBSD.org>
|
2013-10-16 22:21:52 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= broccoli
|
2019-02-02 22:22:58 +01:00
|
|
|
PORTVERSION= 1.101
|
2015-10-23 20:12:26 +02:00
|
|
|
PORTEPOCH= 1
|
2013-10-16 22:21:52 +02:00
|
|
|
CATEGORIES= security
|
2019-02-02 22:22:58 +01:00
|
|
|
MASTER_SITES= https://www.zeek.org/downloads/
|
|
|
|
DISTNAME= bro-2.6.1
|
2013-10-16 22:21:52 +02:00
|
|
|
|
2017-09-15 20:18:26 +02:00
|
|
|
MAINTAINER= leres@FreeBSD.org
|
2015-02-02 23:25:23 +01:00
|
|
|
COMMENT= Bro Client Communications Library
|
2013-10-16 22:21:52 +02:00
|
|
|
|
2014-01-31 22:19:16 +01:00
|
|
|
LICENSE= BSD3CLAUSE
|
2013-11-22 16:02:05 +01:00
|
|
|
|
2017-12-20 12:09:19 +01:00
|
|
|
BUILD_DEPENDS= swig3.0:devel/swig30
|
2013-10-16 22:21:52 +02:00
|
|
|
|
2018-12-25 21:25:39 +01:00
|
|
|
USES= cmake ssl bison
|
2013-10-16 22:21:52 +02:00
|
|
|
USE_LDCONFIG= yes
|
2019-01-14 18:50:45 +01:00
|
|
|
|
|
|
|
EXTRACT_AFTER_ARGS= ${DISTNAME}/aux/broccoli
|
2013-10-16 22:21:52 +02:00
|
|
|
CMAKE_SOURCE_PATH= ${WRKSRC}/aux/broccoli
|
2017-12-20 12:09:19 +01:00
|
|
|
BINARY_ALIAS= swig=swig3.0
|
2013-10-16 22:21:52 +02:00
|
|
|
|
|
|
|
.if defined(BRO_PREFIX)
|
2013-12-14 00:25:36 +01:00
|
|
|
PREFIX= ${BRO_PREFIX}
|
2013-10-16 22:21:52 +02:00
|
|
|
PLIST_SUB+= CLEANUP_PREFIX=""
|
2013-12-14 00:25:36 +01:00
|
|
|
NO_MTREE= yes
|
2013-10-16 22:21:52 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= CLEANUP_PREFIX="@comment "
|
|
|
|
.endif
|
|
|
|
CMAKE_ARGS+= -D CMAKE_INSTALL_PREFIX:PATH=${PREFIX} \
|
2013-12-14 00:25:36 +01:00
|
|
|
-D BRO_ETC_INSTALL_DIR:PATH=${PREFIX}/etc
|
2016-09-12 01:57:56 +02:00
|
|
|
CFLAGS+= -I${OPENSSLINC}
|
2013-10-16 22:21:52 +02:00
|
|
|
|
2015-02-02 23:25:23 +01:00
|
|
|
OPTIONS_DEFINE= DEBUG PYTHON RUBY
|
2013-12-14 00:25:36 +01:00
|
|
|
OPTIONS_SUB=
|
2013-10-16 22:21:52 +02:00
|
|
|
|
2015-02-02 23:25:23 +01:00
|
|
|
OPTIONS_DEFAULT= PYTHON
|
|
|
|
|
2013-10-16 22:21:52 +02:00
|
|
|
PYTHON_DESC= Build python bindings for broccoli
|
|
|
|
RUBY_DESC= Build ruby bindings for broccoli
|
|
|
|
|
2013-12-14 00:25:36 +01:00
|
|
|
DEBUG_CMAKE_ON= -D ENABLE_DEBUG:BOOL=true
|
2017-11-30 16:50:30 +01:00
|
|
|
PYTHON_USES= python:2.7
|
2013-12-14 00:25:36 +01:00
|
|
|
PYTHON_CMAKE_ON= -D PY_MOD_INSTALL_DIR:PATH=${PYTHON_SITELIBDIR}
|
|
|
|
PYTHON_CMAKE_OFF= -D DISABLE_PYTHON_BINDINGS:BOOL=true
|
|
|
|
RUBY_USE= ruby=yes
|
|
|
|
RUBY_CMAKE_ON= -D RB_INSTALL_DIR:PATH=${RUBY_SITELIBDIR} \
|
|
|
|
-D RB_ARCH_INSTALL_DIR:PATH=${RUBY_SITEARCHLIBDIR}
|
|
|
|
RUBY_CMAKE_OFF= -D DISABLE_RUBY_BINDINGS:BOOL=true
|
2013-10-16 22:21:52 +02:00
|
|
|
|
2013-12-14 00:25:36 +01:00
|
|
|
post-install::
|
2015-02-02 23:25:23 +01:00
|
|
|
@${MV} ${STAGEDIR}${PREFIX}/etc/broccoli.conf ${STAGEDIR}${PREFIX}/etc/broccoli.conf.example
|
2014-01-31 22:19:16 +01:00
|
|
|
.if defined(BRO_PREFIX) && empty(${PORT_OPTIONS:MPYTHON})
|
|
|
|
# Move lib/pythonX.X tree into BRO_PREFIX
|
|
|
|
${MV} ${STAGEDIR}${PYTHON_LIBDIR} ${STAGEDIR}${PREFIX}/lib
|
2013-11-22 16:02:05 +01:00
|
|
|
.endif
|
2015-02-02 23:25:23 +01:00
|
|
|
.if defined(BRO_PREFIX)
|
|
|
|
${FIND} ${STAGEDIR} -type d | ${XARGS} ${CHMOD} g-w
|
2013-12-14 00:25:36 +01:00
|
|
|
.endif
|
2013-10-16 22:21:52 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|