Files
gentoo/www-nginx/ngx-cache-purge/ngx-cache-purge-2.3.ebuild
Zurab Kvachadze 846db368a3 www-nginx/ngx-cache-purge: new package, add 2.3
nginx_cache_purge[1] is an NGINX module which adds ability to purge
content from FastCGI, proxy, SCGI and uWSGI caches.

Included is a patch from a pull request upstream[2] adding support for
building nginx_cache_purge as dynamic module. Additionally, tests are
patched to not set proxy_temp_path, which conflicts with recent versions
of dev-perl/Test-Nginx.

[1]: https://github.com/FRiCKLE/ngx_cache_purge
[2]: https://github.com/FRiCKLE/ngx_cache_purge/pull/78

Closes: https://bugs.gentoo.org/959673
Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/43636
Closes: https://github.com/gentoo/gentoo/pull/43636
Signed-off-by: Sam James <sam@gentoo.org>
2025-09-06 15:23:57 +01:00

27 lines
645 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="ngx_cache_purge"
NGINX_MOD_S="${WORKDIR}/${MY_PN}-${PV}"
NGINX_MOD_OPENRESTY_TESTS=1
inherit nginx-module
DESCRIPTION="NGINX module allowing to purge the FastCGI, proxy, SCGI and uWSGI caches"
HOMEPAGE="https://github.com/FRiCKLE/ngx_cache_purge"
SRC_URI="
https://github.com/FRiCKLE/ngx_cache_purge/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64"
PATCHES=(
"${FILESDIR}/${PN}-2.3-add-dynamic-module-support.patch"
"${FILESDIR}/${PN}-2.3-do-not-set-proxy_temp_path.patch"
)