diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-11-09 01:27:56 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-11-09 01:27:56 +0100 |
commit | 2d9dfcb8dd07cd2b09dd4807e2552522418526af (patch) | |
tree | 8cc993f3dcc76247110970e862f3f18f0382762f /www-apps | |
parent | www-apps/grafana-bin: bump to v8.1.7 (diff) | |
download | gentoo-2d9dfcb8dd07cd2b09dd4807e2552522418526af.tar.gz gentoo-2d9dfcb8dd07cd2b09dd4807e2552522418526af.tar.bz2 gentoo-2d9dfcb8dd07cd2b09dd4807e2552522418526af.zip |
www-apps/grafana-bin: bump to v8.2.3
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/grafana-bin/Manifest | 1 | ||||
-rw-r--r-- | www-apps/grafana-bin/grafana-bin-8.2.3.ebuild | 64 |
2 files changed, 65 insertions, 0 deletions
diff --git a/www-apps/grafana-bin/Manifest b/www-apps/grafana-bin/Manifest index 878bec46e3bf..51f751c28faf 100644 --- a/www-apps/grafana-bin/Manifest +++ b/www-apps/grafana-bin/Manifest @@ -1,3 +1,4 @@ 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 +DIST grafana-bin-8.2.3.tar.gz 66431029 BLAKE2B 1a62bcb23e5668f2ddaf3ccb210d23a6b7a384be924f749f89ad949112b08a0e3f791c266be7355190abab1006cbd0f5bf4787300c2a1fdccfa0307d82cfeb7b SHA512 0b2a00df2733799ab1ef3e50da2a31025d37f63caa5d1883ac2d350766b6e803cf0fd36b16474d42e645ac08acee67866b523ce4a4b387b02554c0fae1ea4a19 diff --git a/www-apps/grafana-bin/grafana-bin-8.2.3.ebuild b/www-apps/grafana-bin/grafana-bin-8.2.3.ebuild new file mode 100644 index 000000000000..937332ec5f09 --- /dev/null +++ b/www-apps/grafana-bin/grafana-bin-8.2.3.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 +} |