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 6F6F8138334 for ; Mon, 18 Jun 2018 10:31:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3CC77E08BB; Mon, 18 Jun 2018 10:31:17 +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 EBB88E08BB for ; Mon, 18 Jun 2018 10:31:16 +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 13B36335C7D for ; Mon, 18 Jun 2018 10:31:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A7CFE299 for ; Mon, 18 Jun 2018 10:31:12 +0000 (UTC) From: "Manuel Rüger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Manuel Rüger" Message-ID: <1529317848.90a3ed46a6a1d50410fbe2a3b28680edc2691453.mrueg@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-metrics/alertmanager/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-metrics/alertmanager/Manifest app-metrics/alertmanager/alertmanager-0.15.0_rc3.ebuild X-VCS-Directories: app-metrics/alertmanager/ X-VCS-Committer: mrueg X-VCS-Committer-Name: Manuel Rüger X-VCS-Revision: 90a3ed46a6a1d50410fbe2a3b28680edc2691453 X-VCS-Branch: master Date: Mon, 18 Jun 2018 10:31:12 +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-Archives-Salt: 634b16ea-7c86-44f5-a8d2-657f28787a21 X-Archives-Hash: 80cfbfe2c364af6b5db23c15b682598a commit: 90a3ed46a6a1d50410fbe2a3b28680edc2691453 Author: Manuel Rüger gentoo org> AuthorDate: Mon Jun 18 10:30:48 2018 +0000 Commit: Manuel Rüger gentoo org> CommitDate: Mon Jun 18 10:30:48 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90a3ed46 app-metrics/alertmanager: Version bump to 0.15.0_rc3 Package-Manager: Portage-2.3.40, Repoman-2.3.9 app-metrics/alertmanager/Manifest | 1 + .../alertmanager/alertmanager-0.15.0_rc3.ebuild | 52 ++++++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/app-metrics/alertmanager/Manifest b/app-metrics/alertmanager/Manifest index 4ae583de8ea..d19d34d2e63 100644 --- a/app-metrics/alertmanager/Manifest +++ b/app-metrics/alertmanager/Manifest @@ -1,3 +1,4 @@ DIST alertmanager-0.14.0.tar.gz 2786623 BLAKE2B e9c773af81153b3062d27464c6b8d1edcafe66575b8d5a6309b162c6546d3dedf7ae5b1afcf4dafb3dfdb6bcf826aeb9119b27cfe596da365a6272ee71b30441 SHA512 e352d51d86b853ff679892df3c494da2c7b4afb918d807e6d63b76e959b586f43a4c773de18bdd9e6a5067d4034748bb304ebdee2f08983b00890c1ae393d0b8 DIST alertmanager-0.15.0_rc1.tar.gz 2982827 BLAKE2B 76c36dab3b2569c81d1738320b7ac7f480715cf119a416df8fa2d7718641390709cb984c48235d7ebfd2413cd7b9c90b62eaa69786e55dc3ad38626f0c46a486 SHA512 93e5d1b068a1dea37f6de3c91fbb86329275e9ecd4a518eb874a735c386acfc19399611c061fff8c7f53cfc0b73fbbce0e17a6ac4757ea120e701dfe673b44e0 DIST alertmanager-0.15.0_rc2.tar.gz 2722554 BLAKE2B b2f5261c1dfef93075df72cb1997e3dfe71a2642bb0b4a43616e85fda9ec3d2985cebb247bab6703478bc2d64f7ba2ba72adfeb9f209a16cf728abae760a814b SHA512 54177fd233ff4d6d15eb3f1653171f12727a6a1473784044ab6201a64dcacf601db9cf3a2c565493c707f61099db61f5b04523b576719e3611f5b32e5ea2ebe1 +DIST alertmanager-0.15.0_rc3.tar.gz 2755833 BLAKE2B 60f17b61ad3ba518064b2999f2fab05d53fdf55c5b787314efbad0e427166442b76017951d3ca7bf2c886328d01713eeca7a36f975dad30d9fb19c0c176e1b5e SHA512 73370f18ba085e8b6701400d88983a849eb53734b14b187e56aacd89a57cf4e236332906add1f6ee8c3eaada0284b62d7a9b4174a888c694d48b8ecd120c186d diff --git a/app-metrics/alertmanager/alertmanager-0.15.0_rc3.ebuild b/app-metrics/alertmanager/alertmanager-0.15.0_rc3.ebuild new file mode 100644 index 00000000000..ce37eebba0d --- /dev/null +++ b/app-metrics/alertmanager/alertmanager-0.15.0_rc3.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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="5e86f61" +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-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 + GOPATH="${S}" 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} +}