From ed1ed7c2e968cad24000b6b4f69455ae2dd51684 Mon Sep 17 00:00:00 2001 From: "Oleg A. Mamontov" Date: Thu, 31 Aug 2023 00:00:06 +0300 Subject: [PATCH] www/angie-module-eval: Angie eval dynamic module This module captures subrequest response bodies into variables. If you want similar (but more powerful) functionalities, see the www/angie-module-lua instead. PR: 273462 --- www/Makefile | 1 + www/angie-module-eval/Makefile | 24 ++++++++++++++++++++++ www/angie-module-eval/files/pkg-message.in | 15 ++++++++++++++ www/angie-module-eval/pkg-descr | 3 +++ www/angie-module-eval/pkg-plist | 3 +++ 5 files changed, 46 insertions(+) create mode 100644 www/angie-module-eval/Makefile create mode 100644 www/angie-module-eval/files/pkg-message.in create mode 100644 www/angie-module-eval/pkg-descr create mode 100644 www/angie-module-eval/pkg-plist diff --git a/www/Makefile b/www/Makefile index daf1f8c73a59..89db8d216a30 100644 --- a/www/Makefile +++ b/www/Makefile @@ -33,6 +33,7 @@ SUBDIR += angie-module-cache-purge SUBDIR += angie-module-echo SUBDIR += angie-module-enhanced-memcached + SUBDIR += angie-module-eval SUBDIR += angie-module-geoip2 SUBDIR += angie-module-image-filter SUBDIR += angie-module-jwt diff --git a/www/angie-module-eval/Makefile b/www/angie-module-eval/Makefile new file mode 100644 index 000000000000..94a108b14c46 --- /dev/null +++ b/www/angie-module-eval/Makefile @@ -0,0 +1,24 @@ +PORTNAME= angie-module-eval +GH_TUPLE= openresty:nginx-eval-module:2016.06.10:module + +COMMENT= Angie eval dynamic module + +LICENSE_FILE= ${WRKSRC_module}/LICENCE + +MASTERDIR= ${.CURDIR}/../../www/angie + +do-install: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${MKDIR} ${STAGEDIR}${MODDIR} + + ${INSTALL_LIB} ${WRKSRC}/objs/ngx_http_eval_module.so \ + ${STAGEDIR}${MODDIR} + + ${INSTALL_MAN} ${WRKSRC_module}/README.md ${STAGEDIR}${DOCSDIR} + +do-install-DEBUG-on: + ${INSTALL} ${COPY} -m ${_SHAREMODE} \ + ${WRKSRC_DEBUG}/objs/ngx_http_eval_module.so \ + ${STAGEDIR}${MODDIR}/ngx_http_eval_module-debug.so + +.include "${MASTERDIR}/Makefile" diff --git a/www/angie-module-eval/files/pkg-message.in b/www/angie-module-eval/files/pkg-message.in new file mode 100644 index 000000000000..fa1024f090ad --- /dev/null +++ b/www/angie-module-eval/files/pkg-message.in @@ -0,0 +1,15 @@ +[ +{ type: install + message: <