mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-30 08:32:12 +00:00
Install falco rules with configurable filename.
New variable FALCO_RULES_DEST_FILENAME allows the rules file to be installed with a different filename. Not set in the falco repo, but in the agent repo it's installed as falco_rules.default.yaml.
This commit is contained in:
parent
e49c3e68e7
commit
fa4c2948bf
@ -2,12 +2,18 @@ if(NOT DEFINED FALCO_ETC_DIR)
|
|||||||
set(FALCO_ETC_DIR "/etc")
|
set(FALCO_ETC_DIR "/etc")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(NOT DEFINED FALCO_RULES_DEST_FILENAME)
|
||||||
|
set(FALCO_RULES_DEST_FILENAME "falco_rules.yaml")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(DEFINED FALCO_COMPONENT)
|
if(DEFINED FALCO_COMPONENT)
|
||||||
install(FILES falco_rules.yaml
|
install(FILES falco_rules.yaml
|
||||||
COMPONENT "${FALCO_COMPONENT}"
|
COMPONENT "${FALCO_COMPONENT}"
|
||||||
DESTINATION "${FALCO_ETC_DIR}")
|
DESTINATION "${FALCO_ETC_DIR}"
|
||||||
|
RENAME "${FALCO_RULES_DEST_FILENAME}")
|
||||||
else()
|
else()
|
||||||
install(FILES falco_rules.yaml
|
install(FILES falco_rules.yaml
|
||||||
DESTINATION "${FALCO_ETC_DIR}")
|
DESTINATION "${FALCO_ETC_DIR}"
|
||||||
|
RENAME "${FALCO_RULES_DEST_FILENAME}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user