mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-21 18:01:58 +00:00
Merge pull request #114 from draios/configurable-rules-filename
Install falco rules with configurable filename.
This commit is contained in:
commit
e717e3e3e0
@ -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