Merge branch 'topic/christian/installation-dirs-in-scriptland'

* topic/christian/installation-dirs-in-scriptland:
  Add scripts.base.misc.installation btest
  Add base/misc/installation.zeek, with Zeek installation directories
  Ensure presence of Zeek-related directories in toplevel CMakeLists.txt
This commit is contained in:
Christian Kreibich 2022-05-24 11:55:37 -07:00
commit d4ecfa0a67
12 changed files with 112 additions and 8 deletions

View file

@ -81,4 +81,5 @@
@load base/misc/find-checksum-offloading
@load base/misc/find-filtered-trace
@load base/misc/installation
@load base/misc/version

View file

@ -0,0 +1,25 @@
##! This module collects properties of the Zeek installation.
##!
##! Directories are absolute and guaranteed to exist. Not all are necessarily in
##! operational use -- this depends on how you're running Zeek (as a standalone
##! process or clusterized, via zeekctl or the Management framework, etc).
##!
##! For details about Zeek's version, see the :zeek:see:`Version` module.
module Installation;
export {
## Zeek installation root directory.
const root_dir = "@ZEEK_ROOT_DIR@";
## The installation's configuration directory.
const etc_dir = "@ZEEK_ETC_INSTALL_DIR@";
## The installation's log directory.
const log_dir = "@ZEEK_LOG_DIR@";
## The installation's spool directory.
const spool_dir = "@ZEEK_SPOOL_DIR@";
## The installation's variable-state directory.
const state_dir = "@ZEEK_STATE_DIR@";
}