Bug 261254 - [PATCH] security/modsecurity3-nginx: update to 1.0.2_1 (nginx 1.20.2)
Summary: [PATCH] security/modsecurity3-nginx: update to 1.0.2_1 (nginx 1.20.2)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jochen Neumeister
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-16 19:53 UTC by Chris Moerz
Modified: 2022-02-17 22:04 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (joneum)


Attachments
patch for modsecurity3-nginx 1.0.2 (4.49 KB, patch)
2022-01-16 19:53 UTC, Chris Moerz
freebsd: maintainer-approval?
Details | Diff
Poudriere Log (90.27 KB, text/plain)
2022-01-16 19:54 UTC, Chris Moerz
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Moerz 2022-01-16 19:53:44 UTC
Created attachment 231054 [details]
patch for modsecurity3-nginx 1.0.2

Patch for bringing modsecurity3-nginx into working order with nginx 1.20.2 (current/latest in ports); unfortunately version check fails in the current constellation.

The patch fixes arguments to match with nginx and thus lets nginx load the module once again.

Poudriere log will follow in a moment.
Comment 1 Chris Moerz 2022-01-16 19:54:45 UTC
Created attachment 231055 [details]
Poudriere Log

Poudriere Log for 13.0x64
Comment 2 Chris Moerz 2022-01-16 19:57:14 UTC
I just realized - I should probably also post the root cause that led to this patch:

Installing stock modsecurity3-nginx with stock nginx - attempting to load modsecurity3-nginx module delivers error message:

root@host:/usr/local/etc/nginx # nginx -t
nginx: [emerg] module "/usr/local/libexec/nginx/ngx_http_modsecurity_module.so" version 1020000 instead of 1020002 in /usr/local/etc/nginx/nginx.conf:15
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-02-17 22:03:58 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=37a457233085b387d3a60e3dd802aceb42be6834

commit 37a457233085b387d3a60e3dd802aceb42be6834
Author:     Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2022-02-17 22:02:00 +0000
Commit:     Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2022-02-17 22:03:14 +0000

    security/modsecurity3-nginx: Update NGINX version

    PR:     261254
    Sponsored by:   Netzkommune GmbH

 security/modsecurity3-nginx/Makefile | 4 ++--
 security/modsecurity3-nginx/distinfo | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)