From 840be418ef517d5a19efe7e69f2ac05cc309f562 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Wed, 21 Oct 2020 17:17:51 +0200 Subject: [PATCH] app-metrics/prometheus: Add latest ebuild with systemd support. Package-Manager: Portage-3.0.8, Repoman-3.0.2 --- app-metrics/prometheus/ChangeLog | 5 ++ app-metrics/prometheus/Manifest | 5 +- .../prometheus/prometheus-2.21.0.ebuild | 61 +++++++++++++++++++ 3 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 app-metrics/prometheus/prometheus-2.21.0.ebuild diff --git a/app-metrics/prometheus/ChangeLog b/app-metrics/prometheus/ChangeLog index 6a5f4c9..30c7c4a 100644 --- a/app-metrics/prometheus/ChangeLog +++ b/app-metrics/prometheus/ChangeLog @@ -1,3 +1,8 @@ +*prometheus-2.21.0 (21 Oct 2020) + + 21 Oct 2020; Manuel Friedli +prometheus-2.21.0.ebuild: + app-metrics/prometheus: Add latest ebuild with systemd support. + 29 Sep 2020; Manuel Friedli -prometheus-2.13.1.ebuild: app-metrics/prometheus: Purge old ebuild diff --git a/app-metrics/prometheus/Manifest b/app-metrics/prometheus/Manifest index c983ece..760e6c8 100644 --- a/app-metrics/prometheus/Manifest +++ b/app-metrics/prometheus/Manifest @@ -4,6 +4,9 @@ AUX prometheus.initd 929 BLAKE2B d48650b11b77d4d04b5458682456fb20f8085dc3efe9d0d AUX prometheus.service 440 BLAKE2B 81a89d51ce54e4af5a1d400cee05418e031bce5d87df5546d5e759a6f9814d16eb88266dd129d40c94c1b7d971281f45f5a63a091a8ee6110fe601b909fc5175 SHA512 db040d60eaeffe5583a2e01d0e8c855ad7585ff89627b6fa0bbeac923381ef32154b49ddf7997d8774937d317cbc705357d90a05d2eedee417f7ce6ee486b291 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 +DIST prometheus-2.21.0-assets.tar.gz 5060038 BLAKE2B 10c9a89be71935072e6096c1bd62d9e3ff015b98baa4d11eb19cc938c857d38ebd22345173a9e404441bc1dceda4f86e82d455e6f4ea23d6ef5c78cba130ce9d SHA512 0f4b03b33c04a86d44c6521d4f0a1048f69d32b0e1797b5508a279d990171ca15268b461f567146f689aeda9fc696fd8a656147b20b6fd0293542fa15fd35a29 +DIST prometheus-2.21.0.tar.gz 13971178 BLAKE2B 8701d8c4318b6624e448b91959ea5afd62d0574f4329bc72c141145b197c653912b050f2da93d670ad350a244eb18c0a7e8ea9c12083fcb885233d8631653447 SHA512 6c4af981582a0cb07a8be5cfa786797507f3f23e4d52f03a4f4126b9b5df84f0481d7400120ed3368268f77d07d8d939f1a8758044e65ede291d9ccafc1b3239 EBUILD prometheus-2.19.1.ebuild 1892 BLAKE2B 38bfd5f96ea9066ee5f8bd9e77ff9f43627008f6149fcbe148a2865c405636e637a6271907a1e86cdf98e6d9a07252458285346be8b7d41bb967061882372eb5 SHA512 2775060a8268cbf9de19a68fdf8eb3e54333be40746031288b10421084b1de20e3a434d88b84c7d144ce296e97ef6fb799bac3082e851fe51e27bc017274f5e7 -MISC ChangeLog 710 BLAKE2B b6a69422bfa31f83039edd345b0f1a6db2d93ca9a9c22228cab5daa4a9fce8e3997ad0222ebfdc910e23569ee0e84980300339c8972caaacd59397c3c38d9097 SHA512 d1819bca89bbe9451874f3d40173bb35542d65359cf8566c9f3b4fbc6f9abf809f7fe8a4f7fce2c3a860bcd37df398757e25641f88e3f44f66ddd465d9d49aa3 +EBUILD prometheus-2.21.0.ebuild 1958 BLAKE2B 028effe14af73af0ebc3c4e1009591abccd4a8012e89b36ddf35fe88175a3f66b7eea53dd086041b75bd6399ff775d6b5930d2658268469c83a812d518208638 SHA512 851875a67817a8222ad4d684e570c5eba4e753c491cdd0c1359c595fd5f4c7692a829eb22d2113a4ddcdf4e1d3bcf44f6c83f8b72269872ed6717d8b26d998f2 +MISC ChangeLog 888 BLAKE2B 8a268c5ac42e0287b5811b1a92d68e9fc9c1a607173041241e1130721cc67d6e03a898c5a97ffa70f65b46f4ae201fc489caaa4152ba43e59ce088c9518a9c60 SHA512 b3ea8d894718bfda877f60e3f2e59e7124af4bf9a0d7261d24f4032ecbd6048f38e19eac2dabeaff02eaef775ccc73fd80b98032fd9a3360bc745f18ddd26e6f MISC metadata.xml 334 BLAKE2B 270b8d4817af970210624443197549e469d28b03ad38d87c1d3b7da0cb59476da6394989577fd199d26bf63322d0e74474428e493c8b4969fd74a42aa82adf5b SHA512 41aaef9331d9b27b5d7e0587679199bbbe149c5a4edfa9bc9932c2ea18b2c970d96d8f07a4a33253d567baab666d58e55f928db669ee2ff5d8ef0c7cd5da1e85 diff --git a/app-metrics/prometheus/prometheus-2.21.0.ebuild b/app-metrics/prometheus/prometheus-2.21.0.ebuild new file mode 100644 index 0000000..3913898 --- /dev/null +++ b/app-metrics/prometheus/prometheus-2.21.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module systemd +MY_PV=v${PV/_rc/-rc.} +GIT_COMMIT=e83ef207b + +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 ~arm" + +COMMON_DEPEND="acct-group/prometheus + acct-user/prometheus" +DEPEND="!app-metrics/prometheus-bin + ${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" +BDEPEND=">=dev-util/promu-0.3.0" + +RESTRICT+=" test" + +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 + + systemd_dounit "${FILESDIR}"/prometheus.service + 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 '