Created attachment 183907 [details] nginx-mod_security-devel.diff Hi, The attached patch adds support for mod_security version 3 to nginx. ModSecurity v3 is the next version of ModSecurity currently under development. It is developed as a library independent of webservers and can be used from different connectors such as the ModSecurity-nginx module used by this port/patch. This patch depends on bug #220352 which adds the actual ModSecurity v3 port. Regards, Marius
Created attachment 184795 [details] nginx-1.12.1-mod_security-devel.patch Updated patch for nginx 1.12.1 is attached.
testbuilds@work
Testbuilds OK on 12a, 11.0a, 10.3i
Created attachment 184953 [details] nginx-1.12.1-mod_security-devel.patch In the previous patch the modsecurity 3 module was add as a dynamic module instead of a static by mistake. This new patch fixes that.
A commit references this bug: Author: joneum Date: Fri Aug 4 11:04:18 UTC 2017 New revision: 447325 URL: https://svnweb.freebsd.org/changeset/ports/447325 Log: - Add mod_security v3 support This update adds support for mod_security version 3 to nginx. ModSecurity v3 is the next version of ModSecurity currently under development. It is developed as a library independent of webservers and can be used from different connectors such as the ModSecurity-nginx module used by this port PR: 220353 Reported by: Marius Halden <marius.h@lden.org> Approved by: miwi (mentor) Differential Revision: https://reviews.freebsd.org/D11778 Changes: head/www/nginx/Makefile head/www/nginx/distinfo
Committed, thanks :-)
Created attachment 185497 [details] modsec-nginx-fix.patch Turns out this is actually not solved. The patch was updated before it was committed and the updated patch introduced a typo for GH_ACCOUNT in GH_TUPLE breaking the MODSECURITY_DEVEL option. GH_ACCOUNT should be "SpiderLabs" NOT "SiderLaps" as it currently is. Please see the attached patch, which fixes this and also turns the modsecurity-devel module into a statically linked module instead og a dynamic module.
As mentioned in comment #7 there was introduced an error when the patch was changed.
ups, thanks for the report.
A commit references this bug: Author: joneum Date: Sat Aug 19 08:44:30 UTC 2017 New revision: 448290 URL: https://svnweb.freebsd.org/changeset/ports/448290 Log: - www/nginx: set correct GH_TUPLE for modsecurity-devel PR: 220353 Reported by: Marius Halden <marius.h@lden.org> Approved by: miwi (mentor) Differential Revision: https://reviews.freebsd.org/D12052 Changes: head/www/nginx/Makefile