From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Sep 29 00:50:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 36EC64AD for ; Sun, 29 Sep 2013 00:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 15AFE2C24 for ; Sun, 29 Sep 2013 00:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8T0o0DW053134 for ; Sun, 29 Sep 2013 00:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8T0o0iR053133; Sun, 29 Sep 2013 00:50:00 GMT (envelope-from gnats) Resent-Date: Sun, 29 Sep 2013 00:50:00 GMT Resent-Message-Id: <201309290050.r8T0o0iR053133@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Craig Leres Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4B486301 for ; Sun, 29 Sep 2013 00:45:39 +0000 (UTC) (envelope-from leres@ee.lbl.gov) Received: from fun.ee.lbl.gov (fun.ee.lbl.gov [IPv6:2620:83:8000:102::ca]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 362912C0F for ; Sun, 29 Sep 2013 00:45:39 +0000 (UTC) Received: from fun.ee.lbl.gov (localhost [127.0.0.1]) by fun.ee.lbl.gov (8.14.7/8.14.7) with ESMTP id r8T0jZ9d032847 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 28 Sep 2013 17:45:35 -0700 (PDT) Received: (from leres@localhost) by fun.ee.lbl.gov (8.14.7/8.14.7/Submit) id r8T0jZ9r032846; Sat, 28 Sep 2013 17:45:35 -0700 (PDT) Message-Id: <201309290045.r8T0jZ9r032846@fun.ee.lbl.gov> Date: Sat, 28 Sep 2013 17:45:35 -0700 (PDT) From: Craig Leres To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/182476: New port: security/broccoli: Bro client communications library Cc: pauls@utdallas.edu, leres@ee.lbl.gov X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Craig Leres List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Sep 2013 00:50:01 -0000 >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 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 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 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: