diff options
author | Dominik Lisiak <dominik.lisiak@bemsoft.pl> | 2018-11-04 18:23:22 +0100 |
---|---|---|
committer | Dominik Lisiak <dominik.lisiak@bemsoft.pl> | 2018-11-04 18:23:22 +0100 |
commit | e5c91fca2a55a6a37273f474a32c0d82650680a1 (patch) | |
tree | 0e7d0863861d324fc13da0010ecfdead33d0a9bd /security/ossec-hids-local-config/Makefile | |
parent | Added furthe help messages and comments. (diff) | |
download | ossec-e5c91fca2a55a6a37273f474a32c0d82650680a1.tar.xz |
Made profiles more coarse grained.
Diffstat (limited to 'security/ossec-hids-local-config/Makefile')
-rw-r--r-- | security/ossec-hids-local-config/Makefile | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/security/ossec-hids-local-config/Makefile b/security/ossec-hids-local-config/Makefile index df82b84..01cf6c6 100644 --- a/security/ossec-hids-local-config/Makefile +++ b/security/ossec-hids-local-config/Makefile @@ -172,13 +172,12 @@ ${conf_group}_ALL_OPTIONS+= ${option} ############################################################ +CONFIG_PROFILES= .for conf_group in ${CONF_GROUPS} . if !empty(${conf_group}_PROFILE) . if ${OSSEC_TYPE} == agent -. if empty(CLIENT_PROFILES) -CLIENT_PROFILES:= ${${conf_group}_PROFILE} -. else -CLIENT_PROFILES:= ${CLIENT_PROFILES}, ${${conf_group}_PROFILE} +. if !${CONFIG_PROFILES:M${${conf_group}_PROFILE}} +CONFIG_PROFILES+= ${${conf_group}_PROFILE} . endif . endif SUB_LIST+= ${conf_group}_PROFILE=${${conf_group}_PROFILE} @@ -186,10 +185,8 @@ SUB_LIST+= ${conf_group}_PROFILE=${${conf_group}_PROFILE} . for option in ${${conf_group}_ALL_OPTIONS} . if !empty(${option}_PROFILE) . if ${OSSEC_TYPE} == agent -. if empty(CLIENT_PROFILES) -CLIENT_PROFILES:= ${${option}_PROFILE} -. else -CLIENT_PROFILES:= ${CLIENT_PROFILES}, ${${option}_PROFILE} +. if !${CONFIG_PROFILES:M${${option}_PROFILE}} +CONFIG_PROFILES+= ${${option}_PROFILE} . endif . endif SUB_LIST+= ${option}_PROFILE=${${option}_PROFILE} @@ -197,7 +194,14 @@ SUB_LIST+= ${option}_PROFILE=${${option}_PROFILE} . endfor .endfor -SUB_LIST+= CLIENT_PROFILES="${CLIENT_PROFILES}" +.for profile in ${CONFIG_PROFILES} +. if empty(CONFIG_PROFILE_VALUE) +CONFIG_PROFILE_VALUE:= ${profile} +. else +CONFIG_PROFILE_VALUE:= ${CONFIG_PROFILE_VALUE}, ${profile} +. endif +.endfor +SUB_LIST+= CONFIG_PROFILES="${CONFIG_PROFILE_VALUE}" ############################################################ |