summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2018-11-19 02:35:43 +0100
committerThomas Deutschmann <whissi@gentoo.org>2018-11-19 02:35:43 +0100
commit6b288fdbb9a93cb81c7d3abf7862f2a54443e170 (patch)
treea2a719608beee4fd5e72829747bab599194587ed /www-apps/grafana-bin
parentnet-libs/ldns: add subslot operator on dev-libs/openssl atom (diff)
downloadgentoo-6b288fdbb9a93cb81c7d3abf7862f2a54443e170.tar.gz
gentoo-6b288fdbb9a93cb81c7d3abf7862f2a54443e170.tar.bz2
gentoo-6b288fdbb9a93cb81c7d3abf7862f2a54443e170.zip
www-apps/grafana-bin: bump to v5.3.4
Package-Manager: Portage-2.3.51, Repoman-2.3.12 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'www-apps/grafana-bin')
-rw-r--r--www-apps/grafana-bin/Manifest1
-rw-r--r--www-apps/grafana-bin/grafana-bin-5.3.4.ebuild63
2 files changed, 64 insertions, 0 deletions
diff --git a/www-apps/grafana-bin/Manifest b/www-apps/grafana-bin/Manifest
index fe1e3c911035..0e0b8815a03e 100644
--- a/www-apps/grafana-bin/Manifest
+++ b/www-apps/grafana-bin/Manifest
@@ -2,3 +2,4 @@ DIST grafana-bin-5.2.4.tar.gz 54300847 BLAKE2B defb1b32fafe95c17ab4201665df053d8
DIST grafana-bin-5.2.5.tar.gz 54300812 BLAKE2B c6b0928f15938e6240551a80b00e996e450a1fef5aeb703728e4654d4e0c081ad23f3250775d5de5858b4bff7ed0753a90b41caf502e2e93b28bb4fa4f1c86c7 SHA512 eff8331c99ed4483a6d715b58170cc0b9c7f57aaff66cc03daa68e767cfb67635ece0583ea476a74e0df176d40fe4d92778533d0545476a5528d8ec8f9e400a7
DIST grafana-bin-5.3.1.tar.gz 54595281 BLAKE2B a6feb32e885bb6ce89c168e51e2b2ef6fd33557b44e6ed5f23a3b724b67f7e3055234bb25a714cc515a89d0de6dd69ccfec92c5aeeed72865ce4f646b3a9bba5 SHA512 b439be6d031d24f046985cddce0ce2866efb808f9d107f305998ed042b6bc86f5fdb4482d31bb3da53e4f57d52ac61bd7448394410cd063e46f396f7506cd179
DIST grafana-bin-5.3.2.tar.gz 54609996 BLAKE2B c5c4493e31a766332cda727ede440d4cce59278e1d1693409d112d8093f3074f95e2cc10b0c21379f306eed497d1fc236d5744f111afb512473ff5e097afb3d2 SHA512 d2f4786c304af42c2680210f712cb11010825b76cb1155235841a1f80d30715f2f2b3510ac93594d807b132e4f5c43d89cab026db2b7ea20672f592e3b117b09
+DIST grafana-bin-5.3.4.tar.gz 54609273 BLAKE2B 4a9197baaa6d6689d1e23630f49513a9b6b90ebb081ab8f82fff8e2f3f1c156b0fec5a30c6f6222a3225646b37305a535747e4a60157528a56f222cba56a8ada SHA512 97aa9325f9886a13844828d29395fb6a0752ccc0311119850c78425a0d0c8e82844b20b4c0dbacec0de479aaa26dddb5510485d0fd6a8a7e760f4b540bb3b270
diff --git a/www-apps/grafana-bin/grafana-bin-5.3.4.ebuild b/www-apps/grafana-bin/grafana-bin-5.3.4.ebuild
new file mode 100644
index 000000000000..211fc9468af4
--- /dev/null
+++ b/www-apps/grafana-bin/grafana-bin-5.3.4.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2018 Gentoo Authors
+# 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."
+}