git: ed1ed7c2e968 - main - www/angie-module-eval: Angie eval dynamic module
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 10 Sep 2023 16:13:44 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ed1ed7c2e968cad24000b6b4f69455ae2dd51684
commit ed1ed7c2e968cad24000b6b4f69455ae2dd51684
Author: Oleg A. Mamontov <oleg@mamontov.net>
AuthorDate: 2023-08-30 21:00:06 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-09-10 16:13:00 +0000
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(+)
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: <<EOM
+
+The eval 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_eval_module.so;
+
+Please refer to the module documentation for further details:
+https://github.com/openresty/nginx-eval-module
+EOM
+}
+]
diff --git a/www/angie-module-eval/pkg-descr b/www/angie-module-eval/pkg-descr
new file mode 100644
index 000000000000..5f2a8100f136
--- /dev/null
+++ b/www/angie-module-eval/pkg-descr
@@ -0,0 +1,3 @@
+This module captures subrequest response bodies into variables.
+If you want similar (but more powerful) functionalities,
+see the www/angie-module-lua instead.
diff --git a/www/angie-module-eval/pkg-plist b/www/angie-module-eval/pkg-plist
new file mode 100644
index 000000000000..14a5692914ad
--- /dev/null
+++ b/www/angie-module-eval/pkg-plist
@@ -0,0 +1,3 @@
+%%DOCSDIR%%/README.md
+%%MODDIR%%/ngx_http_eval_module.so
+%%DEBUG%%%%MODDIR%%/ngx_http_eval_module-debug.so