summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-11-09 01:25:15 +0100
committerThomas Deutschmann <whissi@gentoo.org>2021-11-09 01:25:15 +0100
commitef4faf8d786ee74866692064f4ff137c1065b232 (patch)
tree5611d9d9ab24f0208f021f51127f16880decf7f6 /www-apps/grafana-bin
parentprofiles/arch/powerpc: drop qmi related masks (diff)
downloadgentoo-ef4faf8d786ee74866692064f4ff137c1065b232.tar.gz
gentoo-ef4faf8d786ee74866692064f4ff137c1065b232.tar.bz2
gentoo-ef4faf8d786ee74866692064f4ff137c1065b232.zip
www-apps/grafana-bin: bump to v8.1.7
Package-Manager: Portage-3.0.28, Repoman-3.0.3 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-8.1.7.ebuild64
2 files changed, 65 insertions, 0 deletions
diff --git a/www-apps/grafana-bin/Manifest b/www-apps/grafana-bin/Manifest
index 11a3a62ebea7..878bec46e3bf 100644
--- a/www-apps/grafana-bin/Manifest
+++ b/www-apps/grafana-bin/Manifest
@@ -1,2 +1,3 @@
DIST grafana-bin-7.5.11.tar.gz 52218943 BLAKE2B 5c8faef6ccc5460f33e7b2ba876270739a4ad4a2cc036760e3b5c0f84130bd74895f38df3ab9cbf9b85221f66565b8f526392238585d88bf8d8e643a300f5533 SHA512 fa1c228f5c54a4563268192388a43762fcee90f8093caa25ad656de4ba49444944809c03b7934e7f78aefd642432a1bd5fdb6ce93da2ec0d3f3547c46af8fb6a
DIST grafana-bin-8.1.6.tar.gz 55983069 BLAKE2B 91c4cba7595e6d0dc303f246907330707f51ee7c7bd0f983cde4a87806e8cd92bb16b5014df7dfa6103ab47bf71f7bf2adb1a55ab3d9d5d01776f72d2c2b27f7 SHA512 84b1186fe5160a6c7d5a7ec5ffb96e4bd0fef821b381b196301910a74890307833a06cd3cb133eb5efb93c49744d4646a6cbd52fa0e1dc87afa8fb41dfbcea73
+DIST grafana-bin-8.1.7.tar.gz 56240059 BLAKE2B 69cc05433c19330521920af1ff1816830a66d098db4fc8999bdc267a438be3a033a827dc06ffec5e8c587c552c1b310048b75706127eecfed52285f2f6f380b1 SHA512 5f32601db056b29ece2dae28b19547a7eb93b2068cf8cf17dfb743a83d326f00689375be7bec3e4fb08d215a3b2387565d338c5943e29e2664ec93482b157494
diff --git a/www-apps/grafana-bin/grafana-bin-8.1.7.ebuild b/www-apps/grafana-bin/grafana-bin-8.1.7.ebuild
new file mode 100644
index 000000000000..937332ec5f09
--- /dev/null
+++ b/www-apps/grafana-bin/grafana-bin-8.1.7.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit systemd
+
+MY_PN=${PN/-bin/}
+MY_PV=${PV/_beta/-beta}
+S=${WORKDIR}/${MY_PN}-${MY_PV}
+
+DESCRIPTION="Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenTSDB"
+HOMEPAGE="https://grafana.org"
+SRC_URI="https://dl.grafana.com/oss/release/grafana-${PV}.linux-amd64.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="acct-group/grafana
+ acct-user/grafana"
+RDEPEND="${DEPEND}
+ media-libs/fontconfig"
+
+QA_PREBUILT="usr/bin/grafana-*"
+QA_PRESTRIPPED=${QA_PREBUILT}
+
+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-r1.confd grafana
+ newinitd "${FILESDIR}"/grafana.initd 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() {
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ # This is a new installation
+
+ 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."
+ fi
+}