diff options
Diffstat (limited to 'app-metrics')
-rw-r--r-- | app-metrics/Manifest.gz | bin | 5439 -> 5282 bytes | |||
-rw-r--r-- | app-metrics/alertmanager/Manifest | 2 | ||||
-rw-r--r-- | app-metrics/alertmanager/alertmanager-0.21.0.ebuild | 45 | ||||
-rw-r--r-- | app-metrics/buildbot-prometheus/Manifest | 4 | ||||
-rw-r--r-- | app-metrics/buildbot-prometheus/buildbot-prometheus-17.7.2-r2.ebuild | 35 | ||||
-rw-r--r-- | app-metrics/buildbot-prometheus/files/buildbot-prometheus-17.7.2-Migrate-duration-calculations-to-buildbot-09.patch | 52 | ||||
-rw-r--r-- | app-metrics/buildbot-prometheus/metadata.xml | 9 | ||||
-rw-r--r-- | app-metrics/prometheus-bin/Manifest | 2 | ||||
-rw-r--r-- | app-metrics/prometheus-bin/prometheus-bin-2.15.2.ebuild | 2 | ||||
-rw-r--r-- | app-metrics/prometheus/Manifest | 3 | ||||
-rw-r--r-- | app-metrics/prometheus/prometheus-2.19.1.ebuild | 65 |
11 files changed, 117 insertions, 102 deletions
diff --git a/app-metrics/Manifest.gz b/app-metrics/Manifest.gz Binary files differindex 38a08e060527..f35eb101333e 100644 --- a/app-metrics/Manifest.gz +++ b/app-metrics/Manifest.gz diff --git a/app-metrics/alertmanager/Manifest b/app-metrics/alertmanager/Manifest index ab61fdcce750..d13bf001dfbe 100644 --- a/app-metrics/alertmanager/Manifest +++ b/app-metrics/alertmanager/Manifest @@ -2,6 +2,8 @@ AUX alertmanager.confd 135 BLAKE2B 7a3dd341e63a73e9782d44dc59c8a65ea1c855ae0589c AUX alertmanager.initd 817 BLAKE2B 74a7e6c292ac52f4d6d00644038e74624be41ed632a6db389a7c226b3a37d43f22f1c8c098d34f652d9b6b9cb407523b375c884e75fe3740578f26e822df21c7 SHA512 34ae9348f5e054543bdbffd29e30d1fb6147d47e74cecb1755c29bf4327bd56ac4fae4cecddf2c515b6ddffbce4ad7151ae3a3e7f283db2d6b74619f5faa44ac DIST alertmanager-0.18.0.tar.gz 5181819 BLAKE2B efcc856ccacb97646915e8d622179cf3cc7554351036cf556347ec46cdede5c9223139cb209b52376964c7b19b119f3683f82698d1e7c07b1432bb3e4bb37239 SHA512 59faec308abaac3d2b59198fef25109b208de1a807b38803dc10722ff0caf1bac9d9795005fefb3b4e2acda62be136bfcafe7b9702ae52565021a424f99fa730 DIST alertmanager-0.19.0.tar.gz 5862442 BLAKE2B a79336286ca1099dcc73cce897eccaff8d40f8d3140ebf1943a1189cf1d2ec58738cbe7fc02221826ffc0e1535954a11a461ac6ea222113c79a44d43cc9eda83 SHA512 2c21bfbb1001e07e81b1115439ad15e7c0e7089839e56a19c445177e322b8ef9aa2b85e96478f3c3d709cbbd3a5447662a8c55da370b84aa4b6b24f83848744b +DIST alertmanager-0.21.0.tar.gz 5704209 BLAKE2B 646ac0b05eb194d1c35f49e38c0a206d09a9c45d4f2f7c371a53ecfff5deba6e2c2af82f3f4ce2b591338c557241766395f42b8bd3c91ae2da4ef7e570666fda SHA512 72568407af4e90455975eff504ed49f4877eb517673532f655b6b0459725db5df7bbd1a3be120106c46b30dd7056714cc0b34b46df9c4d8c98e1f8c9eb0c39da EBUILD alertmanager-0.18.0.ebuild 1389 BLAKE2B 4757558e01287f8afff1a39c04dfd1cccaaae3ee14584c8196300280acea50393a05b56e6a255cc35cca408464044273e9935e37ecfd03f86ceb17867ac814f9 SHA512 e64b174b7433b0bab0d6c549d470582737a6b138f0d79e042a9bb7e9b7220dcfe5f22652188f159b6a550622a9bd160c6dac34a910ab2f8b0a30ce5ba4910e32 EBUILD alertmanager-0.19.0.ebuild 1389 BLAKE2B e4845bb46c400e9185c28f13b43432c177a8708bb08cbc36f27ea1c9cb90ca5c8d6172090dc84c156acd288b5f812b5a64ce1668f5aff318d4a59e60c583c329 SHA512 fa273caa4bc24e6cfb118b370605ae0513975c8184f1e14ce98f48fd036d10aa21f0e5b5c45393dbfee0e1f1002c03c3571c09ba1701c6a7fe8a2a0eb2b8802c +EBUILD alertmanager-0.21.0.ebuild 1100 BLAKE2B 8399e968c5543a8ee3c7301d372fdffb954bd3ce0d23830d654d557234a8007802509dd58faad9b8a152c0c0a4efb90ff22f29b1081308f484a7dc94cc46ad51 SHA512 7a9ddb85663a61eebb95be83a77a5adbcb9179564850dd6cb9e1f22adb23d09cc380c4f76ddc31c2bc9758645e3315d0864281b4863cca7444c7d7a84a2c5d4d MISC metadata.xml 336 BLAKE2B 2cab21f76be9803ce08848025fd889354e4595fe5195f36361a4b5a2f2bc2e8e3e0c697fef2933db48d178d10f838a960e7ad2a8ea74bae42ebe395a6d150484 SHA512 63a13c6b9bff1f75c79b2c0cf1cb16e4973d58e666e04e1ef50bb746caaea8e5358cb61a39c257c082b67264960dbcc78da5ae24dcad94d7e72f833483c8e5bd diff --git a/app-metrics/alertmanager/alertmanager-0.21.0.ebuild b/app-metrics/alertmanager/alertmanager-0.21.0.ebuild new file mode 100644 index 000000000000..028f242a3a36 --- /dev/null +++ b/app-metrics/alertmanager/alertmanager-0.21.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module user +GIT_COMMIT=4c6c03eb +MY_PV="${PV/_rc/-rc.}" + +DESCRIPTION="Alertmanager for alerts sent by client applications such as Prometheus" +HOMEPAGE="https://github.com/prometheus/alertmanager" +SRC_URI="https://github.com/prometheus/alertmanager/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 BSD BSD-2 MIT MPL-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +BDEPEND="dev-util/promu" + +RESTRICT+=" test" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_prepare() { + default + sed -i -e "s/{{.Revision}}/${GIT_COMMIT}/" .promu.yml || die +} + +src_compile() { + promu build -v --prefix bin || die +} + +src_install() { + dobin bin/* + dodoc {README,CHANGELOG,CONTRIBUTING}.md + insinto /etc/alertmanager/ + newins doc/examples/simple.yml config.yml.example + keepdir /var/lib/alertmanager /var/log/alertmanager + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + fowners ${PN}:${PN} /var/lib/alertmanager /var/log/alertmanager +} diff --git a/app-metrics/buildbot-prometheus/Manifest b/app-metrics/buildbot-prometheus/Manifest deleted file mode 100644 index 4bfe590f8b9e..000000000000 --- a/app-metrics/buildbot-prometheus/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -AUX buildbot-prometheus-17.7.2-Migrate-duration-calculations-to-buildbot-09.patch 2430 BLAKE2B 1c7cc11d95301cf119b3cf0a1d9b1c0af9e48fd486a03350138d97c625abcb72e0f13b0eb4c826341f4e9a6938a708f0afee4c1cd36750a99580a34b23aa290b SHA512 ef63fbfabe5bef28eae222dca2509e24f5f1ec3aa71aa3af3c0092cf78cb9efe58296d54e46760c43ecd38c3d9ab741d1c83c79f2eee7f96572a82f125a389b6 -DIST buildbot-prometheus-17.7.2.tar.gz 10101 BLAKE2B 25c060b5368aa1dea6145b6d380db8001f3cd1fb49f9b3bb1e4ecccdb771591abc269d5aee9d022a9b182b19650a0c398b580004f20def0675b86ca9f3a1e2db SHA512 8a0ecaf57eade3d69fabc57a19a1c02af8e398c3bc4732e40f39e8904a16c9b751d4f6f8ace0dd7893b380d1ffc8a51360279aeb7b4059a6cd9438145344e74b -EBUILD buildbot-prometheus-17.7.2-r2.ebuild 1105 BLAKE2B c594e9c1749758239a800ceee83ea86cb43ac941091f84998feaf04fac5f77cd413eb7d97a096596ddbd40a5bd5d9017130863468e34105f7511401f779a66c9 SHA512 be6dde29eafb22270a4617ec9c620755672a489a2f1711685cc7dd71418c341eb7fccfa635107765237df322370a60bf49872acc931ee22d29a954fc4a6736ba -MISC metadata.xml 314 BLAKE2B 7ea3af51048358bd6291056e64324eee54fdd041b5a6199c14058e54ccafdffcbfddad12490cc6a6a5baf0aff47648c23ee8e7df6234e5aac10d15740b93d47e SHA512 73b0984af8b92c14a21617b3977d2f7b84f5ac33b9cb3ec26dbb12d59789f8c50c839c3de6044667e9d2ab12c420a28511ab4fa445f043c98e22bdf0b16fb68e diff --git a/app-metrics/buildbot-prometheus/buildbot-prometheus-17.7.2-r2.ebuild b/app-metrics/buildbot-prometheus/buildbot-prometheus-17.7.2-r2.ebuild deleted file mode 100644 index 739ad58b123e..000000000000 --- a/app-metrics/buildbot-prometheus/buildbot-prometheus-17.7.2-r2.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python3_6 ) -inherit distutils-r1 - -DESCRIPTION="A Prometheus metrics exporter for Buildbot" -HOMEPAGE="https://github.com/claws/buildbot-prometheus" -SRC_URI="https://github.com/claws/buildbot-prometheus/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -RDEPEND="dev-python/prometheus_client[${PYTHON_USEDEP}] - >=dev-util/buildbot-0.9.0[${PYTHON_USEDEP}]" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] - ${RDEPEND}" - -PATCHES=( - "${FILESDIR}/buildbot-prometheus-17.7.2-Migrate-duration-calculations-to-buildbot-09.patch" -) - -python_prepare_all() { - sed -i -e "/^install_reqs.*$/d" -e "/^from pip.*$/d" -e "s/requires = .*/requires = ['buildbot', 'prometheus_client']/" setup.py || die - distutils-r1_python_prepare_all -} - -pkg_postinst() { - einfo "This version has been patched to be compatible with the current buildbot releases >=0.9.0" - einfo "For older buildbot-0.8* releases, please use dev-python/buildbot-prometheus-17.7.2-r1 version" -} diff --git a/app-metrics/buildbot-prometheus/files/buildbot-prometheus-17.7.2-Migrate-duration-calculations-to-buildbot-09.patch b/app-metrics/buildbot-prometheus/files/buildbot-prometheus-17.7.2-Migrate-duration-calculations-to-buildbot-09.patch deleted file mode 100644 index 7fbdbdd09133..000000000000 --- a/app-metrics/buildbot-prometheus/files/buildbot-prometheus-17.7.2-Migrate-duration-calculations-to-buildbot-09.patch +++ /dev/null @@ -1,52 +0,0 @@ -From ceddea3f55773e104c628ef6316ce74785d235f3 Mon Sep 17 00:00:00 2001 -From: Brian Dolbec <brian.dolbec@sony.com> -Date: Tue, 6 Mar 2018 02:30:56 +0000 -Subject: [PATCH] Migrate duration calculations to >=buildbot-0.9 - ---- - buildbot_prometheus/prometheus.py | 8 ++++---- - 1 file changed, 4 insertions(+), 4 deletions(-) - -diff --git a/buildbot_prometheus/prometheus.py b/buildbot_prometheus/prometheus.py -index a766f41..ebf41a1 100644 ---- a/buildbot_prometheus/prometheus.py -+++ b/buildbot_prometheus/prometheus.py -@@ -302,7 +302,7 @@ class Prometheus(service.BuildbotService): - build_started = msg['started_at'] - build_finished = msg['complete_at'] - build_duration = build_finished - build_started -- duration_seconds = build_duration.total_seconds() -+ duration_seconds = build_duration - self.g_builds_duration.labels(**labels).set(duration_seconds) - - build_status = resolve_results_status(msg['results']) -@@ -401,7 +401,7 @@ class Prometheus(service.BuildbotService): - buildset_started = msg['submitted_at'] - buildset_finished = msg['complete_at'] - buildset_duration = buildset_finished - buildset_started -- duration_seconds = buildset_duration.total_seconds() -+ duration_seconds = buildset_duration - self.g_buildsets_duration.labels(**labels).set(duration_seconds) - - bs_success = resolve_results_status(msg['results']) -@@ -444,7 +444,7 @@ class Prometheus(service.BuildbotService): - br_started = msg['submitted_at'] - br_finished = msg['complete_at'] - br_duration = br_finished - br_started -- duration_seconds = br_duration.total_seconds() -+ duration_seconds = br_duration - self.g_build_requests_duration.labels(**labels).set(duration_seconds) - - br_success = resolve_results_status(msg['results']) -@@ -491,7 +491,7 @@ class Prometheus(service.BuildbotService): - step_started = msg['started_at'] - step_finished = msg['complete_at'] - step_duration = step_finished - step_started -- duration_seconds = step_duration.total_seconds() -+ duration_seconds = step_duration - self.g_steps_duration.labels(**labels).set(duration_seconds) - - step_success = resolve_results_status(msg['results']) --- -libgit2 0.24.6 - diff --git a/app-metrics/buildbot-prometheus/metadata.xml b/app-metrics/buildbot-prometheus/metadata.xml deleted file mode 100644 index 7499dcce7171..000000000000 --- a/app-metrics/buildbot-prometheus/metadata.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <!-- maintainer-needed --> - <upstream> - <remote-id type="pypi">buildbot-prometheus</remote-id> - <remote-id type="github">claws/buildbot-prometheus</remote-id> - </upstream> -</pkgmetadata> diff --git a/app-metrics/prometheus-bin/Manifest b/app-metrics/prometheus-bin/Manifest index c77ba667c584..c886b3ada104 100644 --- a/app-metrics/prometheus-bin/Manifest +++ b/app-metrics/prometheus-bin/Manifest @@ -1,5 +1,5 @@ AUX prometheus.confd 43 BLAKE2B c83afa8ad1133c9e93abd40c862ff5b3ac9a3b3c4447b915ae1482d92096dec9f200d089de2458a6cdb0e72d2bf0652d56e3afd6d5a3cd8a3ed7a6c9a0e3e42c SHA512 37468e897cd34b50b0edc65ada3f0c2e05459c3d96bb7f82d58b6de5bf10a127f1bf7912af93d83d94e3ea7287cfeb2311e36535f291d01a11d152a0b438591c AUX prometheus.initd 929 BLAKE2B d48650b11b77d4d04b5458682456fb20f8085dc3efe9d0ddd2a6c75751ddae156bbb83c20082bc7b6833395602c24da61e2f7610bdff291e05e3eeb4fb651317 SHA512 504122eb8ed19beac81987b77eb78bba9b36b2ef15f28b1a542804271046e06363baf464f3c303982f647eba65fbc2b5459235f56625e1ff3fed9834937cd0d2 DIST prometheus-2.15.2.linux-amd64.tar.gz 59204993 BLAKE2B 700d61063cddea02ca4445257b11b782c3b6fc84ed3d48f8d196c5602819f0d44b218d15b870281293bf0661929b02930b937e66fec34918b81cd3d010a6fa21 SHA512 a3b95fe6101d5587329d84adb18c0c261babe5a909e62ab1a39f42df28c058d311b0b2ea9ecbdad9227789ed83c0fae4a12776348999cda3a70cdc457f6d3611 -EBUILD prometheus-bin-2.15.2.ebuild 1503 BLAKE2B f99d34d3633e91878c7c64223ee071c717dfe6aa438e7ff548cbcd62a10b62d1802a946c44486f539b263076f8b14dcb9705d1de5355d5945fc19f18f06ebca3 SHA512 54ae33cb31f85b53735eb29c6f0b0377f94b73eb5b7838a762c2a0c649f887c46e5de6437e88493961b5f871eb6a0e5d058405cd9343309a7cd0ffd52e631e2e +EBUILD prometheus-bin-2.15.2.ebuild 1504 BLAKE2B c08a028d48056ae10bd5f25e0f083d04118746ae5f99c7bbd3fe7e6ff6d52769d9d3b272bb058e132af1b7fd8ac0709cfd2106cf25a69618338a45c1f7844ce3 SHA512 78d134521d15cd3c322ac3365d725ddeef86f7608354b6c23726c8cd845a3f683d9416b6d3cd38520c12fffd9638d582f892825fc1777f1f6c691dd48cfcaf29 MISC metadata.xml 248 BLAKE2B 5d9c3678c604aac0f24c5d5015e28f02b9ce83bb6a179755a44adeb3d69e4dd50be4acc30a6317649f5be23bcf13ac210bbe4712aa403e9c4cf2de351b39c941 SHA512 dc5b06a888be6367909895d5891a08189f4657bcee602e5ff0021be2ad3677e58ec7387ff244625be66a142138666e7eac790d2a7b1e298f0ad644725b5e57e0 diff --git a/app-metrics/prometheus-bin/prometheus-bin-2.15.2.ebuild b/app-metrics/prometheus-bin/prometheus-bin-2.15.2.ebuild index 89e508d0cf53..877bf429003d 100644 --- a/app-metrics/prometheus-bin/prometheus-bin-2.15.2.ebuild +++ b/app-metrics/prometheus-bin/prometheus-bin-2.15.2.ebuild @@ -4,7 +4,7 @@ EAPI=7 DESCRIPTION="prometheus monitoring system and time series database" -HOMEPAGE="http://prometheus.io" +HOMEPAGE="https://prometheus.io" MY_PN=${PN%%-bin} MY_P=${MY_PN}-${PV} SRC_URI="https://github.com/prometheus/prometheus/releases/download/v${PV}/${MY_P}.linux-amd64.tar.gz" diff --git a/app-metrics/prometheus/Manifest b/app-metrics/prometheus/Manifest index 5d45b5ce0a84..01dcdc5e5483 100644 --- a/app-metrics/prometheus/Manifest +++ b/app-metrics/prometheus/Manifest @@ -1,5 +1,8 @@ AUX prometheus.confd 43 BLAKE2B c83afa8ad1133c9e93abd40c862ff5b3ac9a3b3c4447b915ae1482d92096dec9f200d089de2458a6cdb0e72d2bf0652d56e3afd6d5a3cd8a3ed7a6c9a0e3e42c SHA512 37468e897cd34b50b0edc65ada3f0c2e05459c3d96bb7f82d58b6de5bf10a127f1bf7912af93d83d94e3ea7287cfeb2311e36535f291d01a11d152a0b438591c AUX prometheus.initd 929 BLAKE2B d48650b11b77d4d04b5458682456fb20f8085dc3efe9d0ddd2a6c75751ddae156bbb83c20082bc7b6833395602c24da61e2f7610bdff291e05e3eeb4fb651317 SHA512 504122eb8ed19beac81987b77eb78bba9b36b2ef15f28b1a542804271046e06363baf464f3c303982f647eba65fbc2b5459235f56625e1ff3fed9834937cd0d2 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 EBUILD prometheus-2.13.1.ebuild 2059 BLAKE2B 4614929b87ff860eac5b7b46d9b8f60474c51faab659699a0866dccaaef4d149214430d370dc5f0420c756d8d240da4cc8bb33b1948e6b4baf690c20b8905f06 SHA512 aac4922659750e6bcde07a8ef7823a5d8c4d47ccd1107a9f593b95079322031f4c8546b7d0d6df20f736a6a24d869105866c30eaf9e81773e21a6dcad27beac9 +EBUILD prometheus-2.19.1.ebuild 1942 BLAKE2B 4a644da79ba0ec628ede6636469a478d5c6166349c33b86d0667b55e927fb78be8e2e037ca8a87144860f7962b33da55c2d5d7892c556ae3635ec3208311b094 SHA512 7d63dff9863a248b2fee4e26e059d3ceda546c5c6d97f3cc08e0d11ba5030ac88c309370aedd3ac23b69289719be650dcaa670f1a78a56e37caca4074db485ba MISC metadata.xml 334 BLAKE2B f35628a28c6087863ab4d96e1a4a3705f470845fe6c963c47457caf85e14cb1f99938b1b78bad2f87653f525c154f76c8e0e7b18d6f21d2cf10016eacc565984 SHA512 1a64169c81388848bb26d32e8706fb6d4fbcbde847b1e075f1eee297d5fd4b35ecc835e9ed16ac79825f8c17efac78271e6c8735809a57a8b4ed73b5a789300a 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 000000000000..86894dfc6925 --- /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 '<net-analyzer/prometheus-2.0.0_rc0'; then + ewarn "Old prometheus 1.x TSDB won't be converted to the new prometheus 2.0 format" + ewarn "Be aware that the old data currently cannot be accessed with prometheus 2.0" + ewarn "This release requires a clean storage directory and is not compatible with" + ewarn "files created by previous beta releases" + fi +} |