* [gentoo-commits] repo/gentoo:master commit in: app-metrics/nginx-lua-prometheus/, profiles/
@ 2020-12-21 13:56 Marek Szuba
0 siblings, 0 replies; only message in thread
From: Marek Szuba @ 2020-12-21 13:56 UTC (permalink / raw
To: gentoo-commits
commit: 479b77e4b17c6bf2ae1a88a0f54ff91b14c106b8
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 21 13:53:15 2020 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Mon Dec 21 13:56:49 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=479b77e4
app-metrics/nginx-lua-prometheus: migrate to lua-single.eclass
Pure-Lua module - but not really multi-impl because being used internally
by nginx, it must only be available for the LUA_SINGLE_TARGET of the latter.
Closes: https://bugs.gentoo.org/752561
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
...ginx-lua-prometheus-0.1_pre20170610-r100.ebuild | 39 ++++++++++++++++++++++
profiles/package.mask | 1 +
2 files changed, 40 insertions(+)
diff --git a/app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610-r100.ebuild b/app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610-r100.ebuild
new file mode 100644
index 00000000000..cd6f311c9ea
--- /dev/null
+++ b/app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610-r100.ebuild
@@ -0,0 +1,39 @@
+# Copyright 2019-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# This should be kept in sync with implementations supported
+# by www-servers/nginx
+LUA_COMPAT=( luajit )
+
+# This is the upstream tag which corresponds to this release.
+# It needs to be updated with every bump.
+TAG="0.1-20170610"
+
+inherit lua-single
+
+DESCRIPTION="Library that exports Nginx metrics to Prometheus"
+HOMEPAGE="https://github.com/knyar/nginx-lua-prometheus"
+SRC_URI="https://github.com/knyar/${PN}/archive/${TAG}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+COMMON_DEPEND="${LUA_DEPS}"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}
+ www-servers/nginx[nginx_modules_http_lua,${LUA_SINGLE_USEDEP}]"
+BDEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${PN}-${TAG}"
+
+src_install() {
+ insinto "$(lua_get_lmod_dir)"/${PN}
+ doins prometheus.lua
+ dodoc *.md
+}
diff --git a/profiles/package.mask b/profiles/package.mask
index 37df93931b2..51ae6b3716b 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -447,6 +447,7 @@ kde-apps/kdebase-meta:5
=app-editors/scite-4.4.4-r10
>=app-editors/vim-8.2.0814-r100
>=app-emulation/libguestfs-1.38.6-r100
+>=app-metrics/nginx-lua-prometheus-0.1_pre20170610-r100
>=app-misc/worker-3.8.3-r100
>=dev-games/cegui-0.8.7-r100
=dev-games/openscenegraph-openmw-3.4_p20200425-r100
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-21 13:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-21 13:56 [gentoo-commits] repo/gentoo:master commit in: app-metrics/nginx-lua-prometheus/, profiles/ Marek Szuba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox