Bug 278818 - security/lynis: improve FreeBSD compatibility
Summary: security/lynis: improve FreeBSD compatibility
Status: Closed FIXED
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: 2025-02-07 22:28 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.
Comment 4 Andre Rikkert de Koe - ARK-ICT 2024-10-03 07:38:07 UTC
Lynis 3.1.2 has been released: https://github.com/CISOfy/lynis/releases/tag/3.1.2
Comment 5 Lars Engels freebsd_committer freebsd_triage 2024-12-12 10:44:13 UTC
Sorry for not working on this for so long.


As far as I can tell version 3.1.2 everything works fine on FreeBSD?
Comment 6 Andre Rikkert de Koe - ARK-ICT 2024-12-13 08:17:18 UTC
Hi Lars, only for certain plugins in certain situations I can still find small bugs in 3.1.2 on freebsd, but not worth the freebsd specific patch in ports tree.
So please upgrade lynis port from 3.1.1. to 3.1.2 and close this issue.
Thanks.
Comment 7 Andre Rikkert de Koe - ARK-ICT 2024-12-27 13:42:07 UTC
Just tested it with Lynis 3.1.3 : https://github.com/CISOfy/lynis/releases/tag/3.1.3
With same good results as Lynix 3.1.2, so please upgrade the Lynis port to 3.1.3
Comment 8 Lars Engels freebsd_committer freebsd_triage 2025-02-07 22:28:40 UTC
I just updated the port to version 3.1.4 (at last).

Sorry that it took so long.
Comment 9 Lars Engels freebsd_committer freebsd_triage 2025-02-07 22:28:46 UTC
I just updated the port to version 3.1.4 (at last).

Sorry that it took so long.