git: 1b480c85825b - main - www/nginx-module-array-var: Add New Port

From: Jochen Neumeister <joneum_at_FreeBSD.org>
Date: Sat, 05 Sep 2026 18:37:01 UTC
The branch main has been updated by joneum:

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

commit 1b480c85825b6224e754c752c7e408cbd6af6c1b
Author:     Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2026-09-05 18:35:59 +0000
Commit:     Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2026-09-05 18:36:46 +0000

    www/nginx-module-array-var: Add New Port
    
    The array_var module adds support for manipulating array-typed
    variables in the nginx configuration.  This port installs the module
    sources only, the module itself is built by the nginx ports.
    
    Sponsored by:   Netzkommune GmbH
---
 www/Makefile                                    |  1 +
 www/nginx-module-array-var/Makefile             | 39 +++++++++++++++++++++++++
 www/nginx-module-array-var/distinfo             |  3 ++
 www/nginx-module-array-var/files/pkg-message.in | 14 +++++++++
 www/nginx-module-array-var/pkg-descr            |  5 ++++
 5 files changed, 62 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 6fecd6e375a5..ef66a20046ad 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -526,6 +526,7 @@
     SUBDIR += nginx-devel
     SUBDIR += nginx-full
     SUBDIR += nginx-lite
+    SUBDIR += nginx-module-array-var
     SUBDIR += nginx-module-lua
     SUBDIR += nginx-module-lua-stream
     SUBDIR += nginx-module-ndk
diff --git a/www/nginx-module-array-var/Makefile b/www/nginx-module-array-var/Makefile
new file mode 100644
index 000000000000..5e6103ebf5b5
--- /dev/null
+++ b/www/nginx-module-array-var/Makefile
@@ -0,0 +1,39 @@
+PORTNAME=	nginx-module-array-var
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.06
+CATEGORIES=	www
+
+MAINTAINER=	joneum@FreeBSD.org
+COMMENT=	Sources of the array_var module for the NGINX ports
+WWW=		https://github.com/openresty/array-var-nginx-module
+
+LICENSE=	BSD2CLAUSE
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	openresty
+GH_PROJECT=	array-var-nginx-module
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+SUB_FILES=	pkg-message
+
+_MODDIR=	share/nginx/modules/${PORTNAME}
+MODULESDIR=	${PREFIX}/${_MODDIR}
+
+PLIST_FILES=	${_MODDIR}/config \
+		${_MODDIR}/src/ddebug.h \
+		${_MODDIR}/src/ngx_http_array_var_module.c \
+		${_MODDIR}/src/ngx_http_array_var_util.c \
+		${_MODDIR}/src/ngx_http_array_var_util.h
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${MODULESDIR}/src
+	${INSTALL_DATA} ${WRKSRC}/config ${STAGEDIR}${MODULESDIR}
+	${INSTALL_DATA} ${WRKSRC}/src/ddebug.h \
+		${WRKSRC}/src/ngx_http_array_var_module.c \
+		${WRKSRC}/src/ngx_http_array_var_util.c \
+		${WRKSRC}/src/ngx_http_array_var_util.h \
+		${STAGEDIR}${MODULESDIR}/src
+
+.include <bsd.port.mk>
diff --git a/www/nginx-module-array-var/distinfo b/www/nginx-module-array-var/distinfo
new file mode 100644
index 000000000000..18a2fb8e1bcf
--- /dev/null
+++ b/www/nginx-module-array-var/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1788629046
+SHA256 (openresty-array-var-nginx-module-v0.06_GH0.tar.gz) = 2c3577265d1d51a2d0646311b9c651520a74455253b6f7a5776af79e9bff5cb1
+SIZE (openresty-array-var-nginx-module-v0.06_GH0.tar.gz) = 12005
diff --git a/www/nginx-module-array-var/files/pkg-message.in b/www/nginx-module-array-var/files/pkg-message.in
new file mode 100644
index 000000000000..efd8b8ffe371
--- /dev/null
+++ b/www/nginx-module-array-var/files/pkg-message.in
@@ -0,0 +1,14 @@
+[
+{ type: install
+  message: <<EOM
+This package contains the sources of the array_var module only.  It does
+not install a loadable module.
+
+The module itself is built by the nginx ports.  To use array_var, build
+www/nginx, www/nginx-devel or www/freenginx with the ARRAYVAR option
+enabled.  Those ports pick the sources up from
+%%PREFIX%%/share/nginx/modules/nginx-module-array-var and produce
+ngx_http_array_var_module.so.
+EOM
+}
+]
diff --git a/www/nginx-module-array-var/pkg-descr b/www/nginx-module-array-var/pkg-descr
new file mode 100644
index 000000000000..10f2c334b174
--- /dev/null
+++ b/www/nginx-module-array-var/pkg-descr
@@ -0,0 +1,5 @@
+The array_var module adds support for manipulating array-typed
+variables in the nginx configuration, using the ngx_devel_kit.
+
+This port only installs the module sources.  The module itself is built
+by the nginx ports when their ARRAYVAR option is enabled.