From 473a0f1ace19e3bd0192bd3bb05ffba96e86a1ce Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Sat, 5 Jul 2025 18:58:43 +0000 Subject: Adding metadata --- dev-lua/lua-resty-core/Manifest | 1 + .../lua-resty-core/lua-resty-core-0.1.30.ebuild | 34 ++++++++++ dev-lua/lua-resty-core/metadata.xml | 24 +++++++ dev-lua/lua-resty-lrucache/Manifest | 1 + .../lua-resty-lrucache-0.15.ebuild | 34 ++++++++++ dev-lua/lua-resty-lrucache/metadata.xml | 19 ++++++ dev-lua/lua-resty-memcached/Manifest | 1 + .../lua-resty-memcached-0.17.ebuild | 34 ++++++++++ dev-lua/lua-resty-memcached/metadata.xml | 16 +++++ dev-lua/lua-resty-mysql/Manifest | 1 + .../lua-resty-mysql/lua-resty-mysql-0.27.ebuild | 38 +++++++++++ dev-lua/lua-resty-mysql/metadata.xml | 22 +++++++ dev-lua/lua-resty-string/Manifest | 1 + ...sty-string-0.16-explicitly-load-libcrypto.patch | 73 ++++++++++++++++++++++ .../lua-resty-string/lua-resty-string-0.16.ebuild | 41 ++++++++++++ dev-lua/lua-resty-string/metadata.xml | 16 +++++ dev-lua/luasystem/luasystem-0.6.2.ebuild | 2 +- 17 files changed, 357 insertions(+), 1 deletion(-) create mode 100644 dev-lua/lua-resty-core/Manifest create mode 100644 dev-lua/lua-resty-core/lua-resty-core-0.1.30.ebuild create mode 100644 dev-lua/lua-resty-core/metadata.xml create mode 100644 dev-lua/lua-resty-lrucache/Manifest create mode 100644 dev-lua/lua-resty-lrucache/lua-resty-lrucache-0.15.ebuild create mode 100644 dev-lua/lua-resty-lrucache/metadata.xml create mode 100644 dev-lua/lua-resty-memcached/Manifest create mode 100644 dev-lua/lua-resty-memcached/lua-resty-memcached-0.17.ebuild create mode 100644 dev-lua/lua-resty-memcached/metadata.xml create mode 100644 dev-lua/lua-resty-mysql/Manifest create mode 100644 dev-lua/lua-resty-mysql/lua-resty-mysql-0.27.ebuild create mode 100644 dev-lua/lua-resty-mysql/metadata.xml create mode 100644 dev-lua/lua-resty-string/Manifest create mode 100644 dev-lua/lua-resty-string/files/lua-resty-string-0.16-explicitly-load-libcrypto.patch create mode 100644 dev-lua/lua-resty-string/lua-resty-string-0.16.ebuild create mode 100644 dev-lua/lua-resty-string/metadata.xml (limited to 'dev-lua') diff --git a/dev-lua/lua-resty-core/Manifest b/dev-lua/lua-resty-core/Manifest new file mode 100644 index 000000000000..3a2f5fd11082 --- /dev/null +++ b/dev-lua/lua-resty-core/Manifest @@ -0,0 +1 @@ +DIST lua-resty-core-0.1.30.tar.gz 226422 BLAKE2B c1afe9d7f06b9fe52ae8ea1840afa9ce7525f01aa7f9bd632d08ee9b84e2253fb531ee506e3e9acd641cc30e978d2d2f54d9e986c3982974ae866f561208bc84 SHA512 e3951e71600b16732b3d1fc0e9c9497e9e73e739628ca06171e0274ebe880e3ce77a7992a98e911e33fbd336bc723c45e198357046308d5043e64e3003ccb26f diff --git a/dev-lua/lua-resty-core/lua-resty-core-0.1.30.ebuild b/dev-lua/lua-resty-core/lua-resty-core-0.1.30.ebuild new file mode 100644 index 000000000000..5b735c2224ed --- /dev/null +++ b/dev-lua/lua-resty-core/lua-resty-core-0.1.30.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Openresty only ever supports luajit. +LUA_COMPAT=( lua5-{1,3,4} luajit ) +inherit lua-single + +DESCRIPTION="FFI-based API for lua-nginx-module" +HOMEPAGE="https://github.com/openresty/lua-resty-core" +SRC_URI=" + https://github.com/openresty/lua-resty-core/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz +" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +# Tests require replicating much of nginx-module_src_test() in each +# dev-lua/lua-resty-* ebuild. +RESTRICT="test" + +REQUIRED_USE="${LUA_REQUIRED_USE}" + +BDEPEND="virtual/pkgconfig" +DEPEND="${LUA_DEPS}" +RDEPEND="${DEPEND}" + +src_configure() { + # The directory where to Lua files are to be installed, used by the build + # system. + export LUA_LIB_DIR="$(lua_get_lmod_dir)" + default +} diff --git a/dev-lua/lua-resty-core/metadata.xml b/dev-lua/lua-resty-core/metadata.xml new file mode 100644 index 000000000000..1c411194b9fe --- /dev/null +++ b/dev-lua/lua-resty-core/metadata.xml @@ -0,0 +1,24 @@ + + + + + zurabid2016@gmail.com + Zurab Kvachadze + + + proxy-maint@gentoo.org + Proxy Maintainers + + + This Lua library reimplements part of the ngx_lua module's NGINX API for Lua with LuaJIT FFI + and installs the new FFI-based Lua API into the ngx.* and ndk.* namespaces used by the + ngx_lua module. + + In addition, this Lua library implements any significant new Lua APIs of the ngx_lua module + as proper Lua modules, like ngx.semaphore and ngx.balancer. + + + https://github.com/openresty/lua-resty-core/issues + + gentoo-staging + \ No newline at end of file diff --git a/dev-lua/lua-resty-lrucache/Manifest b/dev-lua/lua-resty-lrucache/Manifest new file mode 100644 index 000000000000..3af68d23c1fa --- /dev/null +++ b/dev-lua/lua-resty-lrucache/Manifest @@ -0,0 +1 @@ +DIST lua-resty-lrucache-0.15.tar.gz 17834 BLAKE2B 80e6c1472de7df1b4c4e34cc002d64ae2aad92da8e0346325bb75e3ddb03c9015d5c34ffc961afbab6a06f0922eb11c0e17a1a91ddb0c84d42fe8c3aaf7c2c07 SHA512 544d862fb6de66c6a9e342ba62aaf11b639ba199c97261a74881a9b395705e2a78b96d58a405dab7793b53be12cd8108d3861f6d30c3b3950b565fed1547a47d diff --git a/dev-lua/lua-resty-lrucache/lua-resty-lrucache-0.15.ebuild b/dev-lua/lua-resty-lrucache/lua-resty-lrucache-0.15.ebuild new file mode 100644 index 000000000000..679219f46dc7 --- /dev/null +++ b/dev-lua/lua-resty-lrucache/lua-resty-lrucache-0.15.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Openresty only ever supports luajit. +LUA_COMPAT=( lua5-{1,3,4} luajit ) +inherit lua-single + +DESCRIPTION="Lua-land LRU Cache based on LuaJIT FFI" +HOMEPAGE="https://github.com/openresty/lua-resty-lrucache" +SRC_URI=" + https://github.com/openresty/lua-resty-lrucache/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz +" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +# Tests require replicating much of nginx-module_src_test() in each +# dev-lua/lua-resty-* ebuild. +RESTRICT="test" + +REQUIRED_USE="${LUA_REQUIRED_USE}" + +BDEPEND="virtual/pkgconfig" +DEPEND="${LUA_DEPS}" +RDEPEND="${DEPEND}" + +src_configure() { + # The directory where to Lua files are to be installed, used by the build + # system. + export LUA_LIB_DIR="$(lua_get_lmod_dir)" + default +} diff --git a/dev-lua/lua-resty-lrucache/metadata.xml b/dev-lua/lua-resty-lrucache/metadata.xml new file mode 100644 index 000000000000..c6d100793ed8 --- /dev/null +++ b/dev-lua/lua-resty-lrucache/metadata.xml @@ -0,0 +1,19 @@ + + + + + zurabid2016@gmail.com + Zurab Kvachadze + + + proxy-maint@gentoo.org + Proxy Maintainers + + + This library implements a simple LRU cache for OpenResty and the ngx_lua module. + + + https://github.com/openresty/lua-resty-lrucache/issues + + gentoo-staging + \ No newline at end of file diff --git a/dev-lua/lua-resty-memcached/Manifest b/dev-lua/lua-resty-memcached/Manifest new file mode 100644 index 000000000000..1f9d3170a1fa --- /dev/null +++ b/dev-lua/lua-resty-memcached/Manifest @@ -0,0 +1 @@ +DIST lua-resty-memcached-0.17.tar.gz 21216 BLAKE2B 3b65a06d50fce5cc33d570e558e412446c649173e5e495bf1b8d00f63114fe451e9fb4f3284cd314cdfe9561f87291b45b32750c2a290e8d0f05b6996fa765fd SHA512 efc7164e01816133b24a60524078565fa4c5f4f1e22608e59d49bb825c8df459ecd315c434c390be2641d3fd55cdfd960f607ced63675cdcd11dd254196b1a63 diff --git a/dev-lua/lua-resty-memcached/lua-resty-memcached-0.17.ebuild b/dev-lua/lua-resty-memcached/lua-resty-memcached-0.17.ebuild new file mode 100644 index 000000000000..80a0cbb22d86 --- /dev/null +++ b/dev-lua/lua-resty-memcached/lua-resty-memcached-0.17.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Openresty only ever supports luajit. +LUA_COMPAT=( lua5-{1,3,4} luajit ) +inherit lua-single + +DESCRIPTION="Lua memcached client driver based on cosocket API for ngx-lua-module" +HOMEPAGE="https://github.com/openresty/lua-resty-memcached" +SRC_URI=" + https://github.com/openresty/lua-resty-memcached/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz +" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +# Tests require replicating much of nginx-module_src_test() in each +# dev-lua/lua-resty-* ebuild. +RESTRICT="test" + +REQUIRED_USE="${LUA_REQUIRED_USE}" + +BDEPEND="virtual/pkgconfig" +DEPEND="${LUA_DEPS}" +RDEPEND="${DEPEND}" + +src_configure() { + # The directory where to Lua files are to be installed, used by the build + # system. + export LUA_LIB_DIR="$(lua_get_lmod_dir)" + default +} diff --git a/dev-lua/lua-resty-memcached/metadata.xml b/dev-lua/lua-resty-memcached/metadata.xml new file mode 100644 index 000000000000..88d6463dba2d --- /dev/null +++ b/dev-lua/lua-resty-memcached/metadata.xml @@ -0,0 +1,16 @@ + + + + + zurabid2016@gmail.com + Zurab Kvachadze + + + proxy-maint@gentoo.org + Proxy Maintainers + + + https://github.com/openresty/lua-resty-memcached/issues + + gentoo-staging + \ No newline at end of file diff --git a/dev-lua/lua-resty-mysql/Manifest b/dev-lua/lua-resty-mysql/Manifest new file mode 100644 index 000000000000..b4bb7a726d6c --- /dev/null +++ b/dev-lua/lua-resty-mysql/Manifest @@ -0,0 +1 @@ +DIST lua-resty-mysql-0.27.tar.gz 128105 BLAKE2B 32b012691dd6b8aa29bd663b16d51d775c85268abd2a6018be5d154e8af7b191f87d26e627208bf99ee64bd329e71feab17df2636d9e83b3454412ce916ef591 SHA512 5b3ee2ae61fc87af9253d23d79fdfeffa78e8167a72d37ec31a27686b353ec8b5a3863ba8281f69f26acfcdb984eaa759646c235a3278476db2059970f613f03 diff --git a/dev-lua/lua-resty-mysql/lua-resty-mysql-0.27.ebuild b/dev-lua/lua-resty-mysql/lua-resty-mysql-0.27.ebuild new file mode 100644 index 000000000000..f9fa1ba4a479 --- /dev/null +++ b/dev-lua/lua-resty-mysql/lua-resty-mysql-0.27.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Openresty only ever supports luajit. +LUA_COMPAT=( lua5-{1,3,4} luajit ) +inherit lua-single + +DESCRIPTION="Nonblocking Lua MySQL driver library for the ngx-lua-module NGINX module" +HOMEPAGE="https://github.com/openresty/lua-resty-mysql" +SRC_URI=" + https://github.com/openresty/lua-resty-mysql/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz +" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +# Tests require replicating much of nginx-module_src_test() in each +# dev-lua/lua-resty-* ebuild. +RESTRICT="test" + +REQUIRED_USE="${LUA_REQUIRED_USE}" + +BDEPEND="virtual/pkgconfig" +DEPEND="${LUA_DEPS}" +RDEPEND=" + ${DEPEND} + dev-lua/lua-resty-string[${LUA_SINGLE_USEDEP}] + $(lua_gen_cond_dep 'dev-lua/LuaBitOp[${LUA_USEDEP}]') +" + +src_configure() { + # The directory where to Lua files are to be installed, used by the build + # system. + export LUA_LIB_DIR="$(lua_get_lmod_dir)" + default +} diff --git a/dev-lua/lua-resty-mysql/metadata.xml b/dev-lua/lua-resty-mysql/metadata.xml new file mode 100644 index 000000000000..ecfde92ca25c --- /dev/null +++ b/dev-lua/lua-resty-mysql/metadata.xml @@ -0,0 +1,22 @@ + + + + + zurabid2016@gmail.com + Zurab Kvachadze + + + proxy-maint@gentoo.org + Proxy Maintainers + + + This Lua library is a MySQL client driver for the ngx-lua-module NGINX module. + + lua-resty-mysql takes advantage of ngx-lua-module's cosocket API, which ensures 100% + nonblocking behavior. + + + https://github.com/openresty/lua-resty-mysql/issues + + gentoo-staging + \ No newline at end of file diff --git a/dev-lua/lua-resty-string/Manifest b/dev-lua/lua-resty-string/Manifest new file mode 100644 index 000000000000..dece9c7070ec --- /dev/null +++ b/dev-lua/lua-resty-string/Manifest @@ -0,0 +1 @@ +DIST lua-resty-string-0.16.tar.gz 13078 BLAKE2B 9c0903da36f6309fed47c9f184510c53877d35c86a8b6ba91e008c5010a8b65adec70b7e6911e51cae1121c5c2c64638b3c41117ae4b7949613766d5403fda31 SHA512 dff61ebfe42ea055c2d20ab8d54a53a88d67b40dfb87bb97aa91e857a8f95884c2444d50942a6b7e580f503cc98467799b421dc659dc5d1d41c64fb30d303746 diff --git a/dev-lua/lua-resty-string/files/lua-resty-string-0.16-explicitly-load-libcrypto.patch b/dev-lua/lua-resty-string/files/lua-resty-string-0.16-explicitly-load-libcrypto.patch new file mode 100644 index 000000000000..63712785d87b --- /dev/null +++ b/dev-lua/lua-resty-string/files/lua-resty-string-0.16-explicitly-load-libcrypto.patch @@ -0,0 +1,73 @@ +From 73c6a2fbb376ee6550b15e2c6487c86c27ed3a71 Mon Sep 17 00:00:00 2001 +From: Zurab Kvachadze +Date: Fri, 14 Mar 2025 16:49:04 +0100 +Subject: [PATCH] lib/resty: Explicitly load libcrypto in all crypto-exporting + FFI modules + +Lua modules in lib/resty provide FFI wrappers for cryptographic OpenSSL +functions without explicitly loading libcrypto itself. This commit makes +the modules load the library. + +Signed-off-by: Zurab Kvachadze +--- + lib/resty/aes.lua | 2 ++ + lib/resty/md5.lua | 2 ++ + lib/resty/random.lua | 2 ++ + lib/resty/sha.lua | 2 ++ + 4 files changed, 8 insertions(+) + +diff --git a/lib/resty/aes.lua b/lib/resty/aes.lua +index 377476f..8a9f9a1 100644 +--- a/lib/resty/aes.lua ++++ b/lib/resty/aes.lua +@@ -11,6 +11,8 @@ local C = ffi.C + local setmetatable = setmetatable + --local error = error + local type = type ++-- Load libcrypto into global namespace. ++_ = ffi.load("crypto", true) + + + local _M = { _VERSION = '0.16' } +diff --git a/lib/resty/md5.lua b/lib/resty/md5.lua +index 66b3b3e..09ce8c8 100644 +--- a/lib/resty/md5.lua ++++ b/lib/resty/md5.lua +@@ -7,6 +7,8 @@ local ffi_str = ffi.string + local C = ffi.C + local setmetatable = setmetatable + --local error = error ++-- Load libcrypto into global namespace. ++_ = ffi.load("crypto", true) + + + local _M = { _VERSION = '0.16' } +diff --git a/lib/resty/random.lua b/lib/resty/random.lua +index 153b1f3..673bf40 100644 +--- a/lib/resty/random.lua ++++ b/lib/resty/random.lua +@@ -7,6 +7,8 @@ local ffi_str = ffi.string + local C = ffi.C + --local setmetatable = setmetatable + --local error = error ++-- Load libcrypto into global namespace. ++_ = ffi.load("crypto", true) + + + local _M = { _VERSION = '0.16' } +diff --git a/lib/resty/sha.lua b/lib/resty/sha.lua +index ce4e50a..b631b1f 100644 +--- a/lib/resty/sha.lua ++++ b/lib/resty/sha.lua +@@ -2,6 +2,8 @@ + + + local ffi = require "ffi" ++-- Load libcrypto into global namespace. ++_ = ffi.load("crypto", true) + + + local _M = { _VERSION = '0.16' } +-- +2.45.3 + diff --git a/dev-lua/lua-resty-string/lua-resty-string-0.16.ebuild b/dev-lua/lua-resty-string/lua-resty-string-0.16.ebuild new file mode 100644 index 000000000000..419f037f009a --- /dev/null +++ b/dev-lua/lua-resty-string/lua-resty-string-0.16.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Openresty only ever supports luajit. +LUA_COMPAT=( lua5-{1,3,4} luajit ) +inherit lua-single + +DESCRIPTION="String utilities and common hash functions for the ngx-lua-module NGINX module" +HOMEPAGE="https://github.com/openresty/lua-resty-string" +SRC_URI=" + https://github.com/openresty/lua-resty-string/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz +" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +# Tests require replicating much of nginx-module_src_test() in each +# dev-lua/lua-resty-* ebuild. +RESTRICT="test" + +REQUIRED_USE="${LUA_REQUIRED_USE}" + +BDEPEND="virtual/pkgconfig" +DEPEND=" + ${LUA_DEPS} + dev-libs/openssl:= +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-0.16-explicitly-load-libcrypto.patch" +) + +src_configure() { + # The directory where to Lua files are to be installed, used by the build + # system. + export LUA_LIB_DIR="$(lua_get_lmod_dir)" + default +} diff --git a/dev-lua/lua-resty-string/metadata.xml b/dev-lua/lua-resty-string/metadata.xml new file mode 100644 index 000000000000..c8a78550da05 --- /dev/null +++ b/dev-lua/lua-resty-string/metadata.xml @@ -0,0 +1,16 @@ + + + + + zurabid2016@gmail.com + Zurab Kvachadze + + + proxy-maint@gentoo.org + Proxy Maintainers + + + https://github.com/openresty/lua-resty-string/issues + + gentoo-staging + \ No newline at end of file diff --git a/dev-lua/luasystem/luasystem-0.6.2.ebuild b/dev-lua/luasystem/luasystem-0.6.2.ebuild index 57b6b3e3ecc3..1c37e0044df5 100644 --- a/dev-lua/luasystem/luasystem-0.6.2.ebuild +++ b/dev-lua/luasystem/luasystem-0.6.2.ebuild @@ -15,7 +15,7 @@ S="${WORKDIR}/${PN}-${MY_PV}" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 arm arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc x86" +KEYWORDS="amd64 arm arm64 ~hppa ppc ~ppc64 ~riscv ~sparc x86" IUSE="test" REQUIRED_USE="${LUA_REQUIRED_USE}" RESTRICT="!test? ( test )" -- cgit v1.3.1