diff options
author | Patrick Lauer <patrick@gentoo.org> | 2024-08-05 06:38:20 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2024-08-05 06:38:20 +0000 |
commit | e641f28e14f6e97933b898b8e572c2cd653d4c62 (patch) | |
tree | 181aa4f9715ef72b71886a39c2f2bccafe8504c9 /www-apps/grafana-bin | |
parent | www-apps/grafana-bin: drop 9.5.15, 10.1.6 (diff) | |
download | gentoo-e641f28e14f6e97933b898b8e572c2cd653d4c62.tar.gz gentoo-e641f28e14f6e97933b898b8e572c2cd653d4c62.tar.bz2 gentoo-e641f28e14f6e97933b898b8e572c2cd653d4c62.zip |
www-apps/grafana-bin: add 10.2.9, 10.3.7
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-10.2.9.ebuild | 67 | ||||
-rw-r--r-- | www-apps/grafana-bin/grafana-bin-10.3.7.ebuild | 67 |
3 files changed, 136 insertions, 0 deletions
diff --git a/www-apps/grafana-bin/Manifest b/www-apps/grafana-bin/Manifest index b6f36ca71db9..cb350abdf579 100644 --- a/www-apps/grafana-bin/Manifest +++ b/www-apps/grafana-bin/Manifest @@ -1,5 +1,7 @@ DIST grafana-bin-10.2.3.tar.gz 108993853 BLAKE2B c04ca8a92d974b74732c5da211293117b2b65cd3363445699f7a3e5e1fbaf7e9fb99c183b7c89c8aaec3957cd8e01d2060a7aab55c74bfd000749fe04e75ffa2 SHA512 02e9e2e6d244b36cfabcc7c46bc6356cc66e0f76bd9e96f7c642a5ed44cb8c435b9085d162210dea549bcbad4764a5a1b2c3773b0a2d2db98ab76cbc7f8ab257 +DIST grafana-bin-10.2.9.tar.gz 109107188 BLAKE2B 5ec881e92c5f39fa6c34f0355dba09035eeb1fc228fb6c4fe75bebe646ccb0ec618809737e5bc302d629060b99dce0e6ddbf2e3ea36d2b3255a65e0f636e18fa SHA512 711bdce2a52e7f5beb94c694a956ffbf1a5738ce82eea91e377459611be91b362991bdca62ffe9edecb542cd420ce3c90e27bd79140340bdabc7ea10def765c8 DIST grafana-bin-10.3.1.tar.gz 111106552 BLAKE2B 36ee6dc1fe05e622a67f386d386bdbc27ccf2d1259a35984654cdbb26cd1cff5b65e8996e33e19e56a2d898e0be2eebb04848599c332bf712f2ec872e72f31c1 SHA512 c89ef027c119de69034140e21a680d1045882877579c3c71d8d33310429e21d8ff849c3d9c18b2e559bb238218125646f02d8f532e74a657629e52b794d449a3 +DIST grafana-bin-10.3.7.tar.gz 111303583 BLAKE2B b0291f5887ca1612d5b1672132aa04f2945febdad5a12d8257e216d1a7da9bf27f8107ce4b2f20afa22009a583f9349f86d08e9c23ab4e01293763a8c89558c3 SHA512 e9ab97cf24fb639465388f2f8b3ab604c2157e1246b22e695ad393751c93a6a7a881e08f958d1b1fc9cbd41355ab74b7df88adbb6d608f0796b6283b8da10a29 DIST grafana-bin-11.1.0.amd64.tar.gz 123535977 BLAKE2B 57f205222fd2329be0c1986f3eb3610d14997a5a0de75d2a6d5d7823a481e9a2f2520c9eab22bdf16d6a5161792db9d7bbe3e8fdf78aa4869a4651608f206371 SHA512 f43781c5148a0de77e2a9591987fd3927ccfe565609701f88999b73102f45ef62883775d51d47c8712414baabc5627331d8127437798a8341fc758c6c90627ba 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 diff --git a/www-apps/grafana-bin/grafana-bin-10.2.9.ebuild b/www-apps/grafana-bin/grafana-bin-10.2.9.ebuild new file mode 100644 index 000000000000..2c577a3728da --- /dev/null +++ b/www-apps/grafana-bin/grafana-bin-10.2.9.ebuild @@ -0,0 +1,67 @@ +# 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} +S=${WORKDIR}/${MY_PN}-v${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 + 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 +} diff --git a/www-apps/grafana-bin/grafana-bin-10.3.7.ebuild b/www-apps/grafana-bin/grafana-bin-10.3.7.ebuild new file mode 100644 index 000000000000..2c577a3728da --- /dev/null +++ b/www-apps/grafana-bin/grafana-bin-10.3.7.ebuild @@ -0,0 +1,67 @@ +# 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} +S=${WORKDIR}/${MY_PN}-v${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 + 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 +} |