summaryrefslogtreecommitdiff
path: root/app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610-r101.ebuild
diff options
context:
space:
mode:
authorZurab Kvachadze <zurabid2016@gmail.com>2024-12-22 13:11:35 +0100
committerSam James <sam@gentoo.org>2025-07-05 08:26:52 +0100
commitaaa8004875e761b308a6f9305e050eb49305e1fd (patch)
tree36cb950d505a2ee30b429a7513c8b75e5d02ea8d /app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610-r101.ebuild
parent2a430777258055807c524c96a58ab8630088f13a (diff)
downloadgentoo-aaa8004875e761b308a6f9305e050eb49305e1fd.tar.gz
gentoo-aaa8004875e761b308a6f9305e050eb49305e1fd.tar.bz2
gentoo-aaa8004875e761b308a6f9305e050eb49305e1fd.zip
app-metrics/nginx-lua-prometheus: revbump to r101, update EAPI 7 -> 8, remove r100
Depend www-nginx/ngx-lua-module if it is present, use default disable "(-)" USE-dependency on the nginx_module_http_lua USE flag of www-servers/nginx. Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/37590 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610-r101.ebuild')
-rw-r--r--app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610-r101.ebuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610-r101.ebuild b/app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610-r101.ebuild
new file mode 100644
index 000000000000..19df5e6cefad
--- /dev/null
+++ b/app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610-r101.ebuild
@@ -0,0 +1,42 @@
+# Copyright 2019-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# 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"
+S="${WORKDIR}/${PN}-${TAG}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+BDEPEND="virtual/pkgconfig"
+
+COMMON_DEPEND="${LUA_DEPS}"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}
+ || (
+ www-nginx/ngx-lua-module[${LUA_SINGLE_USEDEP}]
+ www-servers/nginx[nginx_modules_http_lua(-),${LUA_SINGLE_USEDEP}]
+ )
+"
+
+src_install() {
+ insinto "$(lua_get_lmod_dir)"/${PN}
+ doins prometheus.lua
+ dodoc *.md
+}