summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-09-01 16:04:23 +0200
committerThomas Deutschmann <whissi@gentoo.org>2021-09-01 16:04:23 +0200
commit5ff29fbd717ea683957043fa4c8aa431670ebdc6 (patch)
tree49b07c8f198cfe01bdae84d58562426847c8d859 /www-apps
parentmedia-plugins/kodi-audioencoder-wav: 19.0.0 version bump (diff)
downloadgentoo-5ff29fbd717ea683957043fa4c8aa431670ebdc6.tar.gz
gentoo-5ff29fbd717ea683957043fa4c8aa431670ebdc6.tar.bz2
gentoo-5ff29fbd717ea683957043fa4c8aa431670ebdc6.zip
www-apps/grafana-bin: bump to v8.1.2
Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/grafana-bin/Manifest1
-rw-r--r--www-apps/grafana-bin/grafana-bin-8.1.2.ebuild64
2 files changed, 65 insertions, 0 deletions
diff --git a/www-apps/grafana-bin/Manifest b/www-apps/grafana-bin/Manifest
index 42a8aa2764ae..deb639ac5b40 100644
--- a/www-apps/grafana-bin/Manifest
+++ b/www-apps/grafana-bin/Manifest
@@ -4,3 +4,4 @@ DIST grafana-bin-7.5.9.tar.gz 52215297 BLAKE2B 06fa63811f950081a581d402527a14660
DIST grafana-bin-8.0.2.tar.gz 55512802 BLAKE2B fd535c8e1fca3136913ef1008c6e5ef8efa2871accc7a035354afd4b79a6e4d6340749c460c8c3d15e9edc07c426640b349c688a64ab678d61809f88f81b913a SHA512 d2421ba74b3eaaff3091fcf5015e6ca5cc050e205276b4d873a8d1fb3071cddd20fa846d9a03044752079564a458172e084ef69db4609fb520897a4f1d6fa4f2
DIST grafana-bin-8.0.5.tar.gz 55588076 BLAKE2B 85845c7492a4dd76b47d959cadbcfb1bffa1f00b295296e4e8ae3033e4a52f654551a66f781f34d4ab4666bf05681bf3ced870fab6c59f758f9814fe67e5b1d7 SHA512 c0df8ee147c4876e29fd8b4f7943550b4c615787ecd50e7a40eee68d8f64bd4e9958e2473e00fc4244e4440f01750cf7b349a4baa769d69ee61c043538679a56
DIST grafana-bin-8.0.6.tar.gz 55602674 BLAKE2B da782a59bf2ae363ac639b43540883985b0ba1a42b1ab8f5438157a22b91f129e22d54dc4e95e6b817ea6b1edb35350883129254b6235f1e6d02739bd494a4bd SHA512 f8a65c52c4e6d9f72d8828c09bab719b1cb81173be4d661dc40925618054f1ef924af06c20d36d901feb8b17a0b7dc1cf55ab9d65e9c3829e34967063f854413
+DIST grafana-bin-8.1.2.tar.gz 57186805 BLAKE2B 93108fd4f873f6c6e555735d80c57a35f53f0629be76cddf000f58d48bc95ecd53934ee66f068abaef985b94994b4377cb09b2d64d47b83e35c9e30adb5eb02a SHA512 0a0ffa010c8d7c603bbe884b2dfcf5f4e42a9036181f7f5755e333ac6bac8fb193365c9ee5325d113e81e389d9ddc7c4847b436023fcdd74dc4ac0df3cb0bdd3
diff --git a/www-apps/grafana-bin/grafana-bin-8.1.2.ebuild b/www-apps/grafana-bin/grafana-bin-8.1.2.ebuild
new file mode 100644
index 000000000000..937332ec5f09
--- /dev/null
+++ b/www-apps/grafana-bin/grafana-bin-8.1.2.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
+}