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 3220C1382C5 for ; Thu, 25 Jun 2020 03:30:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 277B3E090F; Thu, 25 Jun 2020 03:30:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 224B0E090F for ; Thu, 25 Jun 2020 03:30:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 5957734ED5B for ; Thu, 25 Jun 2020 03:30:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CE8A62A4 for ; Thu, 25 Jun 2020 03:30:07 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1593055780.d35a69ded02f6b72153c06014c652767a01681f3.williamh@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-metrics/prometheus/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-metrics/prometheus/Manifest app-metrics/prometheus/prometheus-2.19.1.ebuild X-VCS-Directories: app-metrics/prometheus/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: d35a69ded02f6b72153c06014c652767a01681f3 X-VCS-Branch: master Date: Thu, 25 Jun 2020 03:30:07 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 725d8461-4d9c-4ace-8bdf-c1fe388730d9 X-Archives-Hash: 236666f725f2c7351508e81fc01bb1ec commit: d35a69ded02f6b72153c06014c652767a01681f3 Author: William Hubbs gentoo org> AuthorDate: Thu Jun 25 03:23:56 2020 +0000 Commit: William Hubbs gentoo org> CommitDate: Thu Jun 25 03:29:40 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d35a69de app-metrics/prometheus: 2.19.1 bump Signed-off-by: William Hubbs gentoo.org> app-metrics/prometheus/Manifest | 2 + app-metrics/prometheus/prometheus-2.19.1.ebuild | 65 +++++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/app-metrics/prometheus/Manifest b/app-metrics/prometheus/Manifest index b88e3208874..517cf63cccd 100644 --- a/app-metrics/prometheus/Manifest +++ b/app-metrics/prometheus/Manifest @@ -1 +1,3 @@ DIST prometheus-2.13.1.tar.gz 15249891 BLAKE2B 35cd3c81bdb4f3a783c2ab1f1318946db5b25c94496fe351739a59259a726bf54d418d6b29efeff44c8007353ed63368819ce89ffe6a4f380b7ae216da3c4d63 SHA512 aed3b44db97cd2a67add64d13e950246b25c2b459f6b1081a6c548862c4e85c055254a0dfb94b08ac85f83dbbe30afceb1c54a8ad6f7ff1367aeb6af6d270e8a +DIST prometheus-2.19.1-assets.tar.gz 5032055 BLAKE2B 75bc247d3dfbcccf3a9d7ef8a23fabe2d92d698670f5aabb19e1ee019e0197aa4fd49cfd53353e09a765a014af70ad860c7d1b6bce292632e5ed1175dd206ae9 SHA512 52d1f80d9ab2de778e8a0c81549ff83647d3d8af37ccf535a6fc4ac45fe29f25f6592e9b5eb137cd5ed6f6730835e4ba52b6c4c82e5b0bb2336b90c809d756de +DIST prometheus-2.19.1.tar.gz 13343138 BLAKE2B 042f2c6e10e3d7f50b2373d9c3977db0318c8c9839e313463890ccae58c91d6d46c306d5aaeb795fb1a9649477b179999cb6b182aca9dee222d8fba557bf6d74 SHA512 a54a83b21ac8f3477e678ca365b8f04adcbe5cdd8a17d842eb9cd2e3428238841fb0492da6f4ec973f48803b0739667c734ae8a88b48d12555e23410e6461629 diff --git a/app-metrics/prometheus/prometheus-2.19.1.ebuild b/app-metrics/prometheus/prometheus-2.19.1.ebuild new file mode 100644 index 00000000000..86894dfc692 --- /dev/null +++ b/app-metrics/prometheus/prometheus-2.19.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module user + +MY_PV=v${PV/_rc/-rc.} +GIT_COMMIT=eba3fdcbf + +DESCRIPTION="Prometheus monitoring system and time series database" +HOMEPAGE="https://github.com/prometheus/prometheus" +SRC_URI="https://github.com/prometheus/prometheus/archive/${MY_PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~williamh/dist/${P}-assets.tar.gz" + +LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +BDEPEND=">=dev-util/promu-0.3.0" +DEPEND="!app-metrics/prometheus-bin" + +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}}/${GIT_COMMIT}/" .promu.yml || die + mv ../assets_vfsdata.go web/ui || die +} + +src_compile() { + promu build --prefix bin -v || die +} + +src_install() { + dobin bin/* + 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 + + 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 +} + +pkg_postinst() { + if has_version '