diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-13 21:03:07 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-13 21:03:07 +0100 |
commit | 8fbd420dce8836e6503b162092e07b6a77a89f1d (patch) | |
tree | 071c621ef44d7c1b24a430ac7671d68963b5a4cf /app-admin/prom2json | |
parent | 12d78242dec4f785d0a0bfb1c00eee2d8996c53b (diff) |
gentoo resync : 13.10.2017
Diffstat (limited to 'app-admin/prom2json')
-rw-r--r-- | app-admin/prom2json/Manifest | 3 | ||||
-rw-r--r-- | app-admin/prom2json/metadata.xml | 11 | ||||
-rw-r--r-- | app-admin/prom2json/prom2json-0.1.0_p20170523.ebuild | 38 |
3 files changed, 52 insertions, 0 deletions
diff --git a/app-admin/prom2json/Manifest b/app-admin/prom2json/Manifest new file mode 100644 index 000000000000..4389de47faae --- /dev/null +++ b/app-admin/prom2json/Manifest @@ -0,0 +1,3 @@ +DIST prom2json-0.1.0_p20170523.tar.gz 129179 SHA256 3b16fc3d0f668a42546b521f7a6a9ef59897c4347cb01d5542551aa9d7d7a4bc SHA512 824f4c43f4a167dc7dde2f11e84cf482e5cdfa26ab11caf08a5461d525543c3491180f54694c4ae61fdd5dc9763ff16f6e29b332a64dc3ac52fdb7b9c0902571 WHIRLPOOL 85866f1c76072554e72eb62637bf099904f4d10533cc00fddddf6f4791ff9bf5c3b1e6b3388f5ee9f8d61783c65cf40fc6b3cc367c049dfd0b62d1edeca659f1 +EBUILD prom2json-0.1.0_p20170523.ebuild 925 SHA256 cc80bf9f8a362c30186f92defcac8f22cde6a720c3db9a256092e401394255ac SHA512 78d9a3b5ccc26f0db2a66f5ba38b3d874fc03e9182cea76ca4e18534fe629af0a8359dafbf47012f3db5406da6294d2cee412138f44a39ede3d683d8f88b44a4 WHIRLPOOL 555fa8cd83edc85a46d68d75c897018213d99072993c31cb6002315b48779a1f72a727809ecd717efe99f03937b61e081e7def0fa0b81e996cff95c980e52cb2 +MISC metadata.xml 330 SHA256 099d028e25a937abd6de646e2eee8be66e6698f998e45e59fd699dff1b106f77 SHA512 17cb63ee862d80eb3e6d15cd209acee351873802eae2f3a943b17b68e8d042706c2eb6e4ee9b5bdc6e0c9901888eadf6fbd3ee9969a517f417b25237b70b5470 WHIRLPOOL 7d66f50cba6127d609b70cd73b422de6ac4e9a5eecf4a3c40b71dd51628d4bf446d768470db50fde72cea9c41e765ca1e78441f3766ee108dd6b26bca404e68b diff --git a/app-admin/prom2json/metadata.xml b/app-admin/prom2json/metadata.xml new file mode 100644 index 000000000000..eaf3cc3d6f87 --- /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 000000000000..c1596c29bcef --- /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 +} |