zeek/scripts/base/misc/installation.zeek.in
Christian Kreibich 84a09debe3 Add base/misc/installation.zeek, with Zeek installation directories
This makes several of the installation's main directories available to the
script layer.
2022-05-23 14:16:59 -07:00

25 lines
823 B
Text

##! 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@";
}