From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CB5711396D9 for ; Thu, 12 Oct 2017 18:50:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2D85AE0D97; Thu, 12 Oct 2017 18:50:47 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E57A4E0D97 for ; Thu, 12 Oct 2017 18:50:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A430B33BEBE for ; Thu, 12 Oct 2017 18:50:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6B474907B for ; Thu, 12 Oct 2017 18:50:44 +0000 (UTC) From: "Manuel Rüger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Manuel Rüger" Message-ID: <1507834230.a69bfdca33b4ed605188b177d501e372b32ad35f.mrueg@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/prom2json/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/prom2json/Manifest app-admin/prom2json/metadata.xml app-admin/prom2json/prom2json-0.1.0_p20170523.ebuild X-VCS-Directories: app-admin/prom2json/ X-VCS-Committer: mrueg X-VCS-Committer-Name: Manuel Rüger X-VCS-Revision: a69bfdca33b4ed605188b177d501e372b32ad35f X-VCS-Branch: master Date: Thu, 12 Oct 2017 18:50:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 7cb0a60c-730c-4846-896b-caf5e499472a X-Archives-Hash: 2816bb005cf5078cd9d9b728b10afc1d commit: a69bfdca33b4ed605188b177d501e372b32ad35f Author: Manuel Rüger gentoo org> AuthorDate: Thu Oct 12 18:50:30 2017 +0000 Commit: Manuel Rüger gentoo 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 @@ + + + + + mrueg@gentoo.org + Manuel Rüger + + + prometheus/prom2json + + 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 +}