Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-metrics/alertmanager/
Date: Thu, 02 May 2019 16:36:22
Message-Id: 1556814900.ceb565d3303f69af3ec1c1fca457e196d1caba38.mrueg@gentoo
1 commit: ceb565d3303f69af3ec1c1fca457e196d1caba38
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 2 16:35:00 2019 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Thu May 2 16:35:00 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ceb565d3
7
8 app-metrics/alertmanager: Version bump to 0.17.0
9
10 Package-Manager: Portage-2.3.66, Repoman-2.3.12
11 Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org>
12
13 app-metrics/alertmanager/Manifest | 1 +
14 .../alertmanager/alertmanager-0.17.0.ebuild | 53 ++++++++++++++++++++++
15 2 files changed, 54 insertions(+)
16
17 diff --git a/app-metrics/alertmanager/Manifest b/app-metrics/alertmanager/Manifest
18 index c9fabbccf5d..a3611e4f0c7 100644
19 --- a/app-metrics/alertmanager/Manifest
20 +++ b/app-metrics/alertmanager/Manifest
21 @@ -6,3 +6,4 @@ DIST alertmanager-0.15.3.tar.gz 2758678 BLAKE2B 68c319e00e800fc35ce5a319b0c6bc37
22 DIST alertmanager-0.16.0.tar.gz 3608969 BLAKE2B a0cc7af4da45cb240e85cb39bd1eb87a8b8705f2ee2e87227cccd7e9ccc78278a89a089dd4a19a5a3d9f9667a0934b4e681e2fbbb378fb22510a742ee76fbaa3 SHA512 a3a2288d2a2205e0d94915603e4758447f194ebe06e69b5518fb7ebdb7d6ec4bab5db623e4dec57938a7936a9ac96be7cebd57304c7983deac11c61edd39b2b3
23 DIST alertmanager-0.16.1.tar.gz 3611221 BLAKE2B 9871ff9c6e117cc8655d61b24d2f70a4061246d4c8902850c1802215b0dfa69d3b840ce46b237ae7d0caa2de33b956e7e9f47a8db40c6c32df53117e2d5e69b5 SHA512 7ac369bca5a3425bb80e5610a3e4141a2e112dac7c44d468096c7b80bcf7d77c7f653fd14d2db999f4abdea07df5ea250b27aa78c073be412777bdd289983332
24 DIST alertmanager-0.16.2.tar.gz 3616125 BLAKE2B f7ab0dc0b4ae08527d02643facb1e0192215b64b80120e2ca0b203af2ae21b2ba9d247a037b36e96be841f39f170964e6f27e07b65003b610c04a25d1e30f3c3 SHA512 94012739c5c9691ff34bb521e220e00de13ef866451ffaaa8d45f85c228c6b515a84550a819b351db36e3da7c17a0fa397b5b1c6a4cbc3451442f5064a0184a3
25 +DIST alertmanager-0.17.0.tar.gz 5118311 BLAKE2B 351a47ebc0545767f9da6fdb1e276da022d6b12e424d7edc5fb471505f777f0bb403e06ff3a9b5e4817d7f612dfabb477d39c09a8e129a93e0dbcd094c082fbe SHA512 7cca7400640030caa44f713bda163dd142ad95e5b6b26d1976564fbc0b0888f26646b75c6bb4b6cc7405fa41bed9c727fca475245a170989c61b3b61cb797299
26
27 diff --git a/app-metrics/alertmanager/alertmanager-0.17.0.ebuild b/app-metrics/alertmanager/alertmanager-0.17.0.ebuild
28 new file mode 100644
29 index 00000000000..4b36f4b2ddc
30 --- /dev/null
31 +++ b/app-metrics/alertmanager/alertmanager-0.17.0.ebuild
32 @@ -0,0 +1,53 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +inherit user golang-build golang-vcs-snapshot
38 +
39 +EGO_PN="github.com/prometheus/alertmanager"
40 +EGIT_COMMIT="v${PV/_rc/-rc.}"
41 +ALERTMANAGER_COMMIT="c7551cd"
42 +ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
43 +KEYWORDS="~amd64"
44 +
45 +DESCRIPTION="Alertmanager for alerts sent by client applications such as Prometheus"
46 +HOMEPAGE="https://github.com/prometheus/alertmanager"
47 +SRC_URI="${ARCHIVE_URI}"
48 +LICENSE="Apache-2.0"
49 +SLOT="0"
50 +IUSE=""
51 +
52 +DEPEND=">=dev-lang/go-1.11
53 + dev-util/promu"
54 +
55 +RESTRICT="test"
56 +
57 +pkg_setup() {
58 + enewgroup ${PN}
59 + enewuser ${PN} -1 -1 -1 ${PN}
60 +}
61 +
62 +src_prepare() {
63 + default
64 + sed -i -e "s/{{.Revision}}/${ALERTMANAGER_COMMIT}/" src/${EGO_PN}/.promu.yml || die
65 +}
66 +
67 +src_compile() {
68 + pushd src/${EGO_PN} || die
69 + mkdir -p bin || die
70 + GO111MODULE=on GOPATH="${S}" GOCACHE="${T}/go-cache" promu build -v --prefix bin || die
71 + popd || die
72 +}
73 +
74 +src_install() {
75 + pushd src/${EGO_PN} || die
76 + dobin bin/*
77 + dodoc {README,CHANGELOG,CONTRIBUTING}.md
78 + insinto /etc/alertmanager/
79 + newins doc/examples/simple.yml config.yml.example
80 + popd || die
81 + keepdir /var/lib/alertmanager /var/log/alertmanager
82 + fowners ${PN}:${PN} /var/lib/alertmanager /var/log/alertmanager
83 + newinitd "${FILESDIR}"/${PN}.initd ${PN}
84 + newconfd "${FILESDIR}"/${PN}.confd ${PN}
85 +}