diff options
author | Matthew Brewer <tomboy64@sina.cn> | 2016-03-11 15:14:18 +0100 |
---|---|---|
committer | Ian Delaney <idella4@gentoo.org> | 2016-03-19 19:19:20 +0800 |
commit | b802dd69107a7765fd6094f18a65060e12746eee (patch) | |
tree | 3f50eae8754d613282d94333e8d50a6bb0b14477 /net-analyzer/bro/files/bro-2.4.1-fix-python-install-dir.patch | |
parent | net-analyzer/ipsumdump: initial ebuild, version 1.85 (diff) | |
download | gentoo-b802dd69107a7765fd6094f18a65060e12746eee.tar.gz gentoo-b802dd69107a7765fd6094f18a65060e12746eee.tar.bz2 gentoo-b802dd69107a7765fd6094f18a65060e12746eee.zip |
net-analyzer/bro: initial ebuild, version 2.4.1
Bro is a highly configurable network analysis framework and IDS.
Package-Manager: portage-2.2.27
RepoMan-Options: --ignore-arches
Closes: https://github.com/gentoo/gentoo/pull/1069
Diffstat (limited to 'net-analyzer/bro/files/bro-2.4.1-fix-python-install-dir.patch')
-rw-r--r-- | net-analyzer/bro/files/bro-2.4.1-fix-python-install-dir.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/net-analyzer/bro/files/bro-2.4.1-fix-python-install-dir.patch b/net-analyzer/bro/files/bro-2.4.1-fix-python-install-dir.patch new file mode 100644 index 000000000000..66d41ed4f47e --- /dev/null +++ b/net-analyzer/bro/files/bro-2.4.1-fix-python-install-dir.patch @@ -0,0 +1,37 @@ +--- a/aux/broker/bindings/python/CMakeLists.txt 2016-03-17 23:26:42.707456012 +0100 ++++ b/aux/broker/bindings/python/CMakeLists.txt 2016-03-17 23:28:27.714453166 +0100 +@@ -52,19 +52,21 @@ + swig_add_module(pybroker python pybroker.i) + swig_link_libraries(pybroker ${libbroker} ${PYTHON_LIBRARIES}) + +-if ( BROKER_PYTHON_PREFIX ) +- set(pyver ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}) +- set(PY_MOD_INSTALL_DIR +- ${BROKER_PYTHON_PREFIX}/lib/python${pyver}/site-packages) +-elseif ( BROKER_PYTHON_HOME ) +- set(PY_MOD_INSTALL_DIR ${BROKER_PYTHON_HOME}/lib/python) +-else () +- execute_process(COMMAND ${PYTHON_EXECUTABLE} -c +- "from distutils.sysconfig import get_python_lib; print get_python_lib()" +- OUTPUT_VARIABLE PYTHON_SITE_PACKAGES +- OUTPUT_STRIP_TRAILING_WHITESPACE) +- set(PY_MOD_INSTALL_DIR ${PYTHON_SITE_PACKAGES}) +-endif () ++if ( NOT PY_MOD_INSTALL_DIR ) ++ if ( BROKER_PYTHON_PREFIX ) ++ set(pyver ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}) ++ set(PY_MOD_INSTALL_DIR ++ ${BROKER_PYTHON_PREFIX}/lib/python${pyver}/site-packages) ++ elseif ( BROKER_PYTHON_HOME ) ++ set(PY_MOD_INSTALL_DIR ${BROKER_PYTHON_HOME}/lib/python) ++ else () ++ execute_process(COMMAND ${PYTHON_EXECUTABLE} -c ++ "from distutils.sysconfig import get_python_lib; print get_python_lib()" ++ OUTPUT_VARIABLE PYTHON_SITE_PACKAGES ++ OUTPUT_STRIP_TRAILING_WHITESPACE) ++ set(PY_MOD_INSTALL_DIR ${PYTHON_SITE_PACKAGES}) ++ endif ( BROKER_PYTHON_PREFIX ) ++endif ( NOT PY_MOD_INSTALL_DIR ) + + message(STATUS "Python bindings will be built and installed to: " + ${PY_MOD_INSTALL_DIR}) |