diff options
author | Carlo Strub <cs@FreeBSD.org> | 2014-01-31 21:19:16 +0000 |
---|---|---|
committer | Carlo Strub <cs@FreeBSD.org> | 2014-01-31 21:19:16 +0000 |
commit | 94d35aed87e442e1fc588b773544a841d3bc1e3c (patch) | |
tree | cf587dbbac679c87735d7d064ac70ec973ee44ae /security | |
parent | dce5efdcbf18f9ece1c761a5835784f086638a2f (diff) | |
download | ports-94d35aed87e442e1fc588b773544a841d3bc1e3c.tar.gz ports-94d35aed87e442e1fc588b773544a841d3bc1e3c.zip |
Notes
Diffstat (limited to 'security')
-rw-r--r-- | security/broccoli/Makefile | 12 | ||||
-rw-r--r-- | security/broccoli/pkg-plist | 5 |
2 files changed, 13 insertions, 4 deletions
diff --git a/security/broccoli/Makefile b/security/broccoli/Makefile index 3e7e63200287..b7be19ce3a4a 100644 --- a/security/broccoli/Makefile +++ b/security/broccoli/Makefile @@ -3,7 +3,7 @@ PORTNAME= broccoli PORTVERSION= 2.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MASTER_SITES= http://www.bro.org/downloads/release/ DISTNAME= bro-${PORTVERSION} @@ -11,10 +11,10 @@ DISTNAME= bro-${PORTVERSION} MAINTAINER= leres@ee.lbl.gov COMMENT= The Bro Client Communications Library -LICENSE= BSD +LICENSE= BSD3CLAUSE -BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison \ - swig:${PORTSDIR}/devel/swig13 +BUILD_DEPENDS= ${LOCALBASE}/bin/bison:${PORTSDIR}/devel/bison \ + ${LOCALBASE}/bin/swig:${PORTSDIR}/devel/swig13 LIB_DEPENDS= libGeoIP.so:${PORTSDIR}/net/GeoIP EXTRACT_AFTER_ARGS= ${DISTNAME}/aux/broccoli @@ -57,6 +57,10 @@ post-install:: # pkg_install needs PREFIX in order to make a package from STAGEDIR/PREFIX. @${MKDIR} ${PREFIX} .endif +.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) diff --git a/security/broccoli/pkg-plist b/security/broccoli/pkg-plist index 3348fb387c6b..cbcc4d4e7f24 100644 --- a/security/broccoli/pkg-plist +++ b/security/broccoli/pkg-plist @@ -8,7 +8,12 @@ lib/libbroccoli.so lib/libbroccoli.so.5 lib/libbroccoli.so.5.1.0 %%PYTHON%%%%PYTHON_SITELIBDIR%%/_broccoli_intern.so +%%PYTHON%%@exec ln -f %%PREFIX%%/%%PYTHON_SITELIBDIR%%/_broccoli_intern.so %%LOCALBASE%%/%%PYTHON_SITELIBDIR%%/_broccoli_intern.so +%%PYTHON%%@unexec rm -f %%LOCALBASE%%/%%PYTHON_SITELIBDIR%%/_broccoli_intern.so %%PYTHON%%%%PYTHON_SITELIBDIR%%/broccoli.py +%%PYTHON%%@exec ln -f %%PREFIX%%/%%PYTHON_SITELIBDIR%%/broccoli.py %%LOCALBASE%%/%%PYTHON_SITELIBDIR%%/broccoli.py +%%PYTHON%%@unexec rm -f %%LOCALBASE%%/%%PYTHON_SITELIBDIR%%/broccoli.py +%%PYTHON%%@unexec rm -f %%LOCALBASE%%/%%PYTHON_SITELIBDIR%%/broccoli.pyc %%RUBY%%%%RUBY_SITELIBDIR%%/Broccoli/connection.rb %%RUBY%%%%RUBY_SITELIBDIR%%/Broccoli/event.rb %%RUBY%%%%RUBY_SITELIBDIR%%/Broccoli/record.rb |