aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg A. Mamontov <oleg@mamontov.net>2023-09-18 15:35:09 +0000
committerRobert Clausecker <fuz@FreeBSD.org>2023-09-22 04:54:44 +0000
commit079ac39ec3468a8a539a213eb15586e53793b263 (patch)
treeaa52d187da0ebbfa691ce7c0411da2b7fd9fbf4c
parent48c5dd95ac86d78830ef6ddb9617fb60c31e088c (diff)
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
-rw-r--r--www/Makefile1
-rw-r--r--www/angie-module-dav-ext/Makefile25
-rw-r--r--www/angie-module-dav-ext/files/pkg-message.in15
-rw-r--r--www/angie-module-dav-ext/pkg-descr3
-rw-r--r--www/angie-module-dav-ext/pkg-plist3
5 files changed, 47 insertions, 0 deletions
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