diff options
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}" ############################################################ |