diff options
author | jadawin <jadawin@FreeBSD.org> | 2013-11-22 23:02:05 +0800 |
---|---|---|
committer | jadawin <jadawin@FreeBSD.org> | 2013-11-22 23:02:05 +0800 |
commit | cfa846c4f0ca10f64c3e1b06dce5dcd82d83e8f6 (patch) | |
tree | 0791d1736a091995ca6f179cd38c64c45ff58794 /security/broccoli/Makefile | |
parent | cec68b70233c64c586b350d65675a65f025f0f8d (diff) | |
download | freebsd-ports-gnome-cfa846c4f0ca10f64c3e1b06dce5dcd82d83e8f6.tar.gz freebsd-ports-gnome-cfa846c4f0ca10f64c3e1b06dce5dcd82d83e8f6.tar.zst freebsd-ports-gnome-cfa846c4f0ca10f64c3e1b06dce5dcd82d83e8f6.zip |
- Update to 2.2
- Update MASTER_SITES
- Add LICENSE
- Support STAGE
PR: ports/183939
Submitted by: maintainer
Diffstat (limited to 'security/broccoli/Makefile')
-rw-r--r-- | security/broccoli/Makefile | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/security/broccoli/Makefile b/security/broccoli/Makefile index 914076da743b..68008217767e 100644 --- a/security/broccoli/Makefile +++ b/security/broccoli/Makefile @@ -2,14 +2,16 @@ # $FreeBSD$ PORTNAME= broccoli -PORTVERSION= 2.1 +PORTVERSION= 2.2 CATEGORIES= security -MASTER_SITES= http://www.bro-ids.org/downloads/release/ +MASTER_SITES= http://www.bro.org/downloads/release/ DISTNAME= bro-${PORTVERSION} MAINTAINER= leres@ee.lbl.gov COMMENT= The Bro Client Communications Library +LICENSE= BSD + BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison \ swig:${PORTSDIR}/devel/swig13 LIB_DEPENDS= GeoIP:${PORTSDIR}/net/GeoIP @@ -24,10 +26,12 @@ CMAKE_SOURCE_PATH= ${WRKSRC}/aux/broccoli .if defined(BRO_PREFIX) PREFIX=${BRO_PREFIX} PLIST_SUB+= CLEANUP_PREFIX="" +NEED_ROOT= yes .else PLIST_SUB+= CLEANUP_PREFIX="@comment " .endif CMAKE_ARGS+= -D CMAKE_INSTALL_PREFIX:PATH=${PREFIX} \ + -D BRO_ETC_INSTALL_DIR:PATH=${PREFIX}/etc \ -D PY_MOD_INSTALL_DIR:PATH=${PREFIX} OPTIONS_DEFINE= DEBUG PYTHON RUBY @@ -36,7 +40,6 @@ DEBUG_DESC= Compile in debugging mode PYTHON_DESC= Build python bindings for broccoli RUBY_DESC= Build ruby bindings for broccoli -NO_STAGE= yes .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MDEBUG} @@ -59,10 +62,11 @@ CMAKE_ARGS+= -D DISABLE_RUBY_BINDINGS:BOOL=true PLIST_SUB+= RUBY="@comment " .endif -post-install: - @${MKDIR} ${PREFIX}/etc - @${INSTALL_SCRIPT} ${WRKSRC}/aux/broccoli/broccoli.conf ${PREFIX}/etc/broccoli.conf.sample - @[ -f ${PREFIX}/etc/broccoli.conf ] || \ - ${CP} -p ${PREFIX}/etc/broccoli.conf.sample ${PREFIX}/etc/broccoli.conf +post-stage:: +.if defined(BRO_PREFIX) + @${MKDIR} ${PREFIX} +.endif + @${MKDIR} ${STAGEDIR}${PREFIX}/etc + @${INSTALL_SCRIPT} ${WRKSRC}/aux/broccoli/broccoli.conf ${STAGEDIR}${PREFIX}/etc/broccoli.conf.example .include <bsd.port.mk> |