1 |
commit: 82390375869f024db57e35c815acb3379ca71709 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 20 15:51:42 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 20 16:35:36 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82390375 |
7 |
|
8 |
net-analyzer/bro: Fix multiple QA issues |
9 |
|
10 |
Closes: https://bugs.gentoo.org/600740 |
11 |
Closes: https://bugs.gentoo.org/654504 |
12 |
Closes: https://bugs.gentoo.org/654506 |
13 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
14 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
15 |
|
16 |
net-analyzer/bro/bro-2.4.1-r2.ebuild | 39 +++++++++++++++++++++++------------- |
17 |
net-analyzer/bro/metadata.xml | 2 +- |
18 |
2 files changed, 26 insertions(+), 15 deletions(-) |
19 |
|
20 |
diff --git a/net-analyzer/bro/bro-2.4.1-r2.ebuild b/net-analyzer/bro/bro-2.4.1-r2.ebuild |
21 |
index 5170d3b253a..68ee260dc77 100644 |
22 |
--- a/net-analyzer/bro/bro-2.4.1-r2.ebuild |
23 |
+++ b/net-analyzer/bro/bro-2.4.1-r2.ebuild |
24 |
@@ -1,4 +1,4 @@ |
25 |
-# Copyright 1999-2018 Gentoo Foundation |
26 |
+# Copyright 1999-2018 Gentoo Authors |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
|
29 |
EAPI=6 |
30 |
@@ -15,13 +15,14 @@ SLOT="0" |
31 |
KEYWORDS="~amd64 ~x86" |
32 |
IUSE="+broccoli +broctl -broker curl debug geoip ipv6 jemalloc +python -ruby tcmalloc static-libs +tools" |
33 |
|
34 |
-RDEPEND="app-shells/bash:0 |
35 |
- dev-libs/openssl:0 |
36 |
+RDEPEND=" |
37 |
+ app-shells/bash:0 |
38 |
+ dev-libs/openssl:0= |
39 |
net-analyzer/ipsumdump |
40 |
net-dns/bind-tools |
41 |
net-libs/libpcap |
42 |
sys-libs/zlib |
43 |
- broker? ( =dev-libs/actor-framework-0.13.2* ) |
44 |
+ broker? ( dev-libs/actor-framework:0/13.2 ) |
45 |
broctl? ( virtual/mta ) |
46 |
curl? ( net-misc/curl ) |
47 |
geoip? ( dev-libs/geoip ) |
48 |
@@ -29,16 +30,23 @@ RDEPEND="app-shells/bash:0 |
49 |
jemalloc? ( dev-libs/jemalloc ) |
50 |
python? ( ${PYTHON_DEPS} ) |
51 |
ruby? ( >=dev-lang/ruby-1.8:= ) |
52 |
- tcmalloc? ( dev-util/google-perftools )" |
53 |
+ tcmalloc? ( dev-util/google-perftools ) |
54 |
+" |
55 |
DEPEND="${RDEPEND} |
56 |
>=dev-lang/swig-3.0.3 |
57 |
- dev-lang/perl" |
58 |
+ dev-lang/perl |
59 |
+" |
60 |
|
61 |
-REQUIRED_USE="broker? ( python ) |
62 |
+REQUIRED_USE=" |
63 |
+ broker? ( python ) |
64 |
broctl? ( python ) |
65 |
- python? ( ${PYTHON_REQUIRED_USE} )" |
66 |
-PATCHES=( "${FILESDIR}/bro-2.4.1-remove-unnecessary-remove.patch" |
67 |
- "${FILESDIR}/bro-2.4.1-fix-python-install-dir.patch" ) |
68 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
69 |
+" |
70 |
+ |
71 |
+PATCHES=( |
72 |
+ "${FILESDIR}/bro-2.4.1-remove-unnecessary-remove.patch" |
73 |
+ "${FILESDIR}/bro-2.4.1-fix-python-install-dir.patch" |
74 |
+) |
75 |
|
76 |
pkg_setup() { |
77 |
use python && python-single-r1_pkg_setup |
78 |
@@ -57,10 +65,6 @@ src_configure() { |
79 |
-DDISABLE_PERFTOOLS=$(usex tcmalloc false true) |
80 |
-DENABLE_BROKER=$(usex broker true false) |
81 |
-DENABLE_CXX11=$(usex broker true false) |
82 |
- -DBROKER_PYTHON_PREFIX="/usr" |
83 |
- -DLIBCAF_INCLUDE_DIR_CORE="/usr/include/" |
84 |
- -DLIBCAF_INCLUDE_DIR_IO="/usr/include/" |
85 |
- -DLIBCAF_ROOT_DIR="/usr" |
86 |
-DENABLE_STATIC=$(usex static-libs true false) |
87 |
-DINSTALL_BROCCOLI=$(usex broccoli true false) |
88 |
-DINSTALL_BROCTL=$(usex broctl true false) |
89 |
@@ -77,3 +81,10 @@ src_configure() { |
90 |
|
91 |
cmake-utils_src_configure |
92 |
} |
93 |
+ |
94 |
+src_install() { |
95 |
+ cmake-utils_src_install |
96 |
+ keepdir /var/log/bro /var/spool/bro/tmp |
97 |
+ # Doesn't exist |
98 |
+ rm -f "${ED}"/usr/share/broctl/scripts/broctl-config.sh |
99 |
+} |
100 |
|
101 |
diff --git a/net-analyzer/bro/metadata.xml b/net-analyzer/bro/metadata.xml |
102 |
index 4928e7d79a7..61a2fa9e905 100644 |
103 |
--- a/net-analyzer/bro/metadata.xml |
104 |
+++ b/net-analyzer/bro/metadata.xml |
105 |
@@ -11,7 +11,7 @@ |
106 |
<flag name="python">Enable Python bindings</flag> |
107 |
<flag name="ruby">Enable Ruby bindings (deprecated)</flag> |
108 |
<flag name="tcmalloc">Enable Google's Performance Analysis Tools</flag> |
109 |
- <flag name="tools">Small auxiliary tools for Bro</flag> |
110 |
+ <flag name="tools">Auxiliary tools for Bro: adtrace, bro-cut, devel-tools, rst</flag> |
111 |
</use> |
112 |
<longdescription lang="en">Bro is a powerful network analysis framework that is much different from the typical IDS you may know. |
113 |
</longdescription> |