mirror of
https://github.com/zeek/zeek.git
synced 2025-10-01 22:28:20 +00:00
Ensure presence of Zeek-related directories in toplevel CMakeLists.txt
This establishes several of the Zeek installation's directories in CMakeLists.txt, and adds a new ZEEK_STATE_DIR (via `configure --state-dir`) for arbitrary Zeek-related variable state. It defaults to ZEEK_ROOT/var/lib. This leaves the existing, zeekctl-related ZEEK_LOCAL_STATE_DIR unchanged and does not use it. We'll likely deprecate it when removal of zeekctl approaches.
This commit is contained in:
parent
4d1b9f4a08
commit
9860b5686d
2 changed files with 36 additions and 7 deletions
12
configure
vendored
12
configure
vendored
|
@ -38,13 +38,12 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
|
|||
--localstatedir=PATH when using ZeekControl, path to store log files
|
||||
and run-time data (within log/ and spool/ subdirs)
|
||||
[PREFIX]
|
||||
--spooldir=PATH when using ZeekControl, path to store run-time data
|
||||
[PREFIX/spool]
|
||||
--logdir=PATH when using ZeekControl, path to store log file
|
||||
[PREFIX/logs]
|
||||
--spooldir=PATH directory for in-progress logs [PREFIX/spool]
|
||||
--statedir=PATH directory for variable state [PREFIX/var/lib]
|
||||
--logdir=PATH directory for finalized logs [PREFIX/logs]
|
||||
--libdir=PATH installation directory for library files [PREFIX/lib]
|
||||
--plugindir=PATH installation directory for plugins [LIBDIR/zeek/plugin]
|
||||
--conf-files-dir=PATH config files installation directory [PREFIX/etc]
|
||||
--conf-files-dir=PATH installation directory for config files [PREFIX/etc]
|
||||
--mandir=PATH installation path for man pages [PREFIX/share/man]
|
||||
--python-dir=PATH explicit installation directory for Python modules
|
||||
--python-prefix=PATH versioned installation directory for Python modules,
|
||||
|
@ -256,6 +255,9 @@ while [ $# -ne 0 ]; do
|
|||
--spooldir=*)
|
||||
append_cache_entry ZEEK_SPOOL_DIR PATH $optarg
|
||||
;;
|
||||
--statedir=*)
|
||||
append_cache_entry ZEEK_STATE_DIR PATH $optarg
|
||||
;;
|
||||
--logdir=*)
|
||||
append_cache_entry ZEEK_LOG_DIR PATH $optarg
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue