diff options
Diffstat (limited to 'www-apps/grafana-bin')
-rw-r--r-- | www-apps/grafana-bin/Manifest | 4 | ||||
-rw-r--r-- | www-apps/grafana-bin/grafana-bin-9.2.10.ebuild | 66 | ||||
-rw-r--r-- | www-apps/grafana-bin/grafana-bin-9.3.6.ebuild | 66 |
3 files changed, 136 insertions, 0 deletions
diff --git a/www-apps/grafana-bin/Manifest b/www-apps/grafana-bin/Manifest index afc0b74f00a9..d177799e1618 100644 --- a/www-apps/grafana-bin/Manifest +++ b/www-apps/grafana-bin/Manifest @@ -1,14 +1,18 @@ AUX grafana-r1.confd 870 BLAKE2B e222e17f5a14dc48f9bbc922250754d88610a951b1e6230736fffc0624a24a140bd9a9f11c6900e0f57b652ce3f334963ea453a5db5ee667863c6b69acc0f207 SHA512 cb6836ba69b9d1f0c50778823c507eaffd963341edbc4ea5409d0b068cfcecececfacac71e34b1d546a85674f67b12db99f384e5c6aa2186abe86814818d5db1 AUX grafana.initd 1498 BLAKE2B ac97391c228c09353ef11efb0de37f25802484fbbf71bccedfc9858079ca679ba1567a2a7a40e250ed1fa7477189c30b8c5f175e607b455ae755566a9d89098d SHA512 c3ef1926fabe53728adca6954eb48e8d69c33b4238795e2d0d0406e55e08b3f84760b1abfec556f258af3184e10e6fa116c1b21c704575a54f88050a5266ec87 AUX grafana.service 676 BLAKE2B 98b7e216324a451f97b9b0c2d1bbe493ea3206b8a6113f34f1064f8fde3c931c32913d4b94d77722eefe709434c3f5692b58a840066ae017f5b5f9dfd18ba9a9 SHA512 2355f708b8b5f520efa0d18c81a5e817c29953373b689b8fdd7c3f722f9b4d566d2e8329434daf2268d24fb2ff563b80ad84b144855a67abcf96c2b7b910b31c +DIST grafana-bin-9.2.10.tar.gz 97715216 BLAKE2B c23fb535dca47f8a6d7da0900abcdcd6844d4e0c834b25dcb2bd3e820b5245b395e678a3748d362aa8a02d6128d4ae93b4f63f348dd74a39be6b58ef67008ae1 SHA512 71bb0c34303e80cef364f24d6f7bc55f122a7a9619c46d848d2dd57cc93e172b68db4233dbf5ff95fe32c7d1314acf09b1f78d4414a7dd20176bf5a2dccc9399 DIST grafana-bin-9.2.4.tar.gz 96905343 BLAKE2B bb4f55e166f01123cbfcd1a940a4a42736195f208578889393d66aad35a42726a95908ad793f84769b5483e3bd0de861c5ce7f1375506d2a616f78c836d263e1 SHA512 094d1d131f22f63d8e96a1a61b52440910cb82a9790b502b30375901fcaf48b8b45db52040c9e43667c96e710266f2df77c0ce6542755656e28f84668210f4e9 DIST grafana-bin-9.2.7.tar.gz 97192376 BLAKE2B 6af296375aee559367de9e7e2db53d1b1a96c753853eda21d00367c960b8927e794a9bccaa364c5675a6abd10118485467f4d9a5b7ff17fb8a13015a4db050db SHA512 9ed17e589eecf1c10716c0a9b7cb60259ec3ef98695882475509dd332d6222a44c6886d044992eede93638b7c9826f76f0390fc0808bc85e739825106b3a7762 DIST grafana-bin-9.2.8.tar.gz 97680178 BLAKE2B 1d3c149f6f0f28e2600c10d673187ea200fbe8e6111a2314b83e0a41ed3647d6b7516fe44688ebaf348d55e2dd77ed4acf6ade98e8bea4a92f2cbeac7b523b0c SHA512 b0cc3e89ee5b93adbd2b6bbcaa828a4e8da75d28a8f230eefda42716ebae57f880a482e52708d506152593c0e9ad554bbc56bb72c9d6265f9166b673bfbd5077 DIST grafana-bin-9.3.0.tar.gz 88847005 BLAKE2B 4c37dc077b7f9fb8f9256a2a85094eef5ae2dabe693d039b7c5509ec2662ec544d307dc1cf0043301fb4c3525107bddfac0a7f7a67f0efb8b333936c1b96192d SHA512 1489d3f948259dd3db6403e95f176fea664cb5bfc83a6f22e57ffbe075cc07257a463c4b1d1fd8aa94fbad5473b29608f0c3fc6fdf0c08bcb72f3beeff5163c7 DIST grafana-bin-9.3.2.tar.gz 89322650 BLAKE2B b9256b6468aa4eff1d77a7bce1f701ab61a372baf2f239572921b04a5624933e57c881035de9a0a86a5ff17b942e2965a7807ae2c183a60cfabb4bd4bf546acb SHA512 9d13624f728b5f5845c9780372b9334d81faadf03b47034b0de708fe87e50db3daff95f61e5649548cf6a4181253cc39f6d523dde5651833e72df42fe3577f16 +DIST grafana-bin-9.3.6.tar.gz 89397564 BLAKE2B 1095be4f4fd4cedb70ddc0500b7ec84466d6db5a9be8154e5675fa47cdef0082cd57f5c03e0035f84989e639df2f30ced644c270b0d1189d7a00c54f5dd8ca66 SHA512 2619a6fef8bfaafdd45469198b7b7542def77d795e9c58a03a0308cce1e21db0dda936966a098e750304e6cc5a3576ba059d13aad0fd5f59ca24cf3074dba921 +EBUILD grafana-bin-9.2.10.ebuild 1806 BLAKE2B 5ac9cd8971589bb59f04902d5b0c1fcb47e8c7ffc9e0c5e4312e098c5616dc6933f2db5dd7fab3530269f0182e9bd28d43bdaab832dcdf06de025669cac228a1 SHA512 1acd72fc8d8f70c8e1460fd413dd7cb6cb7e9507b2cd56bad3b4ccdcb0585dff4dff25d7b9ad6094fe29a16e0df13b8a135f4403f837833adcaa4a1a285ecc4f EBUILD grafana-bin-9.2.4.ebuild 1806 BLAKE2B 874e8d2ddc17eca0512231ed58b018230b1a59797820d57a5e7eda97db4f152b7029bf890612a23a1f4cd6d8c7a10e8866eaf5a9d24cd76c62ec2f639e2a0b1e SHA512 bb4063c8c87104da3b55d8c849fc7fb5e1ab68fcf2a087eaf262f6cf6493967281ca72e5ab8dc1850dffe640ab9e87380f8f484e04fe505b8bed92ac851355d5 EBUILD grafana-bin-9.2.7.ebuild 1806 BLAKE2B 874e8d2ddc17eca0512231ed58b018230b1a59797820d57a5e7eda97db4f152b7029bf890612a23a1f4cd6d8c7a10e8866eaf5a9d24cd76c62ec2f639e2a0b1e SHA512 bb4063c8c87104da3b55d8c849fc7fb5e1ab68fcf2a087eaf262f6cf6493967281ca72e5ab8dc1850dffe640ab9e87380f8f484e04fe505b8bed92ac851355d5 EBUILD grafana-bin-9.2.8.ebuild 1806 BLAKE2B 5ac9cd8971589bb59f04902d5b0c1fcb47e8c7ffc9e0c5e4312e098c5616dc6933f2db5dd7fab3530269f0182e9bd28d43bdaab832dcdf06de025669cac228a1 SHA512 1acd72fc8d8f70c8e1460fd413dd7cb6cb7e9507b2cd56bad3b4ccdcb0585dff4dff25d7b9ad6094fe29a16e0df13b8a135f4403f837833adcaa4a1a285ecc4f EBUILD grafana-bin-9.3.0.ebuild 1806 BLAKE2B 874e8d2ddc17eca0512231ed58b018230b1a59797820d57a5e7eda97db4f152b7029bf890612a23a1f4cd6d8c7a10e8866eaf5a9d24cd76c62ec2f639e2a0b1e SHA512 bb4063c8c87104da3b55d8c849fc7fb5e1ab68fcf2a087eaf262f6cf6493967281ca72e5ab8dc1850dffe640ab9e87380f8f484e04fe505b8bed92ac851355d5 EBUILD grafana-bin-9.3.2.ebuild 1806 BLAKE2B 5ac9cd8971589bb59f04902d5b0c1fcb47e8c7ffc9e0c5e4312e098c5616dc6933f2db5dd7fab3530269f0182e9bd28d43bdaab832dcdf06de025669cac228a1 SHA512 1acd72fc8d8f70c8e1460fd413dd7cb6cb7e9507b2cd56bad3b4ccdcb0585dff4dff25d7b9ad6094fe29a16e0df13b8a135f4403f837833adcaa4a1a285ecc4f +EBUILD grafana-bin-9.3.6.ebuild 1806 BLAKE2B 5ac9cd8971589bb59f04902d5b0c1fcb47e8c7ffc9e0c5e4312e098c5616dc6933f2db5dd7fab3530269f0182e9bd28d43bdaab832dcdf06de025669cac228a1 SHA512 1acd72fc8d8f70c8e1460fd413dd7cb6cb7e9507b2cd56bad3b4ccdcb0585dff4dff25d7b9ad6094fe29a16e0df13b8a135f4403f837833adcaa4a1a285ecc4f MISC metadata.xml 219 BLAKE2B e366b8552425c0b7293381e047210130af3c96a6be5877911f2e3ee77b0c80a475854ec7d59e1a5dea75e9d07cefcb3636947fa0af121357cfe7db12e05e6c34 SHA512 b5fce0d3f0f5fa2729808fad339e6843c6bdf814451d2b65b9b67b4b715194e6de20ad2702c9b5a08d260c97641ab9478d978486e702d85034cfb95d7ceab954 diff --git a/www-apps/grafana-bin/grafana-bin-9.2.10.ebuild b/www-apps/grafana-bin/grafana-bin-9.2.10.ebuild new file mode 100644 index 000000000000..0e8aae35965c --- /dev/null +++ b/www-apps/grafana-bin/grafana-bin-9.2.10.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2023 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} +} + +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-9.3.6.ebuild b/www-apps/grafana-bin/grafana-bin-9.3.6.ebuild new file mode 100644 index 000000000000..0e8aae35965c --- /dev/null +++ b/www-apps/grafana-bin/grafana-bin-9.3.6.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2023 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} +} + +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 +} |