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 21159139694 for ; Mon, 20 Feb 2017 15:39:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 63DF621C14A; Mon, 20 Feb 2017 15:39:10 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 37D6721C14A for ; Mon, 20 Feb 2017 15:39:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0ED8D340E75 for ; Mon, 20 Feb 2017 15:39:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A8E464E87 for ; Mon, 20 Feb 2017 15:39:07 +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: <1487605119.8aacb119165aa70974de8bb0547173d6960d85ba.mrueg@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/prometheus/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/prometheus/Manifest net-analyzer/prometheus/prometheus-1.5.2.ebuild X-VCS-Directories: net-analyzer/prometheus/ X-VCS-Committer: mrueg X-VCS-Committer-Name: Manuel Rüger X-VCS-Revision: 8aacb119165aa70974de8bb0547173d6960d85ba X-VCS-Branch: master Date: Mon, 20 Feb 2017 15:39:07 +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: 17d5e9dc-2d45-41c6-83ba-3d9d0ede5d31 X-Archives-Hash: 61a27549a54160e315748a76b9a066e9 commit: 8aacb119165aa70974de8bb0547173d6960d85ba Author: Manuel Rüger gentoo org> AuthorDate: Mon Feb 20 15:38:39 2017 +0000 Commit: Manuel Rüger gentoo org> CommitDate: Mon Feb 20 15:38:39 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8aacb119 net-analyzer/prometheus: Version bump to 1.5.2 Package-Manager: Portage-2.3.3, Repoman-2.3.1 net-analyzer/prometheus/Manifest | 1 + net-analyzer/prometheus/prometheus-1.5.2.ebuild | 57 +++++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/net-analyzer/prometheus/Manifest b/net-analyzer/prometheus/Manifest index 427790fb72..6f07183c2e 100644 --- a/net-analyzer/prometheus/Manifest +++ b/net-analyzer/prometheus/Manifest @@ -1,2 +1,3 @@ DIST prometheus-1.5.0.tar.gz 5182830 SHA256 f8eae5f4c51fdd73ceec08fc4895e695b6b02b581aa95e742e0f48f5aefc5537 SHA512 e90ae333c15335d449332487f6bf3d6a64d356208604850ece7ea8568e7e78f500dfc92219e11d57a01231671586de8c76173254b97fcb92fc14787c8c2a2ed7 WHIRLPOOL 42f2f93bdb04c2fa788c17bc4cd2be9b1c3a1de274c01cbba05b2623d902ef236a78092a1e45eb510fe9fdb20f68ab9b82fe1a958b7cc85e240efa0f1e387b06 DIST prometheus-1.5.1.tar.gz 5181576 SHA256 5b8e61edc6b192a5b036fb1e76edcfc8948dbb1bfb05669fab49fdbb37349991 SHA512 3db32bcf0a0d0b0ee010b990167571547ffa90f69a94fe41fa91ac9762e66ce167866a53c54d7aeb46e2f9bd03466a287d9476458c18267d3c45d1a3a358ec5e WHIRLPOOL cd98b4cf587634fc011a78b722012e770d5e5104f54725441f23ea1ed1eb861534780943f6bb9a5277f629f7663a926e1c2ae103014925fe9b34d43581cfc0d7 +DIST prometheus-1.5.2.tar.gz 5183537 SHA256 c4881cc305263cc8da434be69a20aa039386d4feab5e58f8b89a60bfe8b556ac SHA512 5a08b26228b111c65431c0afce082962109f80435a5201ca0dd8883ba300da1f28865231c4182235df7ce4e2baa5b01d6a41cbb7ce29d9cb9f2e2853a2de81d4 WHIRLPOOL a8c2cb3ebd6a210316433a4ff63d18ac13ed196e297384d49e39da2ef88f49a01341af8c17ee5fa3090a3870a5b854c51fded90783afc2b08ebba83466ead856 diff --git a/net-analyzer/prometheus/prometheus-1.5.2.ebuild b/net-analyzer/prometheus/prometheus-1.5.2.ebuild new file mode 100644 index 0000000000..c9e69f93a6 --- /dev/null +++ b/net-analyzer/prometheus/prometheus-1.5.2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit user golang-build golang-vcs-snapshot + +EGO_PN="github.com/prometheus/prometheus/..." +EGIT_COMMIT="v${PV}" +PROMETHEUS_COMMIT="bd1182d" +ARCHIVE_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="Prometheus monitoring system and time series database" +HOMEPAGE="https://github.com/prometheus/prometheus" +SRC_URI="${ARCHIVE_URI}" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +DEPEND="dev-util/promu" + +PROMETHEUS_HOME="/var/lib/prometheus" + +pkg_setup() { + enewgroup prometheus + enewuser prometheus -1 -1 "${PROMETHEUS_HOME}" prometheus +} + +src_prepare() { + default + sed -i -e "s/{{.Revision}}/${PROMETHEUS_COMMIT}/" src/${EGO_PN%/*}/.promu.yml || die +} + +src_compile() { + pushd src/${EGO_PN%/*} || die + GOPATH="${S}" promu build -v || die + popd || die +} + +src_install() { + pushd src/${EGO_PN%/*} || die + dobin promtool prometheus + 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 + popd || die + + 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 +}