mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-25 17:38:53 +00:00
Packaging: Bundle lua files
This commit is contained in:
parent
aa337f169c
commit
39b1f64510
@ -14,3 +14,9 @@ set(DIGWATCH_LUA_MAIN "rule_loader.lua")
|
||||
configure_file(config_digwatch.h.in config_digwatch.h)
|
||||
|
||||
install(TARGETS digwatch DESTINATION bin)
|
||||
install(FILES lua/compiler.lua
|
||||
DESTINATION share/digwatch/lua)
|
||||
install(FILES lua/rule_loader.lua
|
||||
DESTINATION share/digwatch/lua)
|
||||
install(FILES lua/output.lua
|
||||
DESTINATION share/digwatch/lua)
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
#define DIGWATCH_VERSION "${DIGWATCH_VERSION}"
|
||||
|
||||
#define DIGWATCH_INSTALLATION_DIR "${CMAKE_INSTALL_PREFIX}"
|
||||
#define DIGWATCH_LUA_DIR "/usr/share/digwatch/lua/"
|
||||
|
||||
#define DIGWATCH_LUA_MAIN "${DIGWATCH_LUA_MAIN}"
|
||||
|
||||
|
@ -169,7 +169,7 @@ int digwatch_init(int argc, char **argv)
|
||||
int long_index = 0;
|
||||
string lua_main_filename;
|
||||
string output_name = "stdout";
|
||||
string lua_dir = DIGWATCH_INSTALLATION_DIR;
|
||||
string lua_dir = DIGWATCH_LUA_DIR;
|
||||
lua_State* ls = NULL;
|
||||
|
||||
static struct option long_options[] =
|
||||
|
Loading…
Reference in New Issue
Block a user