git: 079ac39ec346 - main - www/angie-module-dav-ext: Angie dav-ext dynamic module

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Fri, 22 Sep 2023 05:07:47 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=079ac39ec3468a8a539a213eb15586e53793b263

commit 079ac39ec3468a8a539a213eb15586e53793b263
Author:     Oleg A. Mamontov <oleg@mamontov.net>
AuthorDate: 2023-09-18 15:35:09 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-09-22 04:54:44 +0000

    www/angie-module-dav-ext: Angie dav-ext dynamic module
    
    The standard DAV module provides partial WebDAV implementation and
    only supports GET, HEAD, PUT, DELETE, MKCOL, COPY and MOVE methods.
    This module adds PROPFIND, OPTIONS, LOCK and UNLOCK support.
    
    PR:             244997
---
 www/Makefile                                  |  1 +
 www/angie-module-dav-ext/Makefile             | 25 +++++++++++++++++++++++++
 www/angie-module-dav-ext/files/pkg-message.in | 15 +++++++++++++++
 www/angie-module-dav-ext/pkg-descr            |  3 +++
 www/angie-module-dav-ext/pkg-plist            |  3 +++
 5 files changed, 47 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index c611db17c7dc..3aa3842f777c 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -31,6 +31,7 @@
     SUBDIR += angie-module-auth-spnego
     SUBDIR += angie-module-brotli
     SUBDIR += angie-module-cache-purge
+    SUBDIR += angie-module-dav-ext
     SUBDIR += angie-module-echo
     SUBDIR += angie-module-enhanced-memcached
     SUBDIR += angie-module-eval
diff --git a/www/angie-module-dav-ext/Makefile b/www/angie-module-dav-ext/Makefile
new file mode 100644
index 000000000000..d403b808d478
--- /dev/null
+++ b/www/angie-module-dav-ext/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	angie-module-dav-ext
+GH_TUPLE=	arut:nginx-dav-ext-module:v3.0.0:module
+
+COMMENT=	Angie dav-ext dynamic module
+
+LIB_DEPENDS=	libxml2.so:textproc/libxml2 \
+		libxslt.so:textproc/libxslt
+
+MASTERDIR=	${.CURDIR}/../../www/angie
+
+do-install:
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${MKDIR} ${STAGEDIR}${MODDIR}
+
+	${INSTALL_LIB} ${WRKSRC}/objs/ngx_http_dav_ext_module.so \
+	    ${STAGEDIR}${MODDIR}
+
+	${INSTALL_MAN} ${WRKSRC_module}/README.rst ${STAGEDIR}${DOCSDIR}
+
+do-install-DEBUG-on:
+	${INSTALL} ${COPY} -m ${_SHAREMODE} \
+	    ${WRKSRC_DEBUG}/objs/ngx_http_dav_ext_module.so \
+	    ${STAGEDIR}${MODDIR}/ngx_http_dav_ext_module-debug.so
+
+.include "${MASTERDIR}/Makefile"
diff --git a/www/angie-module-dav-ext/files/pkg-message.in b/www/angie-module-dav-ext/files/pkg-message.in
new file mode 100644
index 000000000000..0881848474d7
--- /dev/null
+++ b/www/angie-module-dav-ext/files/pkg-message.in
@@ -0,0 +1,15 @@
+[
+{ type: install
+  message: <<EOM
+
+The dav-ext 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_dav_ext_module.so;
+
+Please refer to the module documentation for further details:
+https://github.com/arut/nginx-dav-ext-module
+EOM
+}
+]
diff --git a/www/angie-module-dav-ext/pkg-descr b/www/angie-module-dav-ext/pkg-descr
new file mode 100644
index 000000000000..d166687355ea
--- /dev/null
+++ b/www/angie-module-dav-ext/pkg-descr
@@ -0,0 +1,3 @@
+The standard DAV module provides partial WebDAV implementation and
+only supports GET, HEAD, PUT, DELETE, MKCOL, COPY and MOVE methods.
+This module adds PROPFIND, OPTIONS, LOCK and UNLOCK support.
diff --git a/www/angie-module-dav-ext/pkg-plist b/www/angie-module-dav-ext/pkg-plist
new file mode 100644
index 000000000000..cffe8c235a74
--- /dev/null
+++ b/www/angie-module-dav-ext/pkg-plist
@@ -0,0 +1,3 @@
+%%DOCSDIR%%/README.rst
+%%MODDIR%%/ngx_http_dav_ext_module.so
+%%DEBUG%%%%MODDIR%%/ngx_http_dav_ext_module-debug.so