summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2018-09-15 16:03:34 +0200
committerThomas Deutschmann <whissi@gentoo.org>2018-09-15 16:03:47 +0200
commit99c7438c280ea5f4d0053e3baab212cc614e6046 (patch)
tree66531d56786fd8431cbc093f33a947b8d6d0edc3 /www-apps
parentsys-apps/colorized-logs: Version bump (diff)
downloadgentoo-99c7438c280ea5f4d0053e3baab212cc614e6046.tar.gz
gentoo-99c7438c280ea5f4d0053e3baab212cc614e6046.tar.bz2
gentoo-99c7438c280ea5f4d0053e3baab212cc614e6046.zip
www-apps/grafana-bin: bump to v5.2.4
Package-Manager: Portage-2.3.49, Repoman-2.3.10
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/grafana-bin/Manifest1
-rw-r--r--www-apps/grafana-bin/grafana-bin-5.2.4.ebuild63
2 files changed, 64 insertions, 0 deletions
diff --git a/www-apps/grafana-bin/Manifest b/www-apps/grafana-bin/Manifest
index 4180f77ab0c0..68f97e03c177 100644
--- a/www-apps/grafana-bin/Manifest
+++ b/www-apps/grafana-bin/Manifest
@@ -1 +1,2 @@
DIST grafana-bin-5.2.3.tar.gz 54301168 BLAKE2B 42d86f74179040f36860f49b687a210247bf55728502279c77bd58b934edfe0d42ad81e4e924de9a0db952c2158ff16bcab094d992c1913a244028ceafe60544 SHA512 c7c8ed116a72a41cc4c2c8abe2c47b77ebd071d2112c4a88f3a9e76a524f21ef97386b3fa1364776c3f715ce0def75428e113226b1ce288f81896e2bd1dfebb4
+DIST grafana-bin-5.2.4.tar.gz 54300847 BLAKE2B defb1b32fafe95c17ab4201665df053d8cb1cf7154a366d2b0bbf3936ffa4baf6f5a3ae3e5fe9fa96334fc0bfcc557106c38d4dcab5d5b5ca64b588726274034 SHA512 75c0ca8735ab0e8c2b340322cc5b0d5adec90a7159761cd9fa2c346a5a4e9fcceb904d160e55be2e4c9b5fa582356aa20430f9d4577e2df3195825d83de897d2
diff --git a/www-apps/grafana-bin/grafana-bin-5.2.4.ebuild b/www-apps/grafana-bin/grafana-bin-5.2.4.ebuild
new file mode 100644
index 000000000000..8db7c5ac1d9f
--- /dev/null
+++ b/www-apps/grafana-bin/grafana-bin-5.2.4.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit user systemd
+
+MY_PN=${PN/-bin/}
+S=${WORKDIR}/${MY_PN}-${PV}
+
+DESCRIPTION="Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenTSDB"
+HOMEPAGE="https://grafana.org"
+SRC_URI="https://s3-us-west-2.amazonaws.com/grafana-releases/release/${MY_PN}-${PV}.linux-amd64.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+QA_EXECSTACK="usr/share/grafana/vendor/phantomjs/phantomjs"
+QA_PREBUILT="usr/bin/grafana-*"
+QA_PRESTRIPPED=${QA_EXECSTACK}
+
+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 || die
+
+ # Frontend assets
+ insinto /usr/share/${MY_PN}
+ doins -r public conf
+
+ dobin bin/grafana-cli
+ dobin bin/grafana-server
+
+ newconfd "${FILESDIR}"/grafana.confd grafana
+ newinitd "${FILESDIR}"/grafana.initd.3 grafana
+ systemd_newunit "${FILESDIR}"/grafana.service grafana.service
+
+ keepdir /var/{lib,log}/grafana
+ keepdir /var/lib/grafana/{dashboards,plugins}
+ fowners grafana:grafana /var/{lib,log}/grafana
+ fowners grafana:grafana /var/lib/grafana/{dashboards,plugins}
+ fperms 0750 /var/{lib,log}/grafana
+ fperms 0750 /var/lib/grafana/{dashboards,plugins}
+}
+
+postinst() {
+ elog "${PN} has built-in log rotation. Please see [log.file] section of"
+ elog "/etc/grafana/grafana.ini for related settings."
+ elog
+ elog "You may add your own custom configuration for app-admin/logrotate if you"
+ elog "wish to use external rotation of logs. In this case, you also need to make"
+ elog "sure the built-in rotation is turned off."
+}