build(rules): fix rules etc dir

Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
Co-authored-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
This commit is contained in:
Leonardo Di Donato 2020-09-10 09:57:52 +00:00 committed by poiana
parent 045cb4a45d
commit e0f0db96d3

View File

@ -37,8 +37,7 @@ if(DEFINED FALCO_COMPONENT)
COMPONENT "${FALCO_COMPONENT}" COMPONENT "${FALCO_COMPONENT}"
DESTINATION "${FALCO_ETC_DIR}" DESTINATION "${FALCO_ETC_DIR}"
RENAME "${FALCO_LOCAL_RULES_DEST_FILENAME}") RENAME "${FALCO_LOCAL_RULES_DEST_FILENAME}")
# Intentionally *not* installing application_rules.yaml. Not needed when falco is embedded in other projects.
# Intentionally *not* installing application_rules.yaml. Not needed when falco is embedded in other projects.
else() else()
install( install(
FILES falco_rules.yaml FILES falco_rules.yaml
@ -57,8 +56,8 @@ else()
install( install(
FILES application_rules.yaml FILES application_rules.yaml
DESTINATION "/etc/falco/rules.available" DESTINATION "${FALCO_ETC_DIR}/rules.available"
RENAME "${FALCO_APP_RULES_DEST_FILENAME}") RENAME "${FALCO_APP_RULES_DEST_FILENAME}")
install(DIRECTORY DESTINATION "/etc/falco/rules.d") install(DIRECTORY DESTINATION "${FALCO_ETC_DIR}/rules.d")
endif() endif()