git: 2d08fff2eec6 - main - www/nginx-module-iconv: Add New Port

From: Jochen Neumeister <joneum_at_FreeBSD.org>
Date: Mon, 19 Oct 2026 18:23:02 UTC
The branch main has been updated by joneum:

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

commit 2d08fff2eec69bd13bcf3753900ce047c41ad3c0
Author:     Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2026-10-19 18:15:20 +0000
Commit:     Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2026-10-19 18:22:50 +0000

    www/nginx-module-iconv: Add New Port
    
    Sources of the iconv module for the NGINX ports.  The module converts text
    between character sets, in a response body or in a variable.
    
    Sponsored by:   Netzkommune GmbH
---
 www/Makefile                                |  1 +
 www/nginx-module-iconv/Makefile             | 35 +++++++++++++++++++++++++++++
 www/nginx-module-iconv/distinfo             |  3 +++
 www/nginx-module-iconv/files/pkg-message.in | 14 ++++++++++++
 www/nginx-module-iconv/pkg-descr            |  8 +++++++
 5 files changed, 61 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 4fb2c2072867..a813c9b29706 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -544,6 +544,7 @@
     SUBDIR += nginx-module-fips-check
     SUBDIR += nginx-module-form-input
     SUBDIR += nginx-module-gridfs
+    SUBDIR += nginx-module-iconv
     SUBDIR += nginx-module-let
     SUBDIR += nginx-module-lua
     SUBDIR += nginx-module-lua-stream
diff --git a/www/nginx-module-iconv/Makefile b/www/nginx-module-iconv/Makefile
new file mode 100644
index 000000000000..60d55f74e7b2
--- /dev/null
+++ b/www/nginx-module-iconv/Makefile
@@ -0,0 +1,35 @@
+PORTNAME=	nginx-module-iconv
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.1.0
+CATEGORIES=	www
+
+MAINTAINER=	joneum@FreeBSD.org
+COMMENT=	Sources of the iconv module for the NGINX ports
+WWW=		https://github.com/sysadmin-labs/nginx-iconv-module
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	sysadmin-labs
+GH_PROJECT=	nginx-iconv-module
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+SUB_FILES=	pkg-message
+
+_MODDIR=	share/nginx/modules/${PORTNAME}
+MODULESDIR=	${PREFIX}/${_MODDIR}
+
+_MODFILES=	src/ngx_http_iconv_module.c
+
+PLIST_FILES=	${_MODDIR}/config \
+		${_MODFILES:S!^!${_MODDIR}/!}
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${MODULESDIR}/src
+	${INSTALL_DATA} ${WRKSRC}/config ${STAGEDIR}${MODULESDIR}
+	${INSTALL_DATA} ${_MODFILES:S!^!${WRKSRC}/!} ${STAGEDIR}${MODULESDIR}/src
+
+.include <bsd.port.mk>
diff --git a/www/nginx-module-iconv/distinfo b/www/nginx-module-iconv/distinfo
new file mode 100644
index 000000000000..fe1e087e8b51
--- /dev/null
+++ b/www/nginx-module-iconv/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1792431959
+SHA256 (sysadmin-labs-nginx-iconv-module-v0.1.0_GH0.tar.gz) = d1d793f1d72c53695c414c62c7ded05af7931c02d88f95557a4dd056a1af1c09
+SIZE (sysadmin-labs-nginx-iconv-module-v0.1.0_GH0.tar.gz) = 29037
diff --git a/www/nginx-module-iconv/files/pkg-message.in b/www/nginx-module-iconv/files/pkg-message.in
new file mode 100644
index 000000000000..0b99ef331a7a
--- /dev/null
+++ b/www/nginx-module-iconv/files/pkg-message.in
@@ -0,0 +1,14 @@
+[
+{ type: install
+  message: <<EOM
+This package contains the sources of the iconv module only.  It does not
+install a loadable module.
+
+The module itself is built by the nginx ports.  To use iconv, build
+www/nginx, www/nginx-devel or www/freenginx with the ICONV option enabled.
+Those ports pick the sources up from
+%%PREFIX%%/share/nginx/modules/nginx-module-iconv and produce
+ngx_http_iconv_module.so.
+EOM
+}
+]
diff --git a/www/nginx-module-iconv/pkg-descr b/www/nginx-module-iconv/pkg-descr
new file mode 100644
index 000000000000..da69c8076588
--- /dev/null
+++ b/www/nginx-module-iconv/pkg-descr
@@ -0,0 +1,8 @@
+The iconv module converts text between character sets inside nginx, using
+the iconv(3) facility of the system.  It brings three directives:
+set_iconv converts the content of one variable into another, iconv_filter
+converts a response body as it is sent, and iconv_buffer_size sizes the
+buffers the filter works with.
+
+This port only installs the module sources.  The module itself is built by
+the nginx ports when their ICONV option is enabled.