aboutsummaryrefslogtreecommitdiff
path: root/security/broccoli
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2015-02-02 22:25:23 +0000
committerKurt Jaeger <pi@FreeBSD.org>2015-02-02 22:25:23 +0000
commit07b7d49a72e823929ca367fa4ea8df7aa50d361b (patch)
tree30a1c41f5433fc019c3ae76c24e619de66a4e7a1 /security/broccoli
parent1869512c530c341f3d7b5c93bd4a99c2c2351026 (diff)
downloadports-07b7d49a72e823929ca367fa4ea8df7aa50d361b.tar.gz
ports-07b7d49a72e823929ca367fa4ea8df7aa50d361b.zip
Notes
Diffstat (limited to 'security/broccoli')
-rw-r--r--security/broccoli/Makefile17
-rw-r--r--security/broccoli/distinfo4
-rw-r--r--security/broccoli/pkg-plist22
3 files changed, 20 insertions, 23 deletions
diff --git a/security/broccoli/Makefile b/security/broccoli/Makefile
index 8864673c475f..14ff6b570dc4 100644
--- a/security/broccoli/Makefile
+++ b/security/broccoli/Makefile
@@ -2,14 +2,13 @@
# $FreeBSD$
PORTNAME= broccoli
-PORTVERSION= 2.3
-PORTREVISION= 1
+PORTVERSION= 2.3.2
CATEGORIES= security
MASTER_SITES= http://www.bro.org/downloads/release/
DISTNAME= bro-${PORTVERSION}
MAINTAINER= leres@ee.lbl.gov
-COMMENT= The Bro Client Communications Library
+COMMENT= Bro Client Communications Library
LICENSE= BSD3CLAUSE
@@ -33,9 +32,11 @@ PLIST_SUB+= CLEANUP_PREFIX="@comment "
CMAKE_ARGS+= -D CMAKE_INSTALL_PREFIX:PATH=${PREFIX} \
-D BRO_ETC_INSTALL_DIR:PATH=${PREFIX}/etc
-OPTIONS_DEFINE= DEBUG PYTHON RUBY DOCS
+OPTIONS_DEFINE= DEBUG PYTHON RUBY
OPTIONS_SUB=
+OPTIONS_DEFAULT= PYTHON
+
DEBUG_DESC= Compile in debugging mode
PYTHON_DESC= Build python bindings for broccoli
RUBY_DESC= Build ruby bindings for broccoli
@@ -50,15 +51,13 @@ RUBY_CMAKE_ON= -D RB_INSTALL_DIR:PATH=${RUBY_SITELIBDIR} \
RUBY_CMAKE_OFF= -D DISABLE_RUBY_BINDINGS:BOOL=true
post-install::
+ @${MV} ${STAGEDIR}${PREFIX}/etc/broccoli.conf ${STAGEDIR}${PREFIX}/etc/broccoli.conf.example
.if defined(BRO_PREFIX) && empty(${PORT_OPTIONS:MPYTHON})
# Move lib/pythonX.X tree into BRO_PREFIX
${MV} ${STAGEDIR}${PYTHON_LIBDIR} ${STAGEDIR}${PREFIX}/lib
.endif
- @${MKDIR} ${STAGEDIR}${PREFIX}/etc
- @${MV} ${STAGEDIR}${PREFIX}/etc/broccoli.conf ${STAGEDIR}${PREFIX}/etc/broccoli.conf.example
-.if !empty(${PORT_OPTIONS:MPYTHON}) && defined(BRO_PREFIX)
- # bsd.python.mk isn't PREFIX-safe yet.
- @${MV} ${STAGEDIR}${PYTHON_LIBDIR} ${STAGEDIR}${PYTHONPREFIX_LIBDIR}
+.if defined(BRO_PREFIX)
+ ${FIND} ${STAGEDIR} -type d | ${XARGS} ${CHMOD} g-w
.endif
.include <bsd.port.mk>
diff --git a/security/broccoli/distinfo b/security/broccoli/distinfo
index c922c60faa5b..ab3a58b6ce98 100644
--- a/security/broccoli/distinfo
+++ b/security/broccoli/distinfo
@@ -1,2 +1,2 @@
-SHA256 (bro-2.3.tar.gz) = 46bb9f46fbe71b22afd12ad12e0eb32033fb991a2a60b3bc2d881750249b85cd
-SIZE (bro-2.3.tar.gz) = 10283001
+SHA256 (bro-2.3.2.tar.gz) = 2fe5fbda0a86b5a594116d567fd9a4c2458d30f1c6670ba8e1fac0bc8848c69b
+SIZE (bro-2.3.2.tar.gz) = 10290134
diff --git a/security/broccoli/pkg-plist b/security/broccoli/pkg-plist
index b0d50e0c4109..6ceed6125b6b 100644
--- a/security/broccoli/pkg-plist
+++ b/security/broccoli/pkg-plist
@@ -1,24 +1,22 @@
bin/broccoli-config
-@unexec cmp -s %D/etc/broccoli.conf.example %D/etc/broccoli.conf && rm %D/etc/broccoli.conf || true
+@unexec cmp -s %D/etc/broccoli.conf.example %D/etc/broccoli.conf && rm -f %D/etc/broccoli.conf || true
etc/broccoli.conf.example
-@exec test -f %D/etc/broccoli.conf || cp -p %D/%F %D/etc/broccoli.conf
+@exec test -f %D/etc/broccoli.conf || cp -p %D/etc/broccoli.conf.example %D/etc/broccoli.conf
include/broccoli.h
lib/libbroccoli.a
lib/libbroccoli.so
lib/libbroccoli.so.5
lib/libbroccoli.so.5.1.0
%%PYTHON%%%%PYTHON_SITELIBDIR%%/_broccoli_intern.so
-%%PYTHON%%@unexec rm -f %%LOCALBASE%%/%%PYTHON_SITELIBDIR%%/broccoli.py
-%%PYTHON%%@unexec rm -f %%LOCALBASE%%/%%PYTHON_SITELIBDIR%%/broccoli.pyc
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/broccoli.py
+%%PYTHON%%@unexec rm -f %D/%%PYTHON_SITELIBDIR%%/broccoli.pyc
%%RUBY%%%%RUBY_SITELIBDIR%%/Broccoli/connection.rb
%%RUBY%%%%RUBY_SITELIBDIR%%/Broccoli/event.rb
%%RUBY%%%%RUBY_SITELIBDIR%%/Broccoli/record.rb
-%%RUBY%%%%RUBY_SITELIBDIR%%/broccoli.rb
-%%RUBY%%@dirrmtry %%RUBY_SITELIBDIR%%/Broccoli
%%RUBY%%%%RUBY_SITEARCHLIBDIR%%/broccoli_ext.so
-%%CLEANUP_PREFIX%%%%PORTDOCS%%@dirrmtry share
-%%CLEANUP_PREFIX%%@dirrmtry lib
-%%CLEANUP_PREFIX%%@dirrmtry include
-%%CLEANUP_PREFIX%%@dirrmtry etc
-%%CLEANUP_PREFIX%%@dirrmtry bin
-%%CLEANUP_PREFIX%%@unexec rmdir %D || :
+%%RUBY%%%%RUBY_SITELIBDIR%%/broccoli.rb
+%%CLEANUP_PREFIX%%@dir share
+%%CLEANUP_PREFIX%%@dir lib
+%%CLEANUP_PREFIX%%@dir include
+%%CLEANUP_PREFIX%%@dir etc
+%%CLEANUP_PREFIX%%@dir bin