commit: 30607eec3ae0face9282fd0b95aa1530ea775b60 Author: Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name> AuthorDate: Wed Mar 29 09:38:36 2017 +0000 Commit: Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name> CommitDate: Wed Mar 29 09:38:36 2017 +0000 URL: https://gitweb.gentoo.org/proj/lua.git/commit/?id=30607eec
lua.eclass: rework url magic a bit, profiles: lua_targets desc, net-analyzer/prometheus-nginx_exporter: added eclass/lua.eclass | 2 ++ net-analyzer/prometheus-nginx_exporter/Manifest | 1 + .../prometheus-nginx_exporter/metadata.xml | 13 +++++++++ .../prometheus-nginx_exporter-0_p20170327.ebuild | 31 ++++++++++++++++++++++ .../prometheus-nginx_exporter-9999.ebuild | 31 ++++++++++++++++++++++ profiles/desc/lua_targets.desc | 9 +++++++ 6 files changed, 87 insertions(+) diff --git a/eclass/lua.eclass b/eclass/lua.eclass index 02483e7..aeb2cdc 100644 --- a/eclass/lua.eclass +++ b/eclass/lua.eclass @@ -455,6 +455,8 @@ lua_src_unpack() { # hack for VCS-eclasses (darcs, for example) which defaults unpack dir to WD/P instead of S if [[ "${PV}" = *9999* ]] && [[ -d "${WORKDIR}/${P}" ]] && [[ ! -d "${WORKDIR}/all/${P}" ]] ; then mv "${WORKDIR}/${P}" "${WORKDIR}/all/${P}" + elif [[ "${PV}" != *9999* ]] && [[ -n "${GITHUB_PV}" ]] && [[ -d "${WORKDIR}/all/${GITHUB_PN}-${GITHUB_PV}" ]] && [[ ! -d "${WORKDIR}/all/${P}" ]]; then + mv "${WORKDIR}/all/${GITHUB_PN}-${GITHUB_PV}" "${WORKDIR}/all/${P}" fi popd &>/dev/null diff --git a/net-analyzer/prometheus-nginx_exporter/Manifest b/net-analyzer/prometheus-nginx_exporter/Manifest new file mode 100644 index 0000000..f05e295 --- /dev/null +++ b/net-analyzer/prometheus-nginx_exporter/Manifest @@ -0,0 +1 @@ +DIST prometheus-nginx_exporter-0_p20170327.tar.gz 9923 SHA256 4bc772881fbb94f04ac1f99848fa3141f760c2387de3fdfb3a1ba2dc6a1bca03 SHA512 53fffd562e56f3698e0c56a3a218446e71ede749c032e7e4ef0de332e84636783263df38530ebfb11080b9449e459fddc0ed78f93a61cde126a5f6fa100ed28c WHIRLPOOL 27d86b4b383c6f6240b00940b4b5a308ec7e0afdf6f7f647045621f1d9996119b6b929778b885cbb6ebb564b28fdbb944cdbafee8525c1c1de4a10fedae70132 diff --git a/net-analyzer/prometheus-nginx_exporter/metadata.xml b/net-analyzer/prometheus-nginx_exporter/metadata.xml new file mode 100644 index 0000000..db39297 --- /dev/null +++ b/net-analyzer/prometheus-nginx_exporter/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <longdescription> + </longdescription> + <maintainer type="person"> + <email>mr...@gentoo.org</email> + <name>Manuel RĂ¼ger</name> + </maintainer> + <upstream> + <remote-id type="github">prometheus/prometheus-node_exporter</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-analyzer/prometheus-nginx_exporter/prometheus-nginx_exporter-0_p20170327.ebuild b/net-analyzer/prometheus-nginx_exporter/prometheus-nginx_exporter-0_p20170327.ebuild new file mode 100644 index 0000000..4fe694f --- /dev/null +++ b/net-analyzer/prometheus-nginx_exporter/prometheus-nginx_exporter-0_p20170327.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +GITHUB_A="knyar" +GITHUB_PN="nginx-lua-prometheus" +GITHUB_PV="24ab338427bcfd121ac6c9a264a93d482e115e14" + +inherit lua + +DESCRIPTION="Prometheus exporter for NginX metrics" +HOMEPAGE="https://github.com/knyar/nginx-lua-prometheus" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND=" + www-servers/nginx:*[nginx_modules_http_lua] +" +DEPEND=" + ${RDEPEND} +" + +DOCS=(README.md) + +each_lua_install() { + dolua prometheus.lua +} diff --git a/net-analyzer/prometheus-nginx_exporter/prometheus-nginx_exporter-9999.ebuild b/net-analyzer/prometheus-nginx_exporter/prometheus-nginx_exporter-9999.ebuild new file mode 100644 index 0000000..0bcf4c7 --- /dev/null +++ b/net-analyzer/prometheus-nginx_exporter/prometheus-nginx_exporter-9999.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +VCS="git" +GITHUB_A="knyar" +GITHUB_PN="nginx-lua-prometheus" + +inherit lua + +DESCRIPTION="Prometheus exporter for NginX metrics" +HOMEPAGE="https://github.com/knyar/nginx-lua-prometheus" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" +IUSE="" + +RDEPEND=" + www-servers/nginx:*[nginx_modules_http_lua] +" +DEPEND=" + ${RDEPEND} +" + +DOCS=(README.md) + +each_lua_install() { + dolua prometheus.lua +} diff --git a/profiles/desc/lua_targets.desc b/profiles/desc/lua_targets.desc new file mode 100644 index 0000000..52a1ad3 --- /dev/null +++ b/profiles/desc/lua_targets.desc @@ -0,0 +1,9 @@ +# Copyright 1999-2017 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License v2 + +# This file contains descriptions of LUA_TARGETS USE_EXPAND flags. + +lua51 - Install modules for dev-lang/lua:5.1 +lua52 - Install modules for dev-lang/lua:5.2 +lua53 - Install modules for dev-lang/lua:5.3 +luajit2 - Install modules for dev-lang/luajit:2