commit:     481c1c90bf02eb69bf1d08c026bd172755a7bcbf
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 28 13:09:46 2016 +0000
Commit:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
CommitDate: Tue Jun 28 13:39:25 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=481c1c90

www-apps/grafana-bin: Bump to 3.1_beta

Package-Manager: portage-2.3.0

 www-apps/grafana-bin/Manifest                      |  1 +
 .../grafana-bin/grafana-bin-3.1.0_beta1.ebuild     | 51 ++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/www-apps/grafana-bin/Manifest b/www-apps/grafana-bin/Manifest
index ada2638..0302ba3 100644
--- a/www-apps/grafana-bin/Manifest
+++ b/www-apps/grafana-bin/Manifest
@@ -1 +1,2 @@
 DIST grafana-bin-3.0.4.tar.gz 40460699 SHA256 
ec5581d055bb67abac3007457a30869bca263c151264011cf0c9ce086c5329df SHA512 
eca12381e5aec14ba40e0821a3e46a169f789f7d7d00c89db2ef1d7db1a770a09906d144515cfac72d5b1bff72a18f9ad71316439ea33240ccefcd859752a916
 WHIRLPOOL 
fa48e9f6b4792cc3f1d6123d624d4404a7283aee9dca8b59ce524fd02db6de9120607d0bb04eae052d56f0cd416e46b67a7cbb212cb64994b2d78e281ba88d5f
+DIST grafana-bin-3.1.0_beta1.tar.gz 40611974 SHA256 
46e22ddf361c862f8c867ab7e69bddeb39b6b143f052cca93bbfd237b89ad317 SHA512 
42817c355347505281e0e7de976f5d995a204231c5ad0a20c0d5a59ae459c12c5bfc3a8390e473b34f5206a3bf73719cc30666b0acc229ac2aa1959cafdc1ce9
 WHIRLPOOL 
f501cc193438c782e6376a4cf9c5bd141ba201775cce6348e2e74974fa48654f2f53433a837f02a55d1cd13a97963097936aae2b13730d3648c06667853c8cbb

diff --git a/www-apps/grafana-bin/grafana-bin-3.1.0_beta1.ebuild 
b/www-apps/grafana-bin/grafana-bin-3.1.0_beta1.ebuild
new file mode 100644
index 0000000..0c1efca
--- /dev/null
+++ b/www-apps/grafana-bin/grafana-bin-3.1.0_beta1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit user
+MY_PN=${PN/-bin/}
+MY_PV="3.1.0-1466666977beta1"
+S=${WORKDIR}/${MY_PN}-${MY_PV}
+
+DESCRIPTION="Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB 
& OpenTSDB"
+HOMEPAGE="http://grafana.org";
+SRC_URI="https://grafanarel.s3.amazonaws.com/builds/${MY_PN}-${MY_PV}.linux-x64.tar.gz
 -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}
+       >=dev-lang/go-1.5
+       net-libs/nodejs
+"
+
+pkg_setup() {
+       enewgroup grafana
+       enewuser grafana -1 -1 /usr/share/grafana grafana
+}
+
+src_install() {
+       keepdir /etc/grafana
+       insinto /etc/grafana
+       newins "${S}"/conf/sample.ini grafana.ini
+       rm "${S}"/conf/sample.ini
+
+       # Frontend assets
+       insinto /usr/share/${MY_PN}
+       doins -r public conf vendor
+
+       dobin bin/grafana-cli
+       dobin bin/grafana-server
+
+       newconfd "${FILESDIR}"/grafana.confd grafana
+       newinitd "${FILESDIR}"/grafana.initd grafana
+
+       keepdir /var/{lib,log}/grafana
+       fowners grafana:grafana /var/{lib,log}/grafana
+       fperms 0750 /var/{lib,log}/grafana
+}

Reply via email to