Skip to content

Commit

Permalink
www/angie-module-xslt: Angie XSLT dynamic module
Browse files Browse the repository at this point in the history
Module is a filter that transforms XML responses using XSLT stylesheets.

PR:		272999
  • Loading branch information
lonerr authored and clausecker committed Aug 9, 2023
1 parent 76e796f commit f84b993
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions www/Makefile
Expand Up @@ -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
Expand Down
24 changes: 24 additions & 0 deletions 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"
15 changes: 15 additions & 0 deletions 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
}
]
3 changes: 3 additions & 0 deletions 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.
2 changes: 2 additions & 0 deletions 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

0 comments on commit f84b993

Please sign in to comment.