Summary: | security/ossec-hids-server 3.6.0_1 rc script fails to generate ossec.conf agent.conf | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Alexander <sa.inbox> | ||||
Component: | Individual Port(s) | Assignee: | Palle Girgensohn <girgen> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | dominik.lisiak, girgen, gmelis, horst.kapfenberger, rusoo7, sa.inbox, wagnorog | ||||
Priority: | --- | Flags: | sa.inbox:
maintainer-feedback+
|
||||
Version: | Latest | ||||||
Hardware: | amd64 | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Alexander
2021-06-11 07:17:00 UTC
Solved file /usr/local/ossec-hids/bin/config/ossec-conf function remove_empty_lines() Need to change "sed '/^\s*$/d'" to "sed '/^[[:space:]]*$/d'" (In reply to Alexander from comment #0) (In reply to Vitaliy Evsukov from comment #1) Can you confirm this is for FreeBSD 13.0? It seems the 'sed' has been changed there. *** Bug 256650 has been marked as a duplicate of this bug. *** (In reply to Dominik Lisiak from comment #2) Yes. Last update. (In reply to Dominik Lisiak from comment #2) I confirm. This issue affects FreeBSD 13. Created attachment 226082 [details]
ossec-hids-3.6.0_2.diff
Attached patch to fix the described bug in FreeBSD 13.0 and still be compatible with FreeBSD 12.2.
- No binary changes
- Replaced all 'sed' invocations with 'sed -E' and adjusted regexes accordingly
- ossec-hids-local-config, ossec-hids-agent-config, ossec-hids-server-config updated to 3.6.0_2
- ossec-hids, ossec-hids-local, ossec-hids-agent, ossec-hids-server stay at 3.6.0_1
Tested with 'poudriere' and in live environments on FreeBSD 13.0 and 12.2.
If you can't wait for the patch to be committed you can use public repo: https://bemsoft.pl/git/freebsd-ports/ossec with portshaker. *** Bug 257617 has been marked as a duplicate of this bug. *** A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=329f3e8d8b5441522a078c74e594a14651a00075 commit 329f3e8d8b5441522a078c74e594a14651a00075 Author: Palle Girgensohn <girgen@FreeBSD.org> AuthorDate: 2022-06-17 08:07:25 +0000 Commit: Palle Girgensohn <girgen@FreeBSD.org> CommitDate: 2022-06-17 08:28:22 +0000 security/ossec-hids-*: fix broken config scripts - No binary changes - Replaced all 'sed' invocations with 'sed -E' and adjusted regexes accordingly PR: 256545 Submitted by: Dominik Lisiak (maintainer) security/ossec-hids-local-config/Makefile | 1 + security/ossec-hids-local-config/files/agent-conf.in | 4 ++-- security/ossec-hids-local-config/files/ossec-conf.in | 6 +++--- security/ossec-hids-local-config/scripts/plist.sh | 4 ++-- security/ossec-hids-local-config/scripts/template-to-agent.sh | 5 +++-- security/ossec-hids-local-config/scripts/template-to-ossec.sh | 8 +++++--- security/ossec-hids-local/files/ossec-hids.in | 2 +- security/ossec-hids-local/scripts/plist.sh | 4 ++-- 8 files changed, 19 insertions(+), 15 deletions(-) Committed. Thanks! |