Skip to content

Commit

Permalink
www/angie-module-cache-purge: Angie cache_purge dynamic module
Browse files Browse the repository at this point in the history
Module which adds ability to purge content from FastCGI, proxy, SCGI and
uWSGI caches.

PR:		272999
  • Loading branch information
lonerr authored and clausecker committed Aug 9, 2023
1 parent 41d2ade commit e031e6e
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions www/Makefile
Expand Up @@ -29,6 +29,7 @@
SUBDIR += angie
SUBDIR += angie-module-auth-jwt
SUBDIR += angie-module-brotli
SUBDIR += angie-module-cache-purge
SUBDIR += angie-module-geoip2
SUBDIR += anyremote2html
SUBDIR += apache-mode.el
Expand Down
22 changes: 22 additions & 0 deletions www/angie-module-cache-purge/Makefile
@@ -0,0 +1,22 @@
PORTNAME= angie-module-cache-purge
GH_TUPLE= nginx-modules:ngx_cache_purge:2.5.3:module

COMMENT= Angie cache_purge dynamic module

MASTERDIR= ${.CURDIR}/../../www/angie

do-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${MKDIR} ${STAGEDIR}${MODDIR}

${INSTALL_LIB} ${WRKSRC}/objs/ngx_http_cache_purge_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_cache_purge_module.so \
${STAGEDIR}${MODDIR}/ngx_http_cache_purge_module-debug.so

.include "${MASTERDIR}/Makefile"
15 changes: 15 additions & 0 deletions www/angie-module-cache-purge/files/pkg-message.in
@@ -0,0 +1,15 @@
[
{ type: install
message: <<EOM

The cache_purge 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_cache_purge_module.so;

Please refer to the module documentation for further details:
https://github.com/nginx-modules/ngx_cache_purge
EOM
}
]
3 changes: 3 additions & 0 deletions www/angie-module-cache-purge/pkg-descr
@@ -0,0 +1,3 @@
Module adds ability to purge content from FastCGI, proxy, SCGI and uWSGI
caches. A purge operation removes the content with the same cache key as the
purge request has. This module is production-ready.
3 changes: 3 additions & 0 deletions www/angie-module-cache-purge/pkg-plist
@@ -0,0 +1,3 @@
%%DOCSDIR%%/README.md
%%MODDIR%%/ngx_http_cache_purge_module.so
%%DEBUG%%%%MODDIR%%/ngx_http_cache_purge_module-debug.so

0 comments on commit e031e6e

Please sign in to comment.