From 0be74a0aa8f1133bbcdaac1d51781604e3ff0d40 Mon Sep 17 00:00:00 2001 From: Christian Kreibich Date: Tue, 21 Jun 2022 18:00:25 -0700 Subject: [PATCH] Provide zeek-client by default The user so far had to configure with --enable-zeek-client to trigger installation of the client (from auxil/zeek-client). This flips it around to allow disabling the installation, and removes --enable-zeek-client from the Docker build in CI, where we've already been using it to allow the cluster testsuite to run tests with that image. --- .github/workflows/docker.yml | 2 +- CMakeLists.txt | 1 + configure | 9 +++++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 6c5b576389..27816d08fb 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest env: TEST_TAG: zeek:latest - CONFFLAGS: --generator=Ninja --build-type=Release --enable-zeek-client + CONFFLAGS: --generator=Ninja --build-type=Release steps: - uses: actions/checkout@v2 with: diff --git a/CMakeLists.txt b/CMakeLists.txt index fb5eb39561..e4bd4c330b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -809,6 +809,7 @@ message( "\nCXXFLAGS: ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${BuildType}}" "\nCPP: ${CMAKE_CXX_COMPILER}" "\n" + "\nzeek-client: ${INSTALL_ZEEK_CLIENT}" "\nZeekControl: ${INSTALL_ZEEKCTL}" "\nAux. Tools: ${INSTALL_AUX_TOOLS}" "\nBifCL: ${_bifcl_exe_path}" diff --git a/configure b/configure index 8d0ee612b3..01f5b9c90d 100755 --- a/configure +++ b/configure @@ -62,7 +62,6 @@ Usage: $0 [OPTION]... [VAR=VALUE]... --enable-perftools-debug use Google's perftools for debugging --enable-static-binpac build binpac statically (ignored if --with-binpac is specified) --enable-static-broker build Broker statically (ignored if --with-broker is specified) - --enable-zeek-client install the Zeek cluster management client (experimental) --disable-archiver don't build or install zeek-archiver tool --disable-auxtools don't build or install auxiliary tools --disable-broker-tests don't try to build Broker unit tests @@ -71,6 +70,7 @@ Usage: $0 [OPTION]... [VAR=VALUE]... --disable-cpp-tests don't build Zeek's C++ unit tests --disable-python don't try to build python bindings for Broker --disable-spicy don't include Spicy + --disable-zeek-client don't install Zeek cluster management client --disable-zeekctl don't install ZeekControl --disable-zkg don't install zkg @@ -173,6 +173,7 @@ append_cache_entry INSTALL_AUX_TOOLS BOOL true append_cache_entry INSTALL_BTEST BOOL true append_cache_entry INSTALL_BTEST_PCAPS BOOL true append_cache_entry INSTALL_ZEEK_ARCHIVER BOOL true +append_cache_entry INSTALL_ZEEK_CLIENT BOOL true append_cache_entry INSTALL_ZEEKCTL BOOL true append_cache_entry INSTALL_ZKG BOOL true append_cache_entry CPACK_SOURCE_IGNORE_FILES STRING @@ -293,9 +294,6 @@ while [ $# -ne 0 ]; do --enable-static-broker) append_cache_entry BUILD_STATIC_BROKER BOOL true ;; - --enable-zeek-client) - append_cache_entry INSTALL_ZEEK_CLIENT BOOL true - ;; --disable-archiver) append_cache_entry INSTALL_ZEEK_ARCHIVER BOOL false ;; @@ -321,6 +319,9 @@ while [ $# -ne 0 ]; do --disable-spicy) append_cache_entry DISABLE_SPICY BOOL true ;; + --disable-zeek-client) + append_cache_entry INSTALL_ZEEK_CLIENT BOOL false + ;; --disable-zeekctl) append_cache_entry INSTALL_ZEEKCTL BOOL false ;;