app-metrics/alertmanager: Version bump to 0.18.0
authorManuel Rüger <mrueg@gentoo.org>
Tue, 9 Jul 2019 12:48:12 +0000 (14:48 +0200)
committerManuel Rüger <mrueg@gentoo.org>
Tue, 9 Jul 2019 12:48:12 +0000 (14:48 +0200)
Package-Manager: Portage-2.3.68, Repoman-2.3.16
Signed-off-by: Manuel Rüger <mrueg@gentoo.org>
app-metrics/alertmanager/Manifest
app-metrics/alertmanager/alertmanager-0.18.0.ebuild [new file with mode: 0644]

index 6fdc30fb4738c58c62508b699eef61b95bcc700c..82971bab27ed1c40dc1452fcf48c3e3fe8ffb1ff 100644 (file)
@@ -1,3 +1,4 @@
 DIST alertmanager-0.15.3.tar.gz 2758678 BLAKE2B 68c319e00e800fc35ce5a319b0c6bc3717bc7d5479e3204420949cc937a1470006d1e582f79b1562a810dc67c5827a6e0c8985618101a05c62c4231541d299a5 SHA512 95822f786b488fe747dbd780267f91830dbf0629878942a0ad131dcd3c8b18c34e672cb1e59151fb2ac9bcbf25095d0b134dabe4ff87d6a3625b4f443784f716
 DIST alertmanager-0.16.2.tar.gz 3616125 BLAKE2B f7ab0dc0b4ae08527d02643facb1e0192215b64b80120e2ca0b203af2ae21b2ba9d247a037b36e96be841f39f170964e6f27e07b65003b610c04a25d1e30f3c3 SHA512 94012739c5c9691ff34bb521e220e00de13ef866451ffaaa8d45f85c228c6b515a84550a819b351db36e3da7c17a0fa397b5b1c6a4cbc3451442f5064a0184a3
 DIST alertmanager-0.17.0.tar.gz 5118311 BLAKE2B 351a47ebc0545767f9da6fdb1e276da022d6b12e424d7edc5fb471505f777f0bb403e06ff3a9b5e4817d7f612dfabb477d39c09a8e129a93e0dbcd094c082fbe SHA512 7cca7400640030caa44f713bda163dd142ad95e5b6b26d1976564fbc0b0888f26646b75c6bb4b6cc7405fa41bed9c727fca475245a170989c61b3b61cb797299
+DIST alertmanager-0.18.0.tar.gz 5181819 BLAKE2B efcc856ccacb97646915e8d622179cf3cc7554351036cf556347ec46cdede5c9223139cb209b52376964c7b19b119f3683f82698d1e7c07b1432bb3e4bb37239 SHA512 59faec308abaac3d2b59198fef25109b208de1a807b38803dc10722ff0caf1bac9d9795005fefb3b4e2acda62be136bfcafe7b9702ae52565021a424f99fa730
diff --git a/app-metrics/alertmanager/alertmanager-0.18.0.ebuild b/app-metrics/alertmanager/alertmanager-0.18.0.ebuild
new file mode 100644 (file)
index 0000000..1cbc8d1
--- /dev/null
@@ -0,0 +1,53 @@
+# Copyright 1999-2019 Gentoo Authors
+# 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/alertmanager"
+EGIT_COMMIT="v${PV/_rc/-rc.}"
+ALERTMANAGER_COMMIT="1ace0f7"
+ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="Alertmanager for alerts sent by client applications such as Prometheus"
+HOMEPAGE="https://github.com/prometheus/alertmanager"
+SRC_URI="${ARCHIVE_URI}"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+DEPEND=">=dev-lang/go-1.11
+       dev-util/promu"
+
+RESTRICT="test"
+
+pkg_setup() {
+       enewgroup ${PN}
+       enewuser ${PN} -1 -1 -1 ${PN}
+}
+
+src_prepare() {
+       default
+       sed -i -e "s/{{.Revision}}/${ALERTMANAGER_COMMIT}/" src/${EGO_PN}/.promu.yml || die
+}
+
+src_compile() {
+       pushd src/${EGO_PN} || die
+       mkdir -p bin || die
+       GO111MODULE=on GOPATH="${S}" GOCACHE="${T}/go-cache" promu build -v --prefix bin || die
+       popd || die
+}
+
+src_install() {
+       pushd src/${EGO_PN} || die
+       dobin bin/*
+       dodoc {README,CHANGELOG,CONTRIBUTING}.md
+       insinto /etc/alertmanager/
+       newins doc/examples/simple.yml config.yml.example
+       popd || die
+       keepdir /var/lib/alertmanager /var/log/alertmanager
+       fowners ${PN}:${PN} /var/lib/alertmanager /var/log/alertmanager
+       newinitd "${FILESDIR}"/${PN}.initd ${PN}
+       newconfd "${FILESDIR}"/${PN}.confd ${PN}
+}