ngx-srcache[1] provides "transparent caching layer for arbitrary NGINX
locations".

[1]: https://github.com/openresty/srcache-nginx-module

Signed-off-by: Zurab Kvachadze <zurabid2...@gmail.com>
---
 www-nginx/ngx-srcache/Manifest                |  1 +
 www-nginx/ngx-srcache/metadata.xml            | 25 +++++++++++++++++++
 www-nginx/ngx-srcache/ngx-srcache-0.33.ebuild | 20 +++++++++++++++
 3 files changed, 46 insertions(+)
 create mode 100644 www-nginx/ngx-srcache/Manifest
 create mode 100644 www-nginx/ngx-srcache/metadata.xml
 create mode 100644 www-nginx/ngx-srcache/ngx-srcache-0.33.ebuild

diff --git a/www-nginx/ngx-srcache/Manifest b/www-nginx/ngx-srcache/Manifest
new file mode 100644
index 000000000000..8b319366a602
--- /dev/null
+++ b/www-nginx/ngx-srcache/Manifest
@@ -0,0 +1 @@
+DIST ngx-srcache-0.33.tar.gz 51025 BLAKE2B 
e45591e8901514ce14597c41f464f27007e566010f19ffe3e5310eaafb8a3c2b6b01755936ca6abe3fe2e8e87125cdcc656d3d980d5523a4fba02f441fa75242
 SHA512 
d96003e636b1a18bc1ad2f5005edcc96f3e386471f8a8242c0d882013a3bd1463eaf435203e25c4d8cddd99b5bf028664c4672958133b51d5b6c833fa9a2da4c
diff --git a/www-nginx/ngx-srcache/metadata.xml 
b/www-nginx/ngx-srcache/metadata.xml
new file mode 100644
index 000000000000..f8f10b14dab9
--- /dev/null
+++ b/www-nginx/ngx-srcache/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person" proxied="yes">
+               <email>zurabid2...@gmail.com</email>
+               <name>Zurab Kvachadze</name>
+       </maintainer>
+       <maintainer type="project" proxied="proxy">
+               <email>proxy-ma...@gentoo.org</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <longdescription>
+               The ngx-srcache NGINX module provides a transparent caching 
layer for arbitrary NGINX
+               locations (like those use an upstream or even serve static disk 
files). The caching behavior
+               is mostly compatible with RFC 2616.
+
+               Usually, ngx-memc is used together with this module to provide 
a concrete caching
+               storage backend. But technically, any modules that provide a 
REST interface can be used as
+               the fetching and storage subrequests used by this module.
+       </longdescription>
+       <upstream>
+               
<bugs-to>https://github.com/openresty/srcache-nginx-module/issues</bugs-to>
+               <remote-id 
type="github">openresty/srcache-nginx-module</remote-id>
+       </upstream>
+</pkgmetadata>
diff --git a/www-nginx/ngx-srcache/ngx-srcache-0.33.ebuild 
b/www-nginx/ngx-srcache/ngx-srcache-0.33.ebuild
new file mode 100644
index 000000000000..cabc43d06fb8
--- /dev/null
+++ b/www-nginx/ngx-srcache/ngx-srcache-0.33.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN="srcache-nginx-module"
+NGINX_MOD_S="${WORKDIR}/${MY_PN}-${PV}"
+
+inherit nginx-module
+
+DESCRIPTION="An NGINX module enabling transparent subrequest-based caching"
+HOMEPAGE="https://github.com/openresty/srcache-nginx-module";
+SRC_URI="
+       
https://github.com/openresty/srcache-nginx-module/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz
+"
+
+LICENSE="BSD-2"
+SLOT="0"
+
+RESTRICT="test"
-- 
2.45.3


Reply via email to