git: 4f01b389e589 - main - www/angie-module-auth-spnego: Angie auth-spnego dynamic module

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Sun, 10 Sep 2023 16:13:41 UTC
The branch main has been updated by fuz:

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

commit 4f01b389e58948217780305bc7080ea36357c013
Author:     Oleg A. Mamontov <oleg@mamontov.net>
AuthorDate: 2023-08-30 20:59:32 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-09-10 16:13:00 +0000

    www/angie-module-auth-spnego: Angie auth-spnego dynamic module
    
    Module adds SPNEGO support to Angie.
    It currently supports only Kerberos authentication via GSSAPI and
    does not support NTLMSSP in Negotiate.
    
    PR:             273462
---
 www/Makefile                                      |  1 +
 www/angie-module-auth-spnego/Makefile             | 24 +++++++++++++++++++++++
 www/angie-module-auth-spnego/files/pkg-message.in | 15 ++++++++++++++
 www/angie-module-auth-spnego/pkg-descr            |  3 +++
 www/angie-module-auth-spnego/pkg-plist            |  3 +++
 5 files changed, 46 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 84f8f63e1167..bd97f64df551 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -28,6 +28,7 @@
     SUBDIR += analog
     SUBDIR += angie
     SUBDIR += angie-module-auth-jwt
+    SUBDIR += angie-module-auth-spnego
     SUBDIR += angie-module-brotli
     SUBDIR += angie-module-cache-purge
     SUBDIR += angie-module-geoip2
diff --git a/www/angie-module-auth-spnego/Makefile b/www/angie-module-auth-spnego/Makefile
new file mode 100644
index 000000000000..10da848c218d
--- /dev/null
+++ b/www/angie-module-auth-spnego/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	angie-module-auth-spnego
+GH_TUPLE=	stnoonan:spnego-http-auth-nginx-module:v1.1.1:module
+
+COMMENT=	Angie auth-spnego dynamic module
+
+USES=		gssapi
+
+MASTERDIR=	${.CURDIR}/../../www/angie
+
+do-install:
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${MKDIR} ${STAGEDIR}${MODDIR}
+
+	${INSTALL_LIB} ${WRKSRC}/objs/ngx_http_auth_spnego_module.so \
+	    ${STAGEDIR}${MODDIR}
+
+	${INSTALL_MAN} ${WRKSRC_module}/README.md ${STAGEDIR}${DOCSDIR}
+
+do-install-DEBUG-on:
+	${INSTALL} ${COPY} -m ${_SHAREMODE} \
+	    ${WRKSRC_DEBUG}/objs/ngx_http_auth_spnego_module.so \
+	    ${STAGEDIR}${MODDIR}/ngx_http_auth_spnego_module-debug.so
+
+.include "${MASTERDIR}/Makefile"
diff --git a/www/angie-module-auth-spnego/files/pkg-message.in b/www/angie-module-auth-spnego/files/pkg-message.in
new file mode 100644
index 000000000000..e3c1e471ed0e
--- /dev/null
+++ b/www/angie-module-auth-spnego/files/pkg-message.in
@@ -0,0 +1,15 @@
+[
+{ type: install
+  message: <<EOM
+
+The auth-spnego dynamic module for Angie has been installed.
+To enable this module, add the following to %%PREFIX%%/etc/angie/angie.conf
+and reload angie:
+
+    load_module modules/ngx_http_auth_spnego_module.so;
+
+Please refer to the module documentation for further details:
+https://github.com/stnoonan/spnego-http-auth-nginx-module
+EOM
+}
+]
diff --git a/www/angie-module-auth-spnego/pkg-descr b/www/angie-module-auth-spnego/pkg-descr
new file mode 100644
index 000000000000..8456b4079064
--- /dev/null
+++ b/www/angie-module-auth-spnego/pkg-descr
@@ -0,0 +1,3 @@
+Module adds SPNEGO support to Angie.
+It currently supports only Kerberos authentication via GSSAPI and
+does not support NTLMSSP in Negotiate.
diff --git a/www/angie-module-auth-spnego/pkg-plist b/www/angie-module-auth-spnego/pkg-plist
new file mode 100644
index 000000000000..55b3f94032ee
--- /dev/null
+++ b/www/angie-module-auth-spnego/pkg-plist
@@ -0,0 +1,3 @@
+%%DOCSDIR%%/README.md
+%%MODDIR%%/ngx_http_auth_spnego_module.so
+%%DEBUG%%%%MODDIR%%/ngx_http_auth_spnego_module-debug.so