diff options
author | Patrick Lauer <patrick@gentoo.org> | 2022-10-12 16:05:33 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2022-10-12 16:05:58 +0000 |
commit | 198775540896efa8a18a72fbecf80e227962dddf (patch) | |
tree | b1a0ba07ecb990beac6a8681bfa7388b9da025ed /www-apps/grafana-bin | |
parent | dev-perl/Compress-Raw-Lzma: new package, add 2.201.0 (diff) | |
download | gentoo-198775540896efa8a18a72fbecf80e227962dddf.tar.gz gentoo-198775540896efa8a18a72fbecf80e227962dddf.tar.bz2 gentoo-198775540896efa8a18a72fbecf80e227962dddf.zip |
www-apps/grafana-bin: add 9.1.8, 9.2.0
Signed-off-by: Patrick Lauer <patrick@gentoo.org>
Diffstat (limited to 'www-apps/grafana-bin')
-rw-r--r-- | www-apps/grafana-bin/Manifest | 2 | ||||
-rw-r--r-- | www-apps/grafana-bin/grafana-bin-9.1.8.ebuild | 66 | ||||
-rw-r--r-- | www-apps/grafana-bin/grafana-bin-9.2.0.ebuild | 66 |
3 files changed, 134 insertions, 0 deletions
diff --git a/www-apps/grafana-bin/Manifest b/www-apps/grafana-bin/Manifest index 2846abef1b68..aa2b81c19909 100644 --- a/www-apps/grafana-bin/Manifest +++ b/www-apps/grafana-bin/Manifest @@ -1,3 +1,5 @@ DIST grafana-bin-8.5.13.tar.gz 77785566 BLAKE2B 8c8921a6efb55be4087b09bb0ac094a2e51cd54c36a94e51d0149bac0c549084d9cacbb067e2f7a8bcb42d4e3eaf0919cea191b2ffd15aabe14242ebe6053334 SHA512 7102691ddba7589137dfbcfd8681ac6a85d29c1fb1a9bea71f7a336c97cff68e1ba76b7b30fd0517ddde53147a8b034c078b06212073e3836598b753f3313e93 DIST grafana-bin-9.0.9.tar.gz 79913712 BLAKE2B 9c3a088c5d01a514738dac598e254ef4a10769aecb8a43cc62bab74516337fddd592ac655a9260d661784ed27f14c0ba764de83183a47ed35c98629a9e40c8ea SHA512 dd496f6a52f10c1f579cb5cb13ce92297c3e9a3b2685f0e5d995bf27236ff09c95af662c5613eb4b9d4cf7224995dbb2be27f1a0d63f963f535b281b1be765b6 DIST grafana-bin-9.1.6.tar.gz 81057482 BLAKE2B 714972d4c5018515adad7baf77e5e13a23c3b086d4bfc26da21ad29cdf06504a8aa8a5e9159b41e8eeb11444af035c6987c031e26530f29cbd79e390c5d1ed6d SHA512 10cc25005b7e7dadf8a7c9fbede2c293b0dd2d1f8e264d534cfa21a0edabcda8844a65e6274e253b76467625532c36ac927fe4a0b407eb91fcea7020b9c35bd4 +DIST grafana-bin-9.1.8.tar.gz 82490356 BLAKE2B 8c6cd47d9de5a3331903566e144d9bbbd876de822d869774c4fab717c05f1b10571af9c3a520d8c1ac319e39b3c8ba444453d7264883749bd5a3b41e6838141e SHA512 6aff45a8ca178c1b0cf42dccf2ec34447c5c3318c7f0e04324c7b4a1a274218cf408ff06f23f423dfdfa24ef63d88e4a25354a87e69b88d383993b0ced282cfc +DIST grafana-bin-9.2.0.tar.gz 96845048 BLAKE2B 7e1755624232fc316b11c7d37f3cfb6641f79dc92d22405127e98d596c2f4974110ae926715a313602b6d300b121a7621a1ecb6c6ddbfd1e27b2cc763daa6d85 SHA512 ebd74bb144e65b778bbabd7f13ee4a3fb479854a49b1a4ebb1d28cda736edbc8b68bb3e8f44d89f94a5656bf9064b3902b297d8185c2e986d1ce0467efcfbc5b diff --git a/www-apps/grafana-bin/grafana-bin-9.1.8.ebuild b/www-apps/grafana-bin/grafana-bin-9.1.8.ebuild new file mode 100644 index 000000000000..34a49d80d06a --- /dev/null +++ b/www-apps/grafana-bin/grafana-bin-9.1.8.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2022 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" + +RESTRICT="mirror" +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="-* ~amd64" + +DEPEND="acct-group/grafana + acct-user/grafana" +RDEPEND="${DEPEND} + media-libs/fontconfig + sys-libs/glibc" + +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 +} diff --git a/www-apps/grafana-bin/grafana-bin-9.2.0.ebuild b/www-apps/grafana-bin/grafana-bin-9.2.0.ebuild new file mode 100644 index 000000000000..34a49d80d06a --- /dev/null +++ b/www-apps/grafana-bin/grafana-bin-9.2.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2022 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" + +RESTRICT="mirror" +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="-* ~amd64" + +DEPEND="acct-group/grafana + acct-user/grafana" +RDEPEND="${DEPEND} + media-libs/fontconfig + sys-libs/glibc" + +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 +} |