forked from gentoo-mirror/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Marek Szuba
committed
Dec 21, 2020
1 parent
daf48fa
commit 479b77e
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610-r100.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters