git: e2f23b676e5a - main - www/angie-module-set-misc: Angie set-misc dynamic module
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 10 Sep 2023 16:13:50 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e2f23b676e5af1287417d0cc670a10fd22efe842
commit e2f23b676e5af1287417d0cc670a10fd22efe842
Author: Oleg A. Mamontov <oleg@mamontov.net>
AuthorDate: 2023-08-30 21:01:09 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-09-10 16:13:01 +0000
www/angie-module-set-misc: Angie set-misc dynamic module
Module extends the standard rewrite's directive set to provide more
functionalities like URI escaping and unescaping, JSON quoting,
Hexadecimal/MD5/SHA1/Base32/Base64 digest encoding and decoding,
random number generator, and more.
PR: 273462
---
www/Makefile | 1 +
www/angie-module-set-misc/Makefile | 28 ++++++++++++++++++++++++++
www/angie-module-set-misc/files/pkg-message.in | 16 +++++++++++++++
www/angie-module-set-misc/pkg-descr | 4 ++++
www/angie-module-set-misc/pkg-plist | 3 +++
5 files changed, 52 insertions(+)
diff --git a/www/Makefile b/www/Makefile
index 263e3a5a2449..da72992735a6 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -45,6 +45,7 @@
SUBDIR += angie-module-postgres
SUBDIR += angie-module-redis2
SUBDIR += angie-module-rtmp
+ SUBDIR += angie-module-set-misc
SUBDIR += angie-module-xslt
SUBDIR += anyremote2html
SUBDIR += apache-mode.el
diff --git a/www/angie-module-set-misc/Makefile b/www/angie-module-set-misc/Makefile
new file mode 100644
index 000000000000..c415ae1c0668
--- /dev/null
+++ b/www/angie-module-set-misc/Makefile
@@ -0,0 +1,28 @@
+PORTNAME= angie-module-set-misc
+GH_TUPLE= vision5:ngx_devel_kit:v0.3.2:ndk
+GH_TUPLE+= openresty:set-misc-nginx-module:v0.33:module
+
+COMMENT= Angie set-misc dynamic module
+
+LICENSE_FILE= ${WRKSRC_module}/README.markdown
+
+CONFIGURE_ADD= --add-dynamic-module=${WRKSRC_ndk} \
+ --add-dynamic-module=${WRKSRC_module}
+
+MASTERDIR= ${.CURDIR}/../../www/angie
+
+do-install:
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}${MODDIR}
+
+ ${INSTALL_LIB} ${WRKSRC}/objs/ngx_http_set_misc_module.so \
+ ${STAGEDIR}${MODDIR}
+
+ ${INSTALL_MAN} ${WRKSRC_module}/README.markdown ${STAGEDIR}${DOCSDIR}
+
+do-install-DEBUG-on:
+ ${INSTALL} ${COPY} -m ${_SHAREMODE} \
+ ${WRKSRC_DEBUG}/objs/ngx_http_set_misc_module.so \
+ ${STAGEDIR}${MODDIR}/ngx_http_set_misc_module-debug.so
+
+.include "${MASTERDIR}/Makefile"
diff --git a/www/angie-module-set-misc/files/pkg-message.in b/www/angie-module-set-misc/files/pkg-message.in
new file mode 100644
index 000000000000..29a991939d28
--- /dev/null
+++ b/www/angie-module-set-misc/files/pkg-message.in
@@ -0,0 +1,16 @@
+[
+{ type: install
+ message: <<EOM
+
+The set-misc 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/ndk_http_module.so;
+ load_module modules/ngx_http_set_misc_module.so;
+
+Please refer to the module documentation for further details:
+https://github.com/openresty/set-misc-nginx-module
+EOM
+}
+]
diff --git a/www/angie-module-set-misc/pkg-descr b/www/angie-module-set-misc/pkg-descr
new file mode 100644
index 000000000000..263e04f8a871
--- /dev/null
+++ b/www/angie-module-set-misc/pkg-descr
@@ -0,0 +1,4 @@
+Module extends the standard rewrite's directive set to provide more
+functionalities like URI escaping and unescaping, JSON quoting,
+Hexadecimal/MD5/SHA1/Base32/Base64 digest encoding and decoding,
+random number generator, and more.
diff --git a/www/angie-module-set-misc/pkg-plist b/www/angie-module-set-misc/pkg-plist
new file mode 100644
index 000000000000..0278c095b5dd
--- /dev/null
+++ b/www/angie-module-set-misc/pkg-plist
@@ -0,0 +1,3 @@
+%%DOCSDIR%%/README.markdown
+%%MODDIR%%/ngx_http_set_misc_module.so
+%%DEBUG%%%%MODDIR%%/ngx_http_set_misc_module-debug.so