git: ac2a5278212d - main - www/angie-module-subs: Angie substitutions filter dynamic module
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 10 Sep 2023 16:13:51 UTC
The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=ac2a5278212d9967773e769174f42ea430c435a0 commit ac2a5278212d9967773e769174f42ea430c435a0 Author: Oleg A. Mamontov <oleg@mamontov.net> AuthorDate: 2023-08-30 21:01:23 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2023-09-10 16:13:01 +0000 www/angie-module-subs: Angie substitutions filter dynamic module Module performs both regular expression and fixed string substitutions on response bodies. This module is quite different from the native substitution module. It scans the output chains buffer and matches string line by line, just like Apache's mod_substitute. PR: 273462 --- www/Makefile | 1 + www/angie-module-subs/Makefile | 24 ++++++++++++++++++++++++ www/angie-module-subs/files/pkg-message.in | 15 +++++++++++++++ www/angie-module-subs/pkg-descr | 4 ++++ www/angie-module-subs/pkg-plist | 3 +++ 5 files changed, 47 insertions(+) diff --git a/www/Makefile b/www/Makefile index da72992735a6..2b2c1f87d6a0 100644 --- a/www/Makefile +++ b/www/Makefile @@ -46,6 +46,7 @@ SUBDIR += angie-module-redis2 SUBDIR += angie-module-rtmp SUBDIR += angie-module-set-misc + SUBDIR += angie-module-subs SUBDIR += angie-module-xslt SUBDIR += anyremote2html SUBDIR += apache-mode.el diff --git a/www/angie-module-subs/Makefile b/www/angie-module-subs/Makefile new file mode 100644 index 000000000000..b444f72eab8a --- /dev/null +++ b/www/angie-module-subs/Makefile @@ -0,0 +1,24 @@ +PORTNAME= angie-module-subs +GH_TUPLE= yaoweibin:ngx_http_substitutions_filter_module:e12e965ac1837ca709709f9a26f572a54d83430e:module + +COMMENT= Angie substitutions filter dynamic module + +LICENSE_FILE= ${WRKSRC_module}/README + +MASTERDIR= ${.CURDIR}/../../www/angie + +do-install: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${MKDIR} ${STAGEDIR}${MODDIR} + + ${INSTALL_LIB} ${WRKSRC}/objs/ngx_http_subs_filter_module.so \ + ${STAGEDIR}${MODDIR} + + ${INSTALL_MAN} ${WRKSRC_module}/README ${STAGEDIR}${DOCSDIR} + +do-install-DEBUG-on: + ${INSTALL} ${COPY} -m ${_SHAREMODE} \ + ${WRKSRC_DEBUG}/objs/ngx_http_subs_filter_module.so \ + ${STAGEDIR}${MODDIR}/ngx_http_subs_filter_module-debug.so + +.include "${MASTERDIR}/Makefile" diff --git a/www/angie-module-subs/files/pkg-message.in b/www/angie-module-subs/files/pkg-message.in new file mode 100644 index 000000000000..5bfad5609ac2 --- /dev/null +++ b/www/angie-module-subs/files/pkg-message.in @@ -0,0 +1,15 @@ +[ +{ type: install + message: <<EOM + +The substitutions filter 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_subs_filter_module.so; + +Please refer to the module documentation for further details: +https://github.com/yaoweibin/ngx_http_substitutions_filter_module +EOM +} +] diff --git a/www/angie-module-subs/pkg-descr b/www/angie-module-subs/pkg-descr new file mode 100644 index 000000000000..ebf491d16a36 --- /dev/null +++ b/www/angie-module-subs/pkg-descr @@ -0,0 +1,4 @@ +Module performs both regular expression and fixed string substitutions +on response bodies. This module is quite different from the native +substitution module. It scans the output chains buffer and matches string +line by line, just like Apache's mod_substitute. diff --git a/www/angie-module-subs/pkg-plist b/www/angie-module-subs/pkg-plist new file mode 100644 index 000000000000..05f77c20a20a --- /dev/null +++ b/www/angie-module-subs/pkg-plist @@ -0,0 +1,3 @@ +%%DOCSDIR%%/README +%%MODDIR%%/ngx_http_subs_filter_module.so +%%DEBUG%%%%MODDIR%%/ngx_http_subs_filter_module-debug.so