git: 18fd821a00ef - main - www/nginx-module-form-input: Add New Port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 09 Sep 2026 06:03:18 UTC
The branch main has been updated by joneum:
URL: https://cgit.FreeBSD.org/ports/commit/?id=18fd821a00ef308327ffc58d90704b3c42b3f5de
commit 18fd821a00ef308327ffc58d90704b3c42b3f5de
Author: Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2026-09-09 05:59:55 +0000
Commit: Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2026-09-09 06:03:08 +0000
www/nginx-module-form-input: Add New Port
The form_input module reads HTTP POST and PUT request bodies encoded as
application/x-www-form-urlencoded and puts the parsed values into nginx
variables. 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-form-input/Makefile | 36 ++++++++++++++++++++++++
www/nginx-module-form-input/distinfo | 3 ++
www/nginx-module-form-input/files/pkg-message.in | 14 +++++++++
www/nginx-module-form-input/pkg-descr | 6 ++++
5 files changed, 60 insertions(+)
diff --git a/www/Makefile b/www/Makefile
index 5df0ec536e49..9e35578107b5 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -528,6 +528,7 @@
SUBDIR += nginx-lite
SUBDIR += nginx-module-array-var
SUBDIR += nginx-module-cache-purge
+ SUBDIR += nginx-module-form-input
SUBDIR += nginx-module-lua
SUBDIR += nginx-module-lua-stream
SUBDIR += nginx-module-ndk
diff --git a/www/nginx-module-form-input/Makefile b/www/nginx-module-form-input/Makefile
new file mode 100644
index 000000000000..a4a89bd913b9
--- /dev/null
+++ b/www/nginx-module-form-input/Makefile
@@ -0,0 +1,36 @@
+PORTNAME= nginx-module-form-input
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.12
+CATEGORIES= www
+
+MAINTAINER= joneum@FreeBSD.org
+COMMENT= Sources of the form_input module for the NGINX ports
+WWW= https://github.com/calio/form-input-nginx-module
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/README.md
+
+USE_GITHUB= yes
+GH_ACCOUNT= calio
+GH_PROJECT= form-input-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_form_input_module.c
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${MODULESDIR}/src
+ ${INSTALL_DATA} ${WRKSRC}/config ${STAGEDIR}${MODULESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/src/ddebug.h \
+ ${WRKSRC}/src/ngx_http_form_input_module.c \
+ ${STAGEDIR}${MODULESDIR}/src
+
+.include <bsd.port.mk>
diff --git a/www/nginx-module-form-input/distinfo b/www/nginx-module-form-input/distinfo
new file mode 100644
index 000000000000..6948bc8a77f8
--- /dev/null
+++ b/www/nginx-module-form-input/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1788898533
+SHA256 (calio-form-input-nginx-module-v0.12_GH0.tar.gz) = 5c1869d55897075adb3fdf840b21060dc54669a1f840a36d1539acc7e59dd106
+SIZE (calio-form-input-nginx-module-v0.12_GH0.tar.gz) = 11090
diff --git a/www/nginx-module-form-input/files/pkg-message.in b/www/nginx-module-form-input/files/pkg-message.in
new file mode 100644
index 000000000000..55d0146c1db6
--- /dev/null
+++ b/www/nginx-module-form-input/files/pkg-message.in
@@ -0,0 +1,14 @@
+[
+{ type: install
+ message: <<EOM
+This package contains the sources of the form_input module only. It
+does not install a loadable module.
+
+The module itself is built by the nginx ports. To use form_input,
+build www/nginx, www/nginx-devel or www/freenginx with the FORMINPUT
+option enabled. Those ports pick the sources up from
+%%PREFIX%%/share/nginx/modules/nginx-module-form-input and produce
+ngx_http_form_input_module.so.
+EOM
+}
+]
diff --git a/www/nginx-module-form-input/pkg-descr b/www/nginx-module-form-input/pkg-descr
new file mode 100644
index 000000000000..756f37c76960
--- /dev/null
+++ b/www/nginx-module-form-input/pkg-descr
@@ -0,0 +1,6 @@
+The form_input module reads HTTP POST and PUT request bodies encoded
+as application/x-www-form-urlencoded and puts the parsed values into
+nginx variables, using the ngx_devel_kit.
+
+This port only installs the module sources. The module itself is built
+by the nginx ports when their FORMINPUT option is enabled.