commit:     2c02af8cfe4afb34eaebcd45c5e8445a02173dbe
Author:     Zurab Kvachadze <zurabid2016 <AT> gmail <DOT> com>
AuthorDate: Tue Feb 18 15:12:41 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jul  5 07:27:06 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c02af8c

www-nginx/ngx-lua-upstream: new package, add 0.07

ngx-lua-upstream[1] is a "NGINX C module to expose Lua API to ngx_lua
for NGINX upstreams".

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

Signed-off-by: Zurab Kvachadze <zurabid2016 <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam <AT> gentoo.org>

 www-nginx/ngx-lua-upstream/Manifest                |  1 +
 www-nginx/ngx-lua-upstream/metadata.xml            | 16 +++++++++
 .../ngx-lua-upstream/ngx-lua-upstream-0.07.ebuild  | 38 ++++++++++++++++++++++
 3 files changed, 55 insertions(+)

diff --git a/www-nginx/ngx-lua-upstream/Manifest 
b/www-nginx/ngx-lua-upstream/Manifest
new file mode 100644
index 000000000000..55a14a93f4bc
--- /dev/null
+++ b/www-nginx/ngx-lua-upstream/Manifest
@@ -0,0 +1 @@
+DIST ngx-lua-upstream-0.07.tar.gz 12763 BLAKE2B 
45867c528cca9f2c4d057167609863e9b772403a6fabac4e270b541006dbb49d169a2841c02b8a075a591a0efd3ea2227f6fdf5810c5819ee7bcf455a0444432
 SHA512 
72887c4490854b099cb26bb3f840073a36b0d812bde4486f04dc1be182ca74f0d1e3fd709e77c240c2dcf37665f74cf04e188ea9efe8e127c6789b27b487d0cd

diff --git a/www-nginx/ngx-lua-upstream/metadata.xml 
b/www-nginx/ngx-lua-upstream/metadata.xml
new file mode 100644
index 000000000000..4cf7d31adb2d
--- /dev/null
+++ b/www-nginx/ngx-lua-upstream/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person" proxied="yes">
+               <email>[email protected]</email>
+               <name>Zurab Kvachadze</name>
+       </maintainer>
+       <maintainer type="project" proxied="proxy">
+               <email>[email protected]</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <upstream>
+               
<bugs-to>https://github.com/openresty/lua-upstream-nginx-module/issues</bugs-to>
+               <remote-id 
type="github">openresty/lua-upstream-nginx-module</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/www-nginx/ngx-lua-upstream/ngx-lua-upstream-0.07.ebuild 
b/www-nginx/ngx-lua-upstream/ngx-lua-upstream-0.07.ebuild
new file mode 100644
index 000000000000..5fd8aa16dac1
--- /dev/null
+++ b/www-nginx/ngx-lua-upstream/ngx-lua-upstream-0.07.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Upstream supports luajit only.
+LUA_COMPAT=( luajit )
+
+MY_PN="lua-upstream-nginx-module"
+NGINX_MOD_S="${WORKDIR}/${MY_PN}-${PV}"
+
+NGINX_MOD_LINK_MODULES=( www-nginx/ngx-lua-module )
+
+inherit flag-o-matic lua-single nginx-module
+
+DESCRIPTION="An NGINX C module exposing ngx-lua-module's Lua APIs for NGINX 
upstreams"
+HOMEPAGE="https://github.com/openresty/lua-upstream-nginx-module";
+SRC_URI="
+       
https://github.com/openresty/lua-upstream-nginx-module/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz
+"
+
+LICENSE="BSD-2"
+SLOT="0"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+RESTRICT="test"
+
+BDEPEND="virtual/pkgconfig"
+DEPEND="${LUA_DEPS}"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+       ngx_mod_append_libs "$(lua_get_LIBS)"
+       append-cflags "$(lua_get_CFLAGS)"
+
+       nginx-module_src_configure
+}

Reply via email to