FreeBSD Bugzilla – Attachment 137084 Details for
Bug 182475
[PATCH] security/bro: Split broccoli library into seperate port, other fixes and improvements
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch-Makefile
patch-Makefile (text/plain; charset=us-ascii), 3.75 KB, created by
Craig Leres
on 2013-10-10 17:57:17 UTC
(
hide
)
Description:
patch-Makefile
Filename:
MIME Type:
Creator:
Craig Leres
Created:
2013-10-10 17:57:17 UTC
Size:
3.75 KB
patch
obsolete
>--- Makefile.orig 2013-09-20 21:34:02.000000000 -0700 >+++ Makefile 2013-10-09 11:05:47.000000000 -0700 >@@ -3,7 +3,7 @@ > > PORTNAME= bro > PORTVERSION= 2.1 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= security > MASTER_SITES= http://www.bro-ids.org/downloads/release/ > >@@ -14,32 +14,70 @@ > swig:${PORTSDIR}/devel/swig13 > LIB_DEPENDS= GeoIP:${PORTSDIR}/net/GeoIP > >-USES= cmake perl5 >-CONFIGURE_WRKSRC= ${WRKSRC}/build >-BUILD_WRKSRC= ${CONFIGURE_WRKSRC} >-INSTALL_WRKSRC= ${CONFIGURE_WRKSRC} >+USES= cmake:outsource perl5 >+USE_PYTHON= yes >+ >+SUB_FILES= pkg-message >+NO_MTREE= yes >+ >+.if defined(BRO_PREFIX) >+PREFIX=${BRO_PREFIX} >+PLIST_SUB+= CLEANUP_PREFIX="" >+.else >+PLIST_SUB+= CLEANUP_PREFIX="@comment " >+.endif >+CMAKE_ARGS+= -D CMAKE_INSTALL_PREFIX:PATH=${PREFIX} \ >+ -D BRO_ROOT_DIR:PATH=${PREFIX} \ >+ -D PY_MOD_INSTALL_DIR:PATH=${PREFIX}/lib/broctl \ >+ -D BRO_SCRIPT_INSTALL_PATH:PATH=${PREFIX}/share/bro \ >+ -D BRO_ETC_INSTALL_DIR:PATH=${PREFIX}/etc \ >+ -D ENABLE_PERFTOOLS:BOOL=false \ >+ -D ENABLE_PERFTOOLS_DEBUG:BOOL=false \ >+ -D BinPAC_SKIP_INSTALL:BOOL=true \ >+ -D INSTALL_AUX_TOOLS:BOOL=true \ >+ -D BUILD_SHARED_LIBS:BOOL=true >+ >+OPTIONS_DEFINE= BROCCOLI BROCTL DEBUG IPSUMDUMP LBL_CF LBL_HF PERFTOOLS >+OPTIONS_DEFAULT=BROCCOLI BROCTL IPSUMDUMP LBL_CF LBL_HF > >-OPTIONS_DEFINE= IPV6 LBL_HF LBL_CF ASSERT BROCCOLI >-OPTIONS_DEFAULT=IPV6 LBL_HF LBL_CF >-LBL_HF_DESC= Address to hostname filter support >-LBL_CF_DESC= Unix time to formated time/date filter support > BROCCOLI_DESC= Build support for libbroccoli communications >+BROCTL_DESC= Build BroControl support (requires BROCCOLI) >+DEBUG_DESC= Compile in debugging mode >+IPSUMDUMP_DESC= Enables traffic summaries >+LBL_CF_DESC= Unix time to formated time/date filter support >+LBL_HF_DESC= Address to hostname filter support >+PERFTOOLS_DESC= Use Perftools to improve memory & CPU usage >+ > OPTIONS_EXCLUDE=NLS DOCS > > NO_STAGE= yes > .include <bsd.port.options.mk> > > .if ${PORT_OPTIONS:MBROCCOLI} >-CMAKE_ARGS+= -DINSTALL_BROCCOLI:BOOL=ON \ >- -DDISABLE_PYTHON_BINDINGS:BOOL=ON \ >- -DDISABLE_RUBY_BINDINGS:BOOL=ON >-PLIST_SUB+= BROCCOLI="" >+LIB_DEPENDS+= broccoli:${PORTSDIR}/security/broccoli >+.endif >+ >+.if ${PORT_OPTIONS:MBROCTL} >+.if empty(PORT_OPTIONS:MBROCCOLI) >+IGNORE= the BROCTL option requires BROCCOLI >+.endif >+.if empty(PORT_OPTIONS:MIPSUMDUMP) >+IGNORE= the BROCTL option requires IPSUMDUMP >+.endif >+BUILD_DEPENDS+= bash:${PORTSDIR}/shells/bash >+RUN_DEPENDS+= bash:${PORTSDIR}/shells/bash >+PLIST_SUB+= BROCTL="" >+USE_LDCONFIG= yes >+CMAKE_ARGS+= -D INSTALL_BROCTL:BOOL=true > .else >-PLIST_SUB+= BROCCOLI="@comment " >+CMAKE_ARGS+= -D INSTALL_BROCTL:BOOL=false >+PLIST_SUB+= BROCTL="@comment " > .endif > >-.if ${PORT_OPTIONS:MIPV6} >-CMAKE_ARGS+= -DBROv6:BOOL=ON >+.if ${PORT_OPTIONS:MDEBUG} >+CMAKE_ARGS+= -D ENABLE_DEBUG:BOOL=true >+.else >+CMAKE_ARGS+= -D ENABLE_DEBUG:BOOL=false > .endif > > .if ${PORT_OPTIONS:MLBL_HF} >@@ -50,12 +88,29 @@ > RUN_DEPENDS+= cf:${PORTSDIR}/sysutils/lbl-cf > .endif > >-.if ${PORT_OPTIONS:MASSERT} >-CMAKE_ARGS+= -DENABLE_DEBUG:BOOL=ON >+.if ${PORT_OPTIONS:MPERFTOOLS} >+CMAKE_ARGS+= -D ENABLE_PERFTOOLS:BOOL=true >+RUN_DEPENDS+= pprof:${PORTSDIR}/devel/google-perftools >+.else >+CMAKE_ARGS+= -D ENABLE_PERFTOOLS:BOOL=false >+.endif >+ >+.if ${PORT_OPTIONS:MIPSUMDUMP} >+BUILD_DEPENDS+= ipsumdump:${PORTSDIR}/net/ipsumdump >+RUN_DEPENDS+= ipsumdump:${PORTSDIR}/net/ipsumdump > .endif > >-post-patch: >-# avoid installing .in header file >- ${REINPLACE_CMD} -e '13d' ${WRKSRC}/aux/binpac/lib/CMakeLists.txt >+post-install: >+.if ${PORT_OPTIONS:MBROCTL} >+ @${MKDIR} ${PREFIX}/logs >+.for i in broctl.cfg networks.cfg node.cfg >+ @${MKDIR} ${PREFIX}/etc >+ @if [ ! -f ${PREFIX}/etc/${i} ]; then \ >+ ${CP} ${PREFIX}/etc/${i}.sample ${PREFIX}/etc/${i}; \ >+ fi >+.endfor >+ @${PREFIX}/bin/broctl install >+.endif >+ @${CAT} ${PKGMESSAGE} > > .include <bsd.port.mk>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 182475
:
137083
| 137084