git: f7874dbf2164 - main - www/nginx-devel: add third-party zstd module

From: Sergey A. Osokin <osa_at_FreeBSD.org>
Date: Mon, 03 Jun 2024 17:37:57 UTC
The branch main has been updated by osa:

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

commit f7874dbf216490b49e8236a4ac2000d865e4b099
Author:     Sergey A. Osokin <osa@FreeBSD.org>
AuthorDate: 2024-06-03 17:37:22 +0000
Commit:     Sergey A. Osokin <osa@FreeBSD.org>
CommitDate: 2024-06-03 17:37:22 +0000

    www/nginx-devel: add third-party zstd module
    
    PR:             279002
---
 www/nginx-devel/Makefile              | 1 +
 www/nginx-devel/Makefile.extmod       | 8 +++++++-
 www/nginx-devel/Makefile.options.desc | 1 +
 www/nginx-devel/distinfo              | 4 +++-
 www/nginx-devel/pkg-plist             | 2 ++
 5 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/www/nginx-devel/Makefile b/www/nginx-devel/Makefile
index f7760d39528f..91b8236f4f70 100644
--- a/www/nginx-devel/Makefile
+++ b/www/nginx-devel/Makefile
@@ -1,5 +1,6 @@
 PORTNAME?=	nginx
 PORTVERSION=	1.27.0
+PORTREVISION=	1
 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 8845d0f3e174..9418819944c3 100644
--- a/www/nginx-devel/Makefile.extmod
+++ b/www/nginx-devel/Makefile.extmod
@@ -13,7 +13,7 @@ OPTIONS_GROUP_THIRDPARTYGRP=	AJP AWS_AUTH BROTLI CACHE_PURGE CT \
 	HTTP_UPSTREAM_STICKY HTTP_VIDEO_THUMBEXTRACTOR HTTP_ZIP ICONV LET LINK LUA MEMC \
 	MODSECURITY3 NAXSI PASSENGER POSTGRES RDS_CSV RDS_JSON \
 	REDIS2 RTMP SET_MISC SFLOW SHIBBOLETH SLOWFS_CACHE SRCACHE STS \
-	VOD VTS XSS WEBSOCKIFY
+	VOD VTS XSS WEBSOCKIFY ZSTD
 
 AJP_GH_TUPLE=		msva:nginx_ajp_module:fcbb2cc:ajp
 AJP_VARS=		DSO_EXTMODS+=ajp
@@ -319,3 +319,9 @@ XSS_EXTRA_PATCHES=	${PATCHDIR}/extra-patch-xss-nginx-module-config
 
 WEBSOCKIFY_GH_TUPLE=	tg123:websockify-nginx-module:c11bc9a:websockify
 WEBSOCKIFY_VARS=	DSO_EXTMODS+=websockify
+
+ZSTD_LIB_DEPENDS=	libzstd.so:archivers/zstd
+ZSTD_CONFIGURE_ENV=	ZSTD_INC=${LOCALBASE}/include \
+			ZSTD_LIB=${LOCALBASE}/lib
+ZSTD_GH_TUPLE=		tokers:zstd-nginx-module:f4ba115:zstd
+ZSTD_VARS=		DSO_EXTMODS+=zstd
diff --git a/www/nginx-devel/Makefile.options.desc b/www/nginx-devel/Makefile.options.desc
index 3eeae052f659..ca5f599c4242 100644
--- a/www/nginx-devel/Makefile.options.desc
+++ b/www/nginx-devel/Makefile.options.desc
@@ -114,3 +114,4 @@ VTS_DESC=			3rd party vts module
 WWW_DESC=			Enable html sample files
 XSS_DESC=			3rd party xss module
 WEBSOCKIFY_DESC=		3rd party websockify module
+ZSTD_DESC=			3rd party zstd module
diff --git a/www/nginx-devel/distinfo b/www/nginx-devel/distinfo
index dc380cd1a97e..462bc038a43e 100644
--- a/www/nginx-devel/distinfo
+++ b/www/nginx-devel/distinfo
@@ -1,4 +1,4 @@
-TIMESTAMP = 1716999888
+TIMESTAMP = 1717435180
 SHA256 (nginx-1.27.0.tar.gz) = b7230e3cf87eaa2d4b0bc56aadc920a960c7873b9991a1b66ffcc08fc650129c
 SIZE (nginx-1.27.0.tar.gz) = 1244887
 SHA256 (nginx_mogilefs_module-1.0.4.tar.gz) = 7ac230d30907f013dff8d435a118619ea6168aa3714dba62c6962d350c6295ae
@@ -137,3 +137,5 @@ SHA256 (tg123-websockify-nginx-module-c11bc9a_GH0.tar.gz) = aca454bffcee2476dc92
 SIZE (tg123-websockify-nginx-module-c11bc9a_GH0.tar.gz) = 14646
 SHA256 (openresty-xss-nginx-module-v0.06_GH0.tar.gz) = 0b12bbc53a41f3e3d6df419c173b8c87434be3e6cd255a8193aa91345a2de6cf
 SIZE (openresty-xss-nginx-module-v0.06_GH0.tar.gz) = 12448
+SHA256 (tokers-zstd-nginx-module-f4ba115_GH0.tar.gz) = 20045e8ac80e2cc9fd3659573153cb1f22d98a653a10fe939a4be0e90160826a
+SIZE (tokers-zstd-nginx-module-f4ba115_GH0.tar.gz) = 55848
diff --git a/www/nginx-devel/pkg-plist b/www/nginx-devel/pkg-plist
index e6fa32c9e48d..867c3e97c265 100644
--- a/www/nginx-devel/pkg-plist
+++ b/www/nginx-devel/pkg-plist
@@ -84,6 +84,8 @@
 %%DSO%%%%VTS%%libexec/nginx/ngx_http_vhost_traffic_status_module.so
 %%DSO%%%%WEBSOCKIFY%%libexec/nginx/ngx_http_websockify_module.so
 %%DSO%%%%XSS%%libexec/nginx/ngx_http_xss_filter_module.so
+%%DSO%%%%ZSTD%%libexec/nginx/ngx_http_zstd_filter_module.so
+%%DSO%%%%ZSTD%%libexec/nginx/ngx_http_zstd_static_module.so
 %%HTTP_PERL%%%%SITE_ARCH%%/auto/nginx/nginx.so
 %%HTTP_PERL%%%%SITE_ARCH%%/nginx.pm
 sbin/nginx