public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Manuel Rüger" <mrueg@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/prom2json/
Date: Thu, 12 Oct 2017 18:50:44 +0000 (UTC)	[thread overview]
Message-ID: <1507834230.a69bfdca33b4ed605188b177d501e372b32ad35f.mrueg@gentoo> (raw)

commit:     a69bfdca33b4ed605188b177d501e372b32ad35f
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 12 18:50:30 2017 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Thu Oct 12 18:50:30 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a69bfdca

app-admin/prom2json: Initial version

Package-Manager: Portage-2.3.11, Repoman-2.3.3

 app-admin/prom2json/Manifest                       |  1 +
 app-admin/prom2json/metadata.xml                   | 11 +++++++
 .../prom2json/prom2json-0.1.0_p20170523.ebuild     | 38 ++++++++++++++++++++++
 3 files changed, 50 insertions(+)

diff --git a/app-admin/prom2json/Manifest b/app-admin/prom2json/Manifest
new file mode 100644
index 00000000000..4955dc43427
--- /dev/null
+++ b/app-admin/prom2json/Manifest
@@ -0,0 +1 @@
+DIST prom2json-0.1.0_p20170523.tar.gz 129179 SHA256 3b16fc3d0f668a42546b521f7a6a9ef59897c4347cb01d5542551aa9d7d7a4bc SHA512 824f4c43f4a167dc7dde2f11e84cf482e5cdfa26ab11caf08a5461d525543c3491180f54694c4ae61fdd5dc9763ff16f6e29b332a64dc3ac52fdb7b9c0902571 WHIRLPOOL 85866f1c76072554e72eb62637bf099904f4d10533cc00fddddf6f4791ff9bf5c3b1e6b3388f5ee9f8d61783c65cf40fc6b3cc367c049dfd0b62d1edeca659f1

diff --git a/app-admin/prom2json/metadata.xml b/app-admin/prom2json/metadata.xml
new file mode 100644
index 00000000000..eaf3cc3d6f8
--- /dev/null
+++ b/app-admin/prom2json/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>mrueg@gentoo.org</email>
+		<name>Manuel Rüger</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">prometheus/prom2json</remote-id>
+	</upstream>
+</pkgmetadata>

diff --git a/app-admin/prom2json/prom2json-0.1.0_p20170523.ebuild b/app-admin/prom2json/prom2json-0.1.0_p20170523.ebuild
new file mode 100644
index 00000000000..c1596c29bce
--- /dev/null
+++ b/app-admin/prom2json/prom2json-0.1.0_p20170523.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit user golang-build golang-vcs-snapshot
+
+EGO_PN="github.com/prometheus/${PN}"
+EGIT_COMMIT="4a7436442837da72f9e211d99f0145dff3246b66"
+ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="A tool to scrape a Prometheus client and dump the result as JSON"
+HOMEPAGE="https://github.com/prometheus/node_exporter"
+SRC_URI="${ARCHIVE_URI}"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-util/promu"
+
+src_prepare() {
+	default
+	sed -i -e "s/{{.Revision}}/${EGIT_COMMIT:0:7}/" src/${EGO_PN}/.promu.yml || die
+}
+
+src_compile() {
+	pushd src/${EGO_PN} || die
+	mkdir -p bin || die
+	GOPATH="${S}" promu build -v --prefix ${PN} || die
+	popd || die
+}
+
+src_install() {
+	pushd src/${EGO_PN} || die
+	dobin ${PN}/${PN}
+	dodoc {README,CONTRIBUTING}.md
+	popd || die
+}


             reply	other threads:[~2017-10-12 18:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-12 18:50 Manuel Rüger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-10-16 10:54 [gentoo-commits] repo/gentoo:master commit in: app-admin/prom2json/ Manuel Rüger

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=1507834230.a69bfdca33b4ed605188b177d501e372b32ad35f.mrueg@gentoo \
    --to=mrueg@gentoo.org \
    --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