git: 67b99bc12c8f - main - www/nginx-module-lua: Update to 0.10.31

From: Jochen Neumeister <joneum_at_FreeBSD.org>
Date: Thu, 15 Oct 2026 11:17:44 UTC
The branch main has been updated by joneum:

URL: https://cgit.FreeBSD.org/ports/commit/?id=67b99bc12c8f596c6d0a32a77debb2698bf7ddc1

commit 67b99bc12c8f596c6d0a32a77debb2698bf7ddc1
Author:     Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2026-10-15 11:14:52 +0000
Commit:     Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2026-10-15 11:15:55 +0000

    www/nginx-module-lua: Update to 0.10.31
    
    Two stable releases at once, 0.10.29 is from 2025.
    
    All three local patches are gone: 0.10.31 guards the freenginx cases
    upstream, in the client hello handler, in the subrequest start time and in
    ngx_http_lua_time.
    
    Sponsored by:   Netzkommune GmbH
---
 www/nginx-module-lua/Makefile                         |  3 +--
 www/nginx-module-lua/distinfo                         |  6 +++---
 .../patch-src_ngx__http__lua__ssl__client__helloby.c  | 11 -----------
 .../files/patch-src_ngx__http__lua__subrequest.c      | 16 ----------------
 .../files/patch-src_ngx__http__lua__time.c            | 19 -------------------
 www/nginx-module-lua/pkg-plist                        |  4 ++++
 6 files changed, 8 insertions(+), 51 deletions(-)

diff --git a/www/nginx-module-lua/Makefile b/www/nginx-module-lua/Makefile
index 75d11699c0b1..771ecfc757ff 100644
--- a/www/nginx-module-lua/Makefile
+++ b/www/nginx-module-lua/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	nginx-module-lua
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.10.29
-PORTREVISION=	4
+DISTVERSION=	0.10.31
 CATEGORIES=	www
 
 MAINTAINER=	joneum@FreeBSD.org
diff --git a/www/nginx-module-lua/distinfo b/www/nginx-module-lua/distinfo
index 675fc120cf5f..9907a67a4df8 100644
--- a/www/nginx-module-lua/distinfo
+++ b/www/nginx-module-lua/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1787124505
-SHA256 (openresty-lua-nginx-module-v0.10.29_GH0.tar.gz) = ca2c2122b909529bf9d1a89e9a5763835a2bd2629def8cb279c550f638f0a78f
-SIZE (openresty-lua-nginx-module-v0.10.29_GH0.tar.gz) = 892502
+TIMESTAMP = 1792057131
+SHA256 (openresty-lua-nginx-module-v0.10.31_GH0.tar.gz) = 123d8203e74bf66f71437c7b3fa070bf8d24e6d332981bc18dc2db43303cc741
+SIZE (openresty-lua-nginx-module-v0.10.31_GH0.tar.gz) = 921425
diff --git a/www/nginx-module-lua/files/patch-src_ngx__http__lua__ssl__client__helloby.c b/www/nginx-module-lua/files/patch-src_ngx__http__lua__ssl__client__helloby.c
deleted file mode 100644
index f0203f39dc63..000000000000
--- a/www/nginx-module-lua/files/patch-src_ngx__http__lua__ssl__client__helloby.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/ngx_http_lua_ssl_client_helloby.c.orig	2025-10-24 15:04:57 UTC
-+++ src/ngx_http_lua_ssl_client_helloby.c
-@@ -220,7 +220,7 @@ ngx_http_lua_ssl_client_hello_handler(ngx_ssl_conn_t *
- 
-     dd("first time");
- 
--#if (nginx_version > 1029001)
-+#if (nginx_version > 1029001) && !defined(freenginx)
-     /* see commit 0373fe5d98c1515640 for more details */
-     rc = ngx_ssl_client_hello_callback(ssl_conn, al, arg);
- 
diff --git a/www/nginx-module-lua/files/patch-src_ngx__http__lua__subrequest.c b/www/nginx-module-lua/files/patch-src_ngx__http__lua__subrequest.c
deleted file mode 100644
index 199bf1660bf1..000000000000
--- a/www/nginx-module-lua/files/patch-src_ngx__http__lua__subrequest.c
+++ /dev/null
@@ -1,16 +0,0 @@
---- src/ngx_http_lua_subrequest.c.orig
-+++ src/ngx_http_lua_subrequest.c
-@@ -1502,8 +1502,13 @@
- #endif
- 
-     tp = ngx_timeofday();
-+#if defined(freenginx)
-+    (void) tp;
-+    sr->start_time = ngx_current_msec;
-+#else
-     sr->start_sec = tp->sec;
-     sr->start_msec = tp->msec;
-+#endif
- 
-     sr->method_name = r->method_name;
-     sr->loc_conf = clcf->loc_conf;
diff --git a/www/nginx-module-lua/files/patch-src_ngx__http__lua__time.c b/www/nginx-module-lua/files/patch-src_ngx__http__lua__time.c
deleted file mode 100644
index f741bd97f225..000000000000
--- a/www/nginx-module-lua/files/patch-src_ngx__http__lua__time.c
+++ /dev/null
@@ -1,19 +0,0 @@
---- src/ngx_http_lua_time.c.orig	2025-10-24 15:04:57 UTC
-+++ src/ngx_http_lua_time.c
-@@ -28,7 +28,16 @@ ngx_http_lua_ffi_req_start_time(ngx_http_request_t *r)
- double
- ngx_http_lua_ffi_req_start_time(ngx_http_request_t *r)
- {
-+#if defined(freenginx)
-+    ngx_time_t              *tp;
-+
-+    tp = ngx_timeofday();
-+
-+    return (tp->sec + tp->msec / 1000.0)
-+           - (double) (ngx_current_msec - r->start_time) / 1000.0;
-+#else
-     return r->start_sec + r->start_msec / 1000.0;
-+#endif
- }
- 
- 
diff --git a/www/nginx-module-lua/pkg-plist b/www/nginx-module-lua/pkg-plist
index 7d85a39a00da..5396c620074b 100644
--- a/www/nginx-module-lua/pkg-plist
+++ b/www/nginx-module-lua/pkg-plist
@@ -69,7 +69,11 @@ share/nginx/modules/nginx-module-lua/src/ngx_http_lua_pcrefix.h
 share/nginx/modules/nginx-module-lua/src/ngx_http_lua_phase.c
 share/nginx/modules/nginx-module-lua/src/ngx_http_lua_pipe.c
 share/nginx/modules/nginx-module-lua/src/ngx_http_lua_pipe.h
+share/nginx/modules/nginx-module-lua/src/ngx_http_lua_precontentby.c
+share/nginx/modules/nginx-module-lua/src/ngx_http_lua_precontentby.h
 share/nginx/modules/nginx-module-lua/src/ngx_http_lua_probe.h
+share/nginx/modules/nginx-module-lua/src/ngx_http_lua_proxy_ssl_certby.c
+share/nginx/modules/nginx-module-lua/src/ngx_http_lua_proxy_ssl_certby.h
 share/nginx/modules/nginx-module-lua/src/ngx_http_lua_proxy_ssl_verifyby.c
 share/nginx/modules/nginx-module-lua/src/ngx_http_lua_proxy_ssl_verifyby.h
 share/nginx/modules/nginx-module-lua/src/ngx_http_lua_regex.c