summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg A. Mamontov <oleg@mamontov.net>2023-08-07 20:44:13 +0200
committerRobert Clausecker <fuz@FreeBSD.org>2023-08-09 15:01:18 +0200
commitf84b99340c51e3fdda005df1ad331f6a0cb45842 (patch)
treedc1e0305362b1bd0ee5c679d5b0b1846b2d74cb1
parentwww/angie-module-redis2: Angie redis2 dynamic module (diff)
www/angie-module-xslt: Angie XSLT dynamic module
Module is a filter that transforms XML responses using XSLT stylesheets. PR: 272999
-rw-r--r--www/Makefile1
-rw-r--r--www/angie-module-xslt/Makefile24
-rw-r--r--www/angie-module-xslt/files/pkg-message.in15
-rw-r--r--www/angie-module-xslt/pkg-descr3
-rw-r--r--www/angie-module-xslt/pkg-plist2
5 files changed, 45 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 40ca1c0c0e8f..b35a51195228 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -37,6 +37,7 @@
SUBDIR += angie-module-njs
SUBDIR += angie-module-perl
SUBDIR += angie-module-redis2
+ SUBDIR += angie-module-xslt
SUBDIR += anyremote2html
SUBDIR += apache-mode.el
SUBDIR += apache24
diff --git a/www/angie-module-xslt/Makefile b/www/angie-module-xslt/Makefile
new file mode 100644
index 000000000000..3264ada0959d
--- /dev/null
+++ b/www/angie-module-xslt/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= angie-module-xslt
+
+COMMENT= Angie XSLT dynamic module
+
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libxslt.so:textproc/libxslt
+
+CONFIGURE_ADD= --with-http_xslt_module=dynamic
+
+MASTERDIR= ${.CURDIR}/../../www/angie
+
+do-install:
+ ${MKDIR} ${STAGEDIR}${MODDIR}
+
+ ${INSTALL_LIB} ${WRKSRC}/objs/ngx_http_xslt_filter_module.so \
+ ${STAGEDIR}${MODDIR}
+
+do-install-DEBUG-on:
+ ${INSTALL} ${COPY} -m ${_SHAREMODE} \
+ ${WRKSRC_DEBUG}/objs/ngx_http_xslt_filter_module.so \
+ ${STAGEDIR}${MODDIR}/ngx_http_xslt_filter_module-debug.so
+
+.include "${MASTERDIR}/Makefile"
diff --git a/www/angie-module-xslt/files/pkg-message.in b/www/angie-module-xslt/files/pkg-message.in
new file mode 100644
index 000000000000..2ece40b29430
--- /dev/null
+++ b/www/angie-module-xslt/files/pkg-message.in
@@ -0,0 +1,15 @@
+[
+{ type: install
+ message: <<EOM
+
+The XSLT 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_xslt_filter_module.so;
+
+Please refer to the modules documentation for further details:
+https://angie.software/en/http_xslt/
+EOM
+}
+]
diff --git a/www/angie-module-xslt/pkg-descr b/www/angie-module-xslt/pkg-descr
new file mode 100644
index 000000000000..42273da62dd2
--- /dev/null
+++ b/www/angie-module-xslt/pkg-descr
@@ -0,0 +1,3 @@
+Module is a filter that transforms XML responses using XSLT stylesheets.
+Module allows you to apply an XSLT transformation on an XML file or
+response received from a backend server before serving the client.
diff --git a/www/angie-module-xslt/pkg-plist b/www/angie-module-xslt/pkg-plist
new file mode 100644
index 000000000000..2cc2d0af8035
--- /dev/null
+++ b/www/angie-module-xslt/pkg-plist
@@ -0,0 +1,2 @@
+%%MODDIR%%/ngx_http_xslt_filter_module.so
+%%DEBUG%%%%MODDIR%%/ngx_http_xslt_filter_module-debug.so