package/zeek: new package
PATCH v2 1/1 package/zeek: new package
The Zeek Network Security Monitor
Zeek is a powerful network analysis framework that is much different from the typical IDS you may know. (Zeek is the new name for the long-established Bro system.)
---
Changes v1 -> v2:
- Bump to version 3.2.0
- Drop second and third patches (already in version)
- Update ZEEK_SITE
- Update indentation in hash file (two spaces)
- Update third party licences
DEVELOPERS | 1 + package/Config.in | 1 + ...rdinator.hpp-check-for-RUSAGE_THREAD.patch | 31 +++++++ package/zeek/Config.in | 44 ++++++++++ package/zeek/zeek.hash | 6 ++ package/zeek/zeek.mk | 80 +++++++++++++++++++ 6 files changed, 163 insertions(+) create mode 100644 package/zeek/0001-profiled_coordinator.hpp-check-for-RUSAGE_THREAD.patch create mode 100644 package/zeek/Config.in create mode 100644 package/zeek/zeek.hash create mode 100644 package/zeek/zeek.mk
DEVELOPERS +1 -0
@@ -922,6 +922,7 @@ F: package/tinycbor/ F: package/tinydtls/ F: package/tinymembench/ F: package/whois/ +F: package/zeek/ N: Fabrice Goucem <[email protected]> F: board/freescale/imx6ullevk/
package/Config.in +1 -0
@@ -2270,6 +2270,7 @@ endif source "package/xinetd/Config.in" source "package/xl2tp/Config.in" source "package/xtables-addons/Config.in" + source "package/zeek/Config.in" source "package/znc/Config.in" endmenu
package/zeek/0001-profiled_coordinator.hpp-check-for-RUSAGE_THREAD.patch new file +31 -0
@@ -0,0 +1,31 @@ +From af299e7ef8650be6b05152e91ca7a2a6fac3eb14 Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine <[email protected]> +Date: Fri, 31 Jan 2020 16:46:48 +0100 +Subject: [PATCH] profiled_coordinator.hpp: check for RUSAGE_THREAD + +RUSAGE_THREAD is not defined on uclibc, so use RUSAGE_SELF if +RUSAGE_THREAD is undefined + +Signed-off-by: Fabrice Fontaine <[email protected]> +[Retrieved from: +https://github.com/actor-framework/actor-framework/commit/af299e7ef8650be6b05152e91ca7a2a6fac3eb14] +--- + auxil/broker/caf/libcaf_core/caf/scheduler/profiled_coordinator.hpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/libcaf_core/caf/scheduler/profiled_coordinator.hpp b/libcaf_core/caf/scheduler/profiled_coordinator.hpp +index 3e091321f..7d7b8bad2 100644 +--- a/auxil/broker/caf/libcaf_core/caf/scheduler/profiled_coordinator.hpp ++++ b/auxil/broker/caf/libcaf_core/caf/scheduler/profiled_coordinator.hpp +@@ -113,7 +113,11 @@ class profiled_coordinator : public coordinator<Policy> { + m.mem = 0; + #else + ::rusage ru; ++#ifdef RUSAGE_THREAD + ::getrusage(RUSAGE_THREAD, &ru); ++#else ++ ::getrusage(RUSAGE_SELF, &ru); ++#endif + m.usr = to_usec(ru.ru_utime); + m.sys = to_usec(ru.ru_stime); + m.mem = ru.ru_maxrss;
package/zeek/Config.in new file +44 -0
44 lines not on this page · raw message
package/zeek/zeek.hash new file +6 -0
@@ -0,0 +1,6 @@ +# Locally computed: +sha256 af3ee5635140a54d305667983d38ea28f36457c9f2f8727e90ea3ef00b22c44f zeek-3.2.0.tar.gz + +# Hash for license files: +sha256 690b4eee9a01fe94edd5710a0bc026df96bb3b2403d26dc923921ec0116908b2 COPYING +sha256 f191fefe3f28a32e51499f57d700595946055518e00261ac398279639d5a5bea COPYING.3rdparty
package/zeek/zeek.mk new file +80 -0
80 lines not on this page · raw message
Signature · 1 line
2.28.0
PATCH v2 1/1 package/zeek: new package
Hello Fabrice,
Quoted 7 lines · On Sun, 6 Sep 2020 15:16:35 +0200 Fabrice Fontaine…
The Zeek Network Security Monitor
Zeek is a powerful network analysis framework that is much different from the typical IDS you may know. (Zeek is the new name for the long-established Bro system.)
Signed-off-by Fabrice Fontaine <[email protected]>
This doesn't build: building host-zeex requires host-libpcap:
-- Found ZLIB: /home/thomas/projets/buildroot/output/host/usr/lib/libz.so (found version "1.2.11") CMake Error at auxil/binpac/CMakeLists.txt:35 (message):
Could not find prerequisite package 'PCAP'
In fact, you don't express any dependency for host-zeex, which seems suspicious. Make sure to try building zeex in a minimal Docker container that contains just the minimal set of Buildroot dependencies. This is the only way to ensure that you have really expressed all host-zeex dependencies.
Also, another comment below.
package/zeek/zeek.mk line 44
Quoted 12 lines
package/zeek/zeek.mk new file +12
-0+ZEEK_CONF_OPTS = \ + -DBIFCL_EXE_PATH=$(HOST_ZEEK_BUILDDIR)/auxil/bifcl/bifcl \ + -DBINPAC_EXE_PATH=$(HOST_ZEEK_BUILDDIR)/auxil/binpac/src/binpac \ + -DBROKER_DISABLE_DOCS=ON \ + -DBROKER_DISABLE_TESTS=ON \ + -DINSTALL_AUX_TOOLS=ON \ + -DZEEK_ETC_INSTALL_DIR=/etc + +HOST_ZEEK_MAKE_OPTS = binpac bifcl +# Don't install host-zeek. We just need to build binpac and bifcl. +# Therefore only run 'true' and do nothing, not even the default action. +HOST_ZEEK_INSTALL_CMDS = true
Could you instead install just binpac and bifcl to $(HOST_DIR)/bin, and make the target zeex package use them ?
When possible, we try to avoid having one package reference the build directory of another package.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com