Bug 278818 - security/lynis: improve FreeBSD compatibility
Summary: security/lynis: improve FreeBSD compatibility
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Lars Engels
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-06 18:37 UTC by Andre Rikkert de Koe - ARK-ICT
Modified: 2024-05-11 14:37 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (lme)
freebsd-ports: maintainer-feedback?


Attachments
improved FreeBSD compatibility (6.27 KB, patch)
2024-05-06 18:37 UTC, Andre Rikkert de Koe - ARK-ICT
freebsd-ports: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Rikkert de Koe - ARK-ICT 2024-05-06 18:37:56 UTC
Created attachment 250493 [details]
improved FreeBSD compatibility

Add GNU grep and GNU sed as optional dependency and use them (only) when found.
This will fix some compatibility issues regarding syntas.
Also the database test script is adapted to make it find the postgres DB's in default FreeBSD location.
Comment 1 Andre Rikkert de Koe - ARK-ICT 2024-05-08 12:05:55 UTC
Today the Lynis author suggested to fix this upstream making this freebsd portpatch obsolete. Still investigating that before I close this bug.
Comment 2 Lars Engels freebsd_committer freebsd_triage 2024-05-09 19:37:18 UTC
Thanks a lot, I'll have a look!
Comment 3 Andre Rikkert de Koe - ARK-ICT 2024-05-11 14:37:55 UTC
Database tests regarding PostgreSQL have been fixed upstream.
GNU solution has been partly fixed upstream.
But not in this release yet anyway, so for lynis portversion 3.1.1 I still regard this portpatch as applicable.