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.
Today the Lynis author suggested to fix this upstream making this freebsd portpatch obsolete. Still investigating that before I close this bug.
Thanks a lot, I'll have a look!
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.
Lynis 3.1.2 has been released: https://github.com/CISOfy/lynis/releases/tag/3.1.2
Sorry for not working on this for so long. As far as I can tell version 3.1.2 everything works fine on FreeBSD?
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.
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
I just updated the port to version 3.1.4 (at last). Sorry that it took so long.