git: c92ac0ca4d66 - main - www/nginx-module-cache-purge: Add New Port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Sep 2026 12:49:52 UTC
The branch main has been updated by joneum:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c92ac0ca4d667d094863dca4b74ec301465b5119
commit c92ac0ca4d667d094863dca4b74ec301465b5119
Author: Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2026-09-07 12:43:04 +0000
Commit: Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2026-09-07 12:49:41 +0000
www/nginx-module-cache-purge: Add New Port
The cache_purge module adds the ability to purge content from the
proxy, FastCGI, SCGI and uwsgi caches of nginx. This port installs the
module sources only, the module itself is built by the nginx ports.
Sponsored by: Netzkommune GmbH
---
www/Makefile | 1 +
www/nginx-module-cache-purge/Makefile | 33 +++++++++++++++++++++++
www/nginx-module-cache-purge/distinfo | 3 +++
www/nginx-module-cache-purge/files/pkg-message.in | 14 ++++++++++
www/nginx-module-cache-purge/pkg-descr | 5 ++++
5 files changed, 56 insertions(+)
diff --git a/www/Makefile b/www/Makefile
index 9854accbaa8b..5df0ec536e49 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -527,6 +527,7 @@
SUBDIR += nginx-full
SUBDIR += nginx-lite
SUBDIR += nginx-module-array-var
+ SUBDIR += nginx-module-cache-purge
SUBDIR += nginx-module-lua
SUBDIR += nginx-module-lua-stream
SUBDIR += nginx-module-ndk
diff --git a/www/nginx-module-cache-purge/Makefile b/www/nginx-module-cache-purge/Makefile
new file mode 100644
index 000000000000..05495c9da3d0
--- /dev/null
+++ b/www/nginx-module-cache-purge/Makefile
@@ -0,0 +1,33 @@
+PORTNAME= nginx-module-cache-purge
+DISTVERSION= 3.0.2
+CATEGORIES= www
+
+MAINTAINER= joneum@FreeBSD.org
+COMMENT= Sources of the cache_purge module for the NGINX ports
+WWW= https://github.com/nginx-modules/ngx_cache_purge
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USE_GITHUB= yes
+GH_ACCOUNT= nginx-modules
+GH_PROJECT= ngx_cache_purge
+
+NO_ARCH= yes
+NO_BUILD= yes
+
+SUB_FILES= pkg-message
+
+_MODDIR= share/nginx/modules/${PORTNAME}
+MODULESDIR= ${PREFIX}/${_MODDIR}
+
+PLIST_FILES= ${_MODDIR}/config \
+ ${_MODDIR}/ngx_cache_purge_module.c
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${MODULESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/config \
+ ${WRKSRC}/ngx_cache_purge_module.c \
+ ${STAGEDIR}${MODULESDIR}
+
+.include <bsd.port.mk>
diff --git a/www/nginx-module-cache-purge/distinfo b/www/nginx-module-cache-purge/distinfo
new file mode 100644
index 000000000000..41642dcbac18
--- /dev/null
+++ b/www/nginx-module-cache-purge/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1788743565
+SHA256 (nginx-modules-ngx_cache_purge-3.0.2_GH0.tar.gz) = 627f60bfd514bbe6de7af1bfcb4c69271d4588348d5e359cbd26679adf0f2fb0
+SIZE (nginx-modules-ngx_cache_purge-3.0.2_GH0.tar.gz) = 42151
diff --git a/www/nginx-module-cache-purge/files/pkg-message.in b/www/nginx-module-cache-purge/files/pkg-message.in
new file mode 100644
index 000000000000..b2bbfb8dbb6b
--- /dev/null
+++ b/www/nginx-module-cache-purge/files/pkg-message.in
@@ -0,0 +1,14 @@
+[
+{ type: install
+ message: <<EOM
+This package contains the sources of the cache_purge module only. It
+does not install a loadable module.
+
+The module itself is built by the nginx ports. To use cache_purge,
+build www/nginx, www/nginx-devel or www/freenginx with the CACHE_PURGE
+option enabled. Those ports pick the sources up from
+%%PREFIX%%/share/nginx/modules/nginx-module-cache-purge and produce
+ngx_http_cache_purge_module.so.
+EOM
+}
+]
diff --git a/www/nginx-module-cache-purge/pkg-descr b/www/nginx-module-cache-purge/pkg-descr
new file mode 100644
index 000000000000..b452cd5c6fbe
--- /dev/null
+++ b/www/nginx-module-cache-purge/pkg-descr
@@ -0,0 +1,5 @@
+The cache_purge module adds the ability to purge content from the
+proxy, FastCGI, SCGI and uwsgi caches of nginx.
+
+This port only installs the module sources. The module itself is built
+by the nginx ports when their CACHE_PURGE option is enabled.