Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Sep 2013 17:45:35 -0700 (PDT)
From:      Craig Leres <leres@ee.lbl.gov>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        pauls@utdallas.edu, leres@ee.lbl.gov
Subject:   ports/182476: New port: security/broccoli: Bro client communications library
Message-ID:  <201309290045.r8T0jZ9r032846@fun.ee.lbl.gov>
Resent-Message-ID: <201309290050.r8T0o0iR053133@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         182476
>Category:       ports
>Synopsis:       New port: security/broccoli: Bro client communications library
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 29 00:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Craig Leres
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
Lawrence Berkeley National Laboratory
>Environment:
System: FreeBSD fun.ee.lbl.gov 9.1-RELEASE FreeBSD 9.1-RELEASE #11 r26: Wed Sep 11 10:30:14 PDT 2013 leres@fun.ee.lbl.gov:/sys/amd64/compile/LBL amd64


	
>Description:
	We'd like to split broccoli out of the security/bro port
	so that programs can use it without having to build/install
	the bro port. One example is security/barnyard2.

	This PR should processed at the same time the security/bro
	PR I am submitting; I will follow up with that PR number
	once one is assigned.

	Broccoli is the Bro client communications library and lets
	you create applications that can speak the Bro communication
	protocol.

>How-To-Repeat:
	
>Fix:

	

--- broccoli.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	Makefile
#	distinfo
#	files/patch-aux-broccoli-CMakeLists.txt
#	pkg-descr
#	pkg-plist
#
echo x - Makefile
sed 's/^X//' >Makefile << 'b67911656ef5d18c4ae36cb6741b7965'
X# Created by: Craig Leres <leres@ee.lbl.gov>
X# $FreeBSD$
X
XPORTNAME=	broccoli
XPORTVERSION=	2.1
XCATEGORIES=	security
XMASTER_SITES=	http://www.bro-ids.org/downloads/release/
XDISTNAME=	bro-${PORTVERSION}
X
XMAINTAINER=	leres@ee.lbl.gov
XCOMMENT=	The Bro Client Communications Library
X
XBUILD_DEPENDS=	bison:${PORTSDIR}/devel/bison \
X		swig:${PORTSDIR}/devel/swig13
XLIB_DEPENDS=	GeoIP:${PORTSDIR}/net/GeoIP
X
XEXTRACT_AFTER_ARGS= ${DISTNAME}/aux/broccoli
X
XUSES=		cmake:outsource perl5
XUSE_LDCONFIG=	yes
XNO_MTREE=	yes
XCMAKE_SOURCE_PATH=	${WRKSRC}/aux/broccoli
X
X.if defined(BRO_PREFIX)
XPREFIX=${BRO_PREFIX}
XPLIST_SUB+=	CLEANUP_PREFIX=""
X.else
XPLIST_SUB+=	CLEANUP_PREFIX="@comment "
X.endif
XCMAKE_ARGS+=	-D CMAKE_INSTALL_PREFIX:PATH=${PREFIX} \
X		-D PY_MOD_INSTALL_DIR:PATH=${PREFIX}
X
XOPTIONS_DEFINE=	DEBUG PYTHON RUBY
X
XDEBUG_DESC=	Compile in debugging mode
XPYTHON_DESC=	Build python bindings for broccoli
XRUBY_DESC=	Build ruby bindings for broccoli
X
XNO_STAGE=	yes
X.include <bsd.port.options.mk>
X
X.if ${PORT_OPTIONS:MDEBUG}
XCMAKE_ARGS+=		-D ENABLE_DEBUG:BOOL=true
X.endif
X
X.if ${PORT_OPTIONS:MPYTHON}
XUSE_PYTHON=		yes
XPLIST_SUB+=		PYTHON=""
X.else
XCMAKE_ARGS+=		-D DISABLE_PYTHON_BINDINGS:BOOL=true
XPLIST_SUB+=		PYTHON="@comment "
X.endif
X
X.if ${PORT_OPTIONS:MRUBY}
XUSE_RUBY=		yes
XPLIST_SUB+=		RUBY=""
X.else
XCMAKE_ARGS+=		-D DISABLE_RUBY_BINDINGS:BOOL=true
XPLIST_SUB+=		RUBY="@comment "
X.endif
X
Xpost-install:
X	@${MKDIR} ${PREFIX}/etc
X	@${INSTALL_SCRIPT} ${WRKSRC}/aux/broccoli/broccoli.conf ${PREFIX}/etc/broccoli.conf.sample
X	@[ -f ${PREFIX}/etc/broccoli.conf ] || \
X	    ${CP} -p ${PREFIX}/etc/broccoli.conf.sample ${PREFIX}/etc/broccoli.conf
X
X.include <bsd.port.mk>
b67911656ef5d18c4ae36cb6741b7965
echo x - distinfo
sed 's/^X//' >distinfo << '57677d168a5ec21bdf22c9501f075a8f'
XSHA256 (bro-2.1.tar.gz) = 0d83b7c78d6e247d44b0407649df7fefa6da5c73a572a16c0096c9b7f2a955e0
XSIZE (bro-2.1.tar.gz) = 5627966
57677d168a5ec21bdf22c9501f075a8f
echo x - files/patch-aux-broccoli-CMakeLists.txt
sed 's/^X//' >files/patch-aux-broccoli-CMakeLists.txt << '48d23c5b7ca4dd790aa76b8d203124fc'
X--- aux/broccoli/CMakeLists.txt.orig	2013-03-04 18:49:06.000000000 -0800
X+++ aux/broccoli/CMakeLists.txt	2013-03-04 18:50:16.000000000 -0800
X@@ -96,12 +96,12 @@
X ########################################################################
X ## Install Files
X 
X-include(InstallPackageConfigFile)
X+#include(InstallPackageConfigFile)
X 
X-InstallPackageConfigFile(
X-    ${CMAKE_CURRENT_SOURCE_DIR}/broccoli.conf
X-    ${BRO_SYSCONF_DIR}
X-    broccoli.conf)
X+#InstallPackageConfigFile(
X+#    ${CMAKE_CURRENT_SOURCE_DIR}/broccoli.conf
X+#    ${BRO_SYSCONF_DIR}
X+#    broccoli.conf)
X 
X install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/broccoli-config DESTINATION bin)
X 
48d23c5b7ca4dd790aa76b8d203124fc
echo x - pkg-descr
sed 's/^X//' >pkg-descr << '7f9555c3c1089940396b503dd37f3979'
XBroccoli is the Bro client communications library and lets you
Xcreate applications that can speak the Bro communication protocol.
X
XWWW: http://www.icir.org/christian/broccoli/
7f9555c3c1089940396b503dd37f3979
echo x - pkg-plist
sed 's/^X//' >pkg-plist << '842cde48cf18b70a11b15515ca566742'
Xbin/broccoli-config
X@exec mkdir -p %B
X@unexec cmp -s %D/etc/broccoli.conf.sample %D/etc/broccoli.conf && rm %D/etc/broccoli.conf || true
Xetc/broccoli.conf.sample
X@exec test -f %B/broccoli.conf || cp -p %D/%F %B/broccoli.conf
Xinclude/broccoli.h
Xlib/libbroccoli.a
Xlib/libbroccoli.so
Xlib/libbroccoli.so.5
Xlib/libbroccoli.so.5.1.0
X%%PYTHON%%lib/python/_broccoli_intern.so
X%%PYTHON%%lib/python/broccoli.py
X%%RUBY%%lib/ruby/broccoli_ext.so
X%%CLEANUP_PREFIX%%@dirrmtry lib
X%%CLEANUP_PREFIX%%@dirrmtry include
X%%CLEANUP_PREFIX%%@dirrmtry etc
X%%CLEANUP_PREFIX%%@dirrmtry bin
X%%CLEANUP_PREFIX%%@dirrmtry %D
842cde48cf18b70a11b15515ca566742
exit
--- broccoli.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309290045.r8T0jZ9r032846>