Skip to content

Commit

Permalink
security/ossec-hids*: local_rules.xml replaced with sample file
Browse files Browse the repository at this point in the history
PR:		266176
Reported by:	dominik.lisiak@bemsoft.pl (maintainer)
  • Loading branch information
BemSoft authored and fernape committed Oct 27, 2022
1 parent 49f731f commit 68d6aa0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions security/ossec-hids-agent/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
PORTREVISION= 0
COMMENT= Security tool to monitor and check logs and intrusions - agent installation
OSSEC_TYPE= agent

Expand Down
5 changes: 5 additions & 0 deletions security/ossec-hids-local/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
PORTREVISION?= 1
PKGNAMESUFFIX?= -${OSSEC_TYPE}
COMMENT?= Security tool to monitor and check logs and intrusions - local (standalone) installation
WWW= https://ossec.github.io
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion security/ossec-hids-local/pkg-plist-local
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion security/ossec-hids-local/pkg-plist-server
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions security/ossec-hids-local/scripts/plist.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 comments on commit 68d6aa0

Please sign in to comment.