summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2024-10-31 21:42:50 +0100
committerFabian Groffen <grobian@gentoo.org>2024-10-31 21:44:21 +0100
commit59c88bb9d0a0de4adbce85b20ebec4c487656d96 (patch)
treebe36384a0d3c1cbc35e9f9c1b614412d58f7e473 /www-apps
parentsys-apps/nvme-cli: drop 2.7.1, 2.8 (diff)
downloadgentoo-59c88bb9d0a0de4adbce85b20ebec4c487656d96.tar.gz
gentoo-59c88bb9d0a0de4adbce85b20ebec4c487656d96.tar.bz2
gentoo-59c88bb9d0a0de4adbce85b20ebec4c487656d96.zip
www-apps/grafana-bin-11.3.0: version bump, allow musl
grafana-bin no longer requires glibc, use this version bump to allow using it on musl systems too. Closes: https://bugs.gentoo.org/941839 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/grafana-bin/Manifest2
-rw-r--r--www-apps/grafana-bin/grafana-bin-11.3.0.ebuild73
2 files changed, 75 insertions, 0 deletions
diff --git a/www-apps/grafana-bin/Manifest b/www-apps/grafana-bin/Manifest
index cb350abdf579..1c537518a8d9 100644
--- a/www-apps/grafana-bin/Manifest
+++ b/www-apps/grafana-bin/Manifest
@@ -6,3 +6,5 @@ DIST grafana-bin-11.1.0.amd64.tar.gz 123535977 BLAKE2B 57f205222fd2329be0c1986f3
DIST grafana-bin-11.1.0.arm64.tar.gz 119348599 BLAKE2B da717dc2e32b72a806e4049a6ebddff334388b55607e2aafb9038e1a61684c57796541e9ebf1af78d2d54cc4792f0fa64888e13418a00c2d78f7374d6b0d5daf SHA512 8d302a22bff30a0bcd57bb3b6c08cc43826c85b6b6847f47c8bc444ed2493bd6d086693bff55f5b1498de916e21641fb59d3c870d7c1e54a4e01184c41d34ade
DIST grafana-bin-11.1.3.amd64.tar.gz 123663816 BLAKE2B 6fea7ec44c0bbeeaeff8810d6368e0773467ccd8e77cdbfd700033fc13af26b9ffac719882d1231d8ec6c664641f1a455f2876a76714c6320d16eb7a9879413b SHA512 531c9f84082a998efbfd8c30c93fba12f6542abbdfe938e427a31be6db992c33c4a3bab5b712a057d01288acbd2716d9959535fd6b881864eb21f60c51efc781
DIST grafana-bin-11.1.3.arm64.tar.gz 119469378 BLAKE2B b7e66e141ed2fc2d297ffa9c46c1dd3fcb662822e2acbf2a3c0b2f1abcf7d2203bac05f9610ec70539150d086863ba58d584bdde526491c9541787b5b3329c23 SHA512 169b472002134e898d5faa6a8b1cb3096a7767f327a7c13c7fa6f4fbebddc850fabf8b3612441edce92c886268e7e3867bfe1ad35c25b8d6fb7c076687f9ecfa
+DIST grafana-bin-11.3.0.amd64.tar.gz 132672499 BLAKE2B fc50cd3b9430e4898191e07d77b1fa520a63086909d5b8589180fa3c8d37441ced28c22935c18bedefc3195f7c725c2f99634f4904e21fd0a36aefc111c9501b SHA512 86478b0cf2ca772766780730b913e9a2e2b310d85ceabfdaa3164a9cd46a73d36ac1a2fa084b55247c50e60476912d3489083ea0d8e23dd7a43b1db3ec45ea91
+DIST grafana-bin-11.3.0.arm64.tar.gz 128576780 BLAKE2B 43a7787905e1ecd5d62cafea8b38cbcb89279e919b536bc12f5d8f2ab77db88d39ec5526f7c2c8788d7a65d7cf8079042b3f7175cd3a508631193ceb3c2feeba SHA512 0a5344d52740163854b3a123d19f715568923134e62bb0c8d1a438ea866febbb30aed79b3b0d7e9b3a3e8cf20210e2cd091cf94802f553dfbec0e6b3e457dde2
diff --git a/www-apps/grafana-bin/grafana-bin-11.3.0.ebuild b/www-apps/grafana-bin/grafana-bin-11.3.0.ebuild
new file mode 100644
index 000000000000..997db139395a
--- /dev/null
+++ b/www-apps/grafana-bin/grafana-bin-11.3.0.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2024 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}
+
+DESCRIPTION="Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenTSDB"
+HOMEPAGE="https://grafana.org"
+SRC_URI="
+amd64? (
+ https://dl.grafana.com/oss/release/grafana-${PV}.linux-amd64.tar.gz -> ${P}.amd64.tar.gz
+)
+arm64? (
+ https://dl.grafana.com/oss/release/grafana-${PV}.linux-arm64.tar.gz -> ${P}.arm64.tar.gz
+)
+"
+S=${WORKDIR}/${MY_PN}-v${MY_PV}
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm64"
+RESTRICT="mirror"
+
+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
+ dobin bin/grafana-server
+
+ newconfd "${FILESDIR}"/grafana-r1.confd grafana
+ newinitd "${FILESDIR}"/grafana.initd2 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}
+}
+
+pkg_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
+}