commit:     d1459e04f1cfb4c3146a1ab8647364731b814fcf
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Sun Nov  5 20:40:38 2017 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Sun Nov  5 20:44:22 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1459e04

net-analyzer/prometheus: Version bump to 1.8.2

Package-Manager: Portage-2.3.12, Repoman-2.3.4

 net-analyzer/prometheus/Manifest                |  1 +
 net-analyzer/prometheus/prometheus-1.8.2.ebuild | 59 +++++++++++++++++++++++++
 2 files changed, 60 insertions(+)

diff --git a/net-analyzer/prometheus/Manifest b/net-analyzer/prometheus/Manifest
index 63392ac9770..75230ee8160 100644
--- a/net-analyzer/prometheus/Manifest
+++ b/net-analyzer/prometheus/Manifest
@@ -1,2 +1,3 @@
 DIST prometheus-1.8.1.tar.gz 5194859 SHA256 
dc2b7bb5b5f1273c131921d3e306fd198f2a5547abc58dcf511b700c62963595 SHA512 
936728f51a12a080a0689c17b134f70f747bb2219f750ea5f7df7460169b3e484689d75df319cfae12fc939b556e4f59ed49682731e43405a4a91e4bbcd9cbb7
 WHIRLPOOL 
755ac91ecfe9234675bac2cee2c63a50c80a5e02267818b1ac7747c669df81e4e267dd884aa1da7463339f5344e8fdbb488c7521d0d7817360bad74ece256a86
+DIST prometheus-1.8.2.tar.gz 5238057 SHA256 
7c8a9c9756790d1c4eb436bb6ebda49e2f671a6319c06a1c63d5df9eff7da0e2 SHA512 
ed52ab494ae565d4787b29cf1800605ac3bfdacee25e833704131d57bad9759a3e2585b96316ad754e6612324e68079d7f670004a86aa12c768a2e03542966d2
 WHIRLPOOL 
c61ed7a9238a86e0cdc1813e0d0f88e9b90567986b61e0e856d34f42d1c5ef5f2c66e6e95be659f00883aec39660536653c2d0f5baaf4573600711929480bd00
 DIST prometheus-2.0.0_rc2.tar.gz 5539456 SHA256 
99340e1708f9dd216048d0de8ce1a069c70879760d833dfee1ef480966d2d53c SHA512 
c895e0a561e89a13cee4cba1f4899ffcb4a8094f72618b9c7c2e48a035ceef3b844c0c8b9603f0886fac3e0d1c43b1e235f784f18d289e47c0e858b5d53ed47b
 WHIRLPOOL 
60070eddcaa06ada89e5612c893c97098c48c6d5953d17e1cfe6b16708c332aa9d855aaecf6aa00c28527b22ad77ce6ff26cbade01ea2e71d1bafc9ece59f655

diff --git a/net-analyzer/prometheus/prometheus-1.8.2.ebuild 
b/net-analyzer/prometheus/prometheus-1.8.2.ebuild
new file mode 100644
index 00000000000..1006108b099
--- /dev/null
+++ b/net-analyzer/prometheus/prometheus-1.8.2.ebuild
@@ -0,0 +1,59 @@
+# 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/prometheus"
+EGIT_COMMIT="v${PV}"
+PROMETHEUS_COMMIT="5211b96"
+ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="Prometheus monitoring system and time series database"
+HOMEPAGE="https://github.com/prometheus/prometheus";
+SRC_URI="${ARCHIVE_URI}"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+DEPEND=">=dev-lang/go-1.8
+       dev-util/promu"
+
+PROMETHEUS_HOME="/var/lib/prometheus"
+
+RESTRICT="test"
+
+pkg_setup() {
+       enewgroup prometheus
+       enewuser prometheus -1 -1 "${PROMETHEUS_HOME}" prometheus
+}
+
+src_prepare() {
+       default
+       sed -i -e "s/{{.Revision}}/${PROMETHEUS_COMMIT}/" 
src/${EGO_PN}/.promu.yml || die
+}
+
+src_compile() {
+       pushd src/${EGO_PN} || die
+       GOPATH="${S}" promu build -v || die
+       popd || die
+}
+
+src_install() {
+       pushd src/${EGO_PN} || die
+       dobin promtool prometheus
+       dodoc -r {documentation,{README,CHANGELOG,CONTRIBUTING}.md}
+       insinto /etc/prometheus
+       doins documentation/examples/prometheus.yml
+       insinto /usr/share/prometheus
+       doins -r console_libraries consoles
+       dosym ../../usr/share/prometheus/console_libraries 
/etc/prometheus/console_libraries
+       dosym ../../usr/share/prometheus/consoles /etc/prometheus/consoles
+       popd || die
+
+       newinitd "${FILESDIR}"/prometheus.initd prometheus
+       newconfd "${FILESDIR}"/prometheus.confd prometheus
+       keepdir /var/log/prometheus /var/lib/prometheus
+       fowners prometheus:prometheus /var/log/prometheus /var/lib/prometheus
+}

Reply via email to