Skip to content
Snippets Groups Projects
Commit 68d6aa00 authored by Dominik Lisiak's avatar Dominik Lisiak Committed by Fernando Apesteguía
Browse files

security/ossec-hids*: local_rules.xml replaced with sample file

PR:		266176
Reported by:	dominik.lisiak@bemsoft.pl (maintainer)
parent 49f731f0
No related branches found
No related tags found
No related merge requests found
PORTREVISION= 0
COMMENT= Security tool to monitor and check logs and intrusions - agent installation
OSSEC_TYPE= agent
......
PORTREVISION?= 1
PKGNAMESUFFIX?= -${OSSEC_TYPE}
COMMENT?= Security tool to monitor and check logs and intrusions - local (standalone) installation
WWW= https://ossec.github.io
......@@ -139,6 +140,10 @@ SAMPLE_FILES= ${OSSEC_HOME}/etc/local_internal_options.conf \
${OSSEC_HOME}/active-response/bin/ossec-slack.sh \
${OSSEC_HOME}/active-response/bin/ossec-tweeter.sh
.if ${OSSEC_TYPE} != agent
SAMPLE_FILES+= ${OSSEC_HOME}/rules/local_rules.xml
.endif
.if empty(USER)
USER=$$(${ID} -un)
.endif
......
......@@ -119,7 +119,7 @@
@(,ossec,0640) %%OSSEC_HOME%%/rules/last_rootlogin_rules.xml
@(,ossec,0640) %%OSSEC_HOME%%/rules/lighttpd_rules.xml
@(,ossec,0640) %%OSSEC_HOME%%/rules/linux_usbdetect_rules.xml
@(,ossec,0640) %%OSSEC_HOME%%/rules/local_rules.xml
@sample(,ossec,0640) %%OSSEC_HOME%%/rules/local_rules.xml.sample
@(,ossec,0640) %%OSSEC_HOME%%/rules/mailscanner_rules.xml
@(,ossec,0640) %%OSSEC_HOME%%/rules/mcafee_av_rules.xml
@(,ossec,0640) %%OSSEC_HOME%%/rules/mhn_cowrie_rules.xml
......
......@@ -119,7 +119,7 @@
@(,ossec,0640) %%OSSEC_HOME%%/rules/last_rootlogin_rules.xml
@(,ossec,0640) %%OSSEC_HOME%%/rules/lighttpd_rules.xml
@(,ossec,0640) %%OSSEC_HOME%%/rules/linux_usbdetect_rules.xml
@(,ossec,0640) %%OSSEC_HOME%%/rules/local_rules.xml
@sample(,ossec,0640) %%OSSEC_HOME%%/rules/local_rules.xml.sample
@(,ossec,0640) %%OSSEC_HOME%%/rules/mailscanner_rules.xml
@(,ossec,0640) %%OSSEC_HOME%%/rules/mcafee_av_rules.xml
@(,ossec,0640) %%OSSEC_HOME%%/rules/mhn_cowrie_rules.xml
......
......@@ -33,3 +33,7 @@ sample_paths="
/active-response/bin/ossec-pagerduty.sh.sample
/active-response/bin/ossec-slack.sh.sample
/active-response/bin/ossec-tweeter.sh.sample"
if [ "${OSSEC_TYPE}" != "agent" ]; then
sample_paths="${sample_paths}
/rules/local_rules.xml.sample"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment