public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Vadim A. Misbakh-Soloviov" <mva@mva.name>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/lua:master commit in: eclass/, net-analyzer/prometheus-nginx_exporter/, profiles/desc/
Date: Thu,  6 Apr 2017 03:54:22 +0000 (UTC)	[thread overview]
Message-ID: <1490780316.30607eec3ae0face9282fd0b95aa1530ea775b60.mva@gentoo> (raw)

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>mrueg@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


                 reply	other threads:[~2017-04-06  3:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1490780316.30607eec3ae0face9282fd0b95aa1530ea775b60.mva@gentoo \
    --to=mva@mva.name \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox