git: 17fc941527d4 - main - www/nginx-devel: update third-party redis module to version 0.4.0

From: Sergey A. Osokin <osa_at_FreeBSD.org>
Date: Wed, 21 May 2025 19:33:07 UTC
The branch main has been updated by osa:

URL: https://cgit.FreeBSD.org/ports/commit/?id=17fc941527d41686a4689cf7ae731cd075314cbd

commit 17fc941527d41686a4689cf7ae731cd075314cbd
Author:     Sergey A. Osokin <osa@FreeBSD.org>
AuthorDate: 2025-05-21 19:32:34 +0000
Commit:     Sergey A. Osokin <osa@FreeBSD.org>
CommitDate: 2025-05-21 19:32:34 +0000

    www/nginx-devel: update third-party redis module to version 0.4.0
    
    Bump PORTREVISION.
---
 www/nginx-devel/Makefile                           |  2 +-
 www/nginx-devel/Makefile.extmod                    |  2 +-
 www/nginx-devel/distinfo                           |  6 ++--
 .../files/extra-patch-ngx_http_redis_module.c      | 34 ----------------------
 4 files changed, 5 insertions(+), 39 deletions(-)

diff --git a/www/nginx-devel/Makefile b/www/nginx-devel/Makefile
index 0bc9b585b4ab..04ccd9273c1b 100644
--- a/www/nginx-devel/Makefile
+++ b/www/nginx-devel/Makefile
@@ -1,6 +1,6 @@
 PORTNAME?=	nginx
 PORTVERSION=	1.28.0
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	www
 MASTER_SITES=	https://nginx.org/download/ \
 		LOCAL/osa
diff --git a/www/nginx-devel/Makefile.extmod b/www/nginx-devel/Makefile.extmod
index 7011ee65f3f5..2bbd374b1d88 100644
--- a/www/nginx-devel/Makefile.extmod
+++ b/www/nginx-devel/Makefile.extmod
@@ -143,7 +143,7 @@ HTTP_PUSH_VARS=			DSO_EXTMODS+=push
 HTTP_PUSH_STREAM_GH_TUPLE=	wandenberg:nginx-push-stream-module:0.6.0:pushstream
 HTTP_PUSH_STREAM_VARS=		DSO_EXTMODS+=pushstream
 
-HTTP_REDIS_GH_TUPLE=		osokin:ngx_http_redis:ad7d90c:redis
+HTTP_REDIS_GH_TUPLE=		osokin:ngx_http_redis:0.4.0:redis
 HTTP_REDIS_VARS=		DSO_EXTMODS+=redis
 
 HTTP_SLICE_AHEAD_EXTRA_PATCHES=	${PATCHDIR}/extra-patch-src_http_modules_ngx_http_slice_read_ahead.c
diff --git a/www/nginx-devel/distinfo b/www/nginx-devel/distinfo
index 558ce00747a7..3f3b1da00e21 100644
--- a/www/nginx-devel/distinfo
+++ b/www/nginx-devel/distinfo
@@ -1,10 +1,10 @@
-TIMESTAMP = 1747580329
+TIMESTAMP = 1747855224
 SHA256 (nginx-1.28.0.tar.gz) = c6b5c6b086c0df9d3ca3ff5e084c1d0ef909e6038279c71c1c3e985f576ff76a
 SIZE (nginx-1.28.0.tar.gz) = 1280111
 SHA256 (nginx_mogilefs_module-1.0.4.tar.gz) = 7ac230d30907f013dff8d435a118619ea6168aa3714dba62c6962d350c6295ae
 SIZE (nginx_mogilefs_module-1.0.4.tar.gz) = 11208
-SHA256 (osokin-ngx_http_redis-ad7d90c_GH0.tar.gz) = 3ac409accbfdc2da2288a37eba8e918b63cad460dab6b29e9f3e7b9823dca744
-SIZE (osokin-ngx_http_redis-ad7d90c_GH0.tar.gz) = 12724
+SHA256 (osokin-ngx_http_redis-0.4.0_GH0.tar.gz) = e5b699243035575cb8ffcd26fc3a8287bcd11ff414e30fd0a52c96729fd22d0d
+SIZE (osokin-ngx_http_redis-0.4.0_GH0.tar.gz) = 11858
 SHA256 (passenger-6.0.27.tar.gz) = 82c830aee98feece09e84309c2d0c6bb3f7b22a3c8e33cfe93b5e0d498615d0f
 SIZE (passenger-6.0.27.tar.gz) = 7548637
 SHA256 (msva-nginx_ajp_module-fcbb2cc_GH0.tar.gz) = 522e94c59f5783f281d868ede2adf325bf2f8ffb9e62cf8451d4b9ac0516916c
diff --git a/www/nginx-devel/files/extra-patch-ngx_http_redis_module.c b/www/nginx-devel/files/extra-patch-ngx_http_redis_module.c
deleted file mode 100644
index 3dacd39ee6c4..000000000000
--- a/www/nginx-devel/files/extra-patch-ngx_http_redis_module.c
+++ /dev/null
@@ -1,34 +0,0 @@
---- ../ngx_http_redis-0.3.9/ngx_http_redis_module.c.orig	2022-07-10 22:10:19.031893000 -0400
-+++ ../ngx_http_redis-0.3.9/ngx_http_redis_module.c	2022-07-10 22:09:41.271731000 -0400
-@@ -562,7 +562,7 @@
-         /* if defined gzip_flag... */
-         if (rlcf->gzip_flag) {
-             /* hash init */
--            h = ngx_list_push(&r->upstream->headers_in.headers);
-+            h = ngx_list_push(&r->headers_out.headers);
-             if (h == NULL) {
-                 return NGX_ERROR;
-             }
-@@ -571,19 +571,11 @@
-              * add Content-Encoding header for future gunzipping
-              * with ngx_http_gunzip_filter module
-              */
--            h->hash = ngx_hash(ngx_hash(ngx_hash(ngx_hash(
--                                ngx_hash(ngx_hash(ngx_hash(
--                                ngx_hash(ngx_hash(ngx_hash(
--                                ngx_hash(ngx_hash(ngx_hash(
--                                ngx_hash(ngx_hash('c', 'o'), 'n'), 't'), 'e'),
--                                 'n'), 't'), '-'), 'e'), 'n'), 'c'), 'o'),
--                                 'd'), 'i'), 'n'), 'g');
-+            h->hash = 1;
-+            h->next = NULL;
-             ngx_str_set(&h->key, "Content-Encoding");
-             ngx_str_set(&h->value, "gzip");
--            h->lowcase_key = (u_char*) "content-encoding";
--#if (NGX_HTTP_GZIP)
--            u->headers_in.content_encoding = h;
--#endif
-+            r->headers_out.content_encoding = h;
-         }
- 
-         /* try to find end of string */