diff options
Diffstat (limited to 'www/angie-module-zstd')
| -rw-r--r-- | www/angie-module-zstd/Makefile | 29 | ||||
| -rw-r--r-- | www/angie-module-zstd/files/pkg-message.in | 17 | ||||
| -rw-r--r-- | www/angie-module-zstd/pkg-descr | 4 | ||||
| -rw-r--r-- | www/angie-module-zstd/pkg-plist | 3 |
4 files changed, 53 insertions, 0 deletions
diff --git a/www/angie-module-zstd/Makefile b/www/angie-module-zstd/Makefile new file mode 100644 index 000000000000..8b527ccf061f --- /dev/null +++ b/www/angie-module-zstd/Makefile @@ -0,0 +1,29 @@ +PORTNAME= angie-module-zstd +MODULE_VERSION= 0.1.1 +MODULE_PORTREVISION= 0 +GH_TUPLE= tokers:zstd-nginx-module:${MODULE_VERSION}:module + +COMMENT= Angie zstd dynamic module +WWW= https://github.com/tokers/zstd-nginx-module/ + +LICENSE= BSD2CLAUSE + +LIB_DEPENDS= libzstd.so:archivers/zstd + +CONFIGURE_ADD= --add-dynamic-module=${WRKSRC_module} + +MASTERDIR= ${.CURDIR}/../../www/angie + +do-install: + ${MKDIR} ${STAGEDIR}${DOCSDIR} \ + ${STAGEDIR}${MODDIR} + +.for i in ngx_http_zstd_static_module ngx_http_zstd_filter_module + ${INSTALL_LIB} ${WRKSRC}/objs/${i}.so ${STAGEDIR}${MODDIR} +.endfor + +.for i in README.md + ${INSTALL_MAN} ${WRKSRC_module}/${i} ${STAGEDIR}${DOCSDIR} +.endfor + +.include "${MASTERDIR}/Makefile" diff --git a/www/angie-module-zstd/files/pkg-message.in b/www/angie-module-zstd/files/pkg-message.in new file mode 100644 index 000000000000..a514ed564dc6 --- /dev/null +++ b/www/angie-module-zstd/files/pkg-message.in @@ -0,0 +1,17 @@ +[ +{ type: install + message: <<EOM + +The zstd dynamic modules for Angie have been installed. +To enable these modules, add the following to %%PREFIX%%/etc/angie/angie.conf +and reload angie: + + load_module modules/ngx_http_zstd_filter_module.so; + load_module modules/ngx_http_zstd_static_module.so; + +Please refer to the module documentation for further details: +https://github.com/tokers/zstd-nginx-module +https://en.angie.software/angie/docs/installation/external-modules/zstd/ +EOM +} +] diff --git a/www/angie-module-zstd/pkg-descr b/www/angie-module-zstd/pkg-descr new file mode 100644 index 000000000000..f70034e027ba --- /dev/null +++ b/www/angie-module-zstd/pkg-descr @@ -0,0 +1,4 @@ +The module adds support for Zstandard compression of responses, both +dynamic (on-the-fly) and static (precompressed files). Compared to gzip, +zstd offers higher compression and decompression speeds at comparable +or better compression ratios. diff --git a/www/angie-module-zstd/pkg-plist b/www/angie-module-zstd/pkg-plist new file mode 100644 index 000000000000..28417be3d639 --- /dev/null +++ b/www/angie-module-zstd/pkg-plist @@ -0,0 +1,3 @@ +%%DOCSDIR%%/README.md +%%MODDIR%%/ngx_http_zstd_filter_module.so +%%MODDIR%%/ngx_http_zstd_static_module.so |
