git: 095433251790 - main - www/nginx-module-auth-digest: Add New Port

From: Jochen Neumeister <joneum_at_FreeBSD.org>
Date: Sun, 01 Nov 2026 16:02:38 UTC
The branch main has been updated by joneum:

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

commit 09543325179083e75541a6603ffa7e056e585d12
Author:     Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2026-11-01 16:00:56 +0000
Commit:     Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2026-11-01 16:02:25 +0000

    www/nginx-module-auth-digest: Add New Port
    
    Sources of the auth_digest module, which adds RFC 2617 HTTP digest
    authentication.  The nginx ports build it from here when their
    HTTP_AUTH_DIGEST option is set.
    
    Sponsored by:   Netzkommune GmbH
---
 www/Makefile                                      |  1 +
 www/nginx-module-auth-digest/Makefile             | 35 +++++++++++++++++++++++
 www/nginx-module-auth-digest/distinfo             |  3 ++
 www/nginx-module-auth-digest/files/pkg-message.in | 14 +++++++++
 www/nginx-module-auth-digest/pkg-descr            |  6 ++++
 5 files changed, 59 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 110fe50a9525..a1bf208a9ffd 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -537,6 +537,7 @@
     SUBDIR += nginx-module-accept-language
     SUBDIR += nginx-module-ajp
     SUBDIR += nginx-module-array-var
+    SUBDIR += nginx-module-auth-digest
     SUBDIR += nginx-module-auth-ldap
     SUBDIR += nginx-module-auth-pam
     SUBDIR += nginx-module-aws-auth
diff --git a/www/nginx-module-auth-digest/Makefile b/www/nginx-module-auth-digest/Makefile
new file mode 100644
index 000000000000..81397b9beb3c
--- /dev/null
+++ b/www/nginx-module-auth-digest/Makefile
@@ -0,0 +1,35 @@
+PORTNAME=	nginx-module-auth-digest
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.0.1
+CATEGORIES=	www
+
+MAINTAINER=	joneum@FreeBSD.org
+COMMENT=	Sources of the HTTP digest auth module for the NGINX ports
+WWW=		https://github.com/sysadmin-labs/nginx-http-auth-digest
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	sysadmin-labs
+GH_PROJECT=	nginx-http-auth-digest
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+SUB_FILES=	pkg-message
+
+_MODDIR=	share/nginx/modules/${PORTNAME}
+MODULESDIR=	${PREFIX}/${_MODDIR}
+
+_MODFILES=	src/ngx_http_auth_digest_module.c src/ngx_http_auth_digest_module.h
+
+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-auth-digest/distinfo b/www/nginx-module-auth-digest/distinfo
new file mode 100644
index 000000000000..1ad614658539
--- /dev/null
+++ b/www/nginx-module-auth-digest/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1793544890
+SHA256 (sysadmin-labs-nginx-http-auth-digest-v1.0.1_GH0.tar.gz) = 0e7934f2645a165e6928b995aa84388f961d55ca73da4730910370d7d74c8d40
+SIZE (sysadmin-labs-nginx-http-auth-digest-v1.0.1_GH0.tar.gz) = 36040
diff --git a/www/nginx-module-auth-digest/files/pkg-message.in b/www/nginx-module-auth-digest/files/pkg-message.in
new file mode 100644
index 000000000000..bbdf540676ef
--- /dev/null
+++ b/www/nginx-module-auth-digest/files/pkg-message.in
@@ -0,0 +1,14 @@
+[
+{ type: install
+  message: <<EOM
+This package contains the sources of the auth_digest module only.  It does not
+install a loadable module.
+
+The module itself is built by the nginx ports.  To use auth_digest, build
+www/nginx, www/nginx-devel or www/freenginx with the HTTP_AUTH_DIGEST option
+enabled.  Those ports pick the sources up from
+%%PREFIX%%/share/nginx/modules/nginx-module-auth-digest and produce
+ngx_http_auth_digest_module.so.
+EOM
+}
+]
diff --git a/www/nginx-module-auth-digest/pkg-descr b/www/nginx-module-auth-digest/pkg-descr
new file mode 100644
index 000000000000..e6f8592ecf00
--- /dev/null
+++ b/www/nginx-module-auth-digest/pkg-descr
@@ -0,0 +1,6 @@
+The auth_digest module supplements nginx's built-in basic authentication with
+support for RFC 2617 digest authentication, so a password is never sent over
+the wire in the clear.
+
+This port only installs the module sources.  The module itself is built by the
+nginx ports when their HTTP_AUTH_DIGEST option is enabled.