mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 03:58:20 +00:00
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:
commit
d4ecfa0a67
12 changed files with 112 additions and 8 deletions
|
@ -81,4 +81,5 @@
|
|||
|
||||
@load base/misc/find-checksum-offloading
|
||||
@load base/misc/find-filtered-trace
|
||||
@load base/misc/installation
|
||||
@load base/misc/version
|
||||
|
|
25
scripts/base/misc/installation.zeek.in
Normal file
25
scripts/base/misc/installation.zeek.in
Normal 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@";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue