diff options
author | Oleg A. Mamontov <oleg@mamontov.net> | 2023-08-31 00:01:09 +0300 |
---|---|---|
committer | Robert Clausecker <fuz@FreeBSD.org> | 2023-09-10 12:13:01 -0400 |
commit | e2f23b676e5af1287417d0cc670a10fd22efe842 (patch) | |
tree | 00738de19771df6a2fa753574ffe2d880742efd0 | |
parent | b8d28925a9b68ed98a7bbd5b659b86505b0d143a (diff) | |
download | freebsd-ports-e2f23b676e5af1287417d0cc670a10fd22efe842.zip |
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
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/angie-module-set-misc/Makefile | 28 | ||||
-rw-r--r-- | www/angie-module-set-misc/files/pkg-message.in | 16 | ||||
-rw-r--r-- | www/angie-module-set-misc/pkg-descr | 4 | ||||
-rw-r--r-- | www/angie-module-set-misc/pkg-plist | 3 |
5 files changed, 52 insertions, 0 deletions
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 |