summaryrefslogtreecommitdiff
path: root/www-apps/grafana-bin
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-01-24 16:45:44 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-01-24 16:45:44 +0000
commitb0fd0bc5c186e99078ed8d07146e8c14f1089639 (patch)
tree5567654e1937500080d1c90411624ab268d27795 /www-apps/grafana-bin
parent1804d2ae908b26fe4e3d3a38646c7d6ffa733d92 (diff)
gentoo auto-resync : 24:01:2024 - 16:45:44
Diffstat (limited to 'www-apps/grafana-bin')
-rw-r--r--www-apps/grafana-bin/Manifest22
-rw-r--r--www-apps/grafana-bin/grafana-bin-10.1.4.ebuild67
-rw-r--r--www-apps/grafana-bin/grafana-bin-10.1.6.ebuild (renamed from www-apps/grafana-bin/grafana-bin-9.5.14.ebuild)2
-rw-r--r--www-apps/grafana-bin/grafana-bin-10.2.3.ebuild (renamed from www-apps/grafana-bin/grafana-bin-10.2.1.ebuild)2
-rw-r--r--www-apps/grafana-bin/grafana-bin-10.3.1.ebuild (renamed from www-apps/grafana-bin/grafana-bin-10.1.5.ebuild)4
-rw-r--r--www-apps/grafana-bin/grafana-bin-9.5.13.ebuild67
-rw-r--r--www-apps/grafana-bin/grafana-bin-9.5.15.ebuild (renamed from www-apps/grafana-bin/grafana-bin-10.2.0.ebuild)4
-rw-r--r--www-apps/grafana-bin/grafana-bin-9.5.3.ebuild67
8 files changed, 14 insertions, 221 deletions
diff --git a/www-apps/grafana-bin/Manifest b/www-apps/grafana-bin/Manifest
index c360ee157385..25d555e6b300 100644
--- a/www-apps/grafana-bin/Manifest
+++ b/www-apps/grafana-bin/Manifest
@@ -1,18 +1,12 @@
AUX grafana-r1.confd 870 BLAKE2B e222e17f5a14dc48f9bbc922250754d88610a951b1e6230736fffc0624a24a140bd9a9f11c6900e0f57b652ce3f334963ea453a5db5ee667863c6b69acc0f207 SHA512 cb6836ba69b9d1f0c50778823c507eaffd963341edbc4ea5409d0b068cfcecececfacac71e34b1d546a85674f67b12db99f384e5c6aa2186abe86814818d5db1
AUX grafana.initd2 1498 BLAKE2B ce22443e0f328487cc9e1ff3e7df23c5a0deb790dd99b51330d388df3345d33f9e0588733323a0becff9fcb559c004860a2c080b2dbb21731a49bce5b387db41 SHA512 c7684f2d8647cf3c48a030f17250a592614fb74f846ff8821f07cd2031bc39ab50bb1936eb5eddeab9f67823c86c392648373b551c2c30e728c1501b3273242b
AUX grafana.service 676 BLAKE2B 98b7e216324a451f97b9b0c2d1bbe493ea3206b8a6113f34f1064f8fde3c931c32913d4b94d77722eefe709434c3f5692b58a840066ae017f5b5f9dfd18ba9a9 SHA512 2355f708b8b5f520efa0d18c81a5e817c29953373b689b8fdd7c3f722f9b4d566d2e8329434daf2268d24fb2ff563b80ad84b144855a67abcf96c2b7b910b31c
-DIST grafana-bin-10.1.4.tar.gz 109641021 BLAKE2B 75f43df4d306323e2b0314711b0335d890658da3a4cb7142f4c02960313c61e4fce5102c15593b930f273d6bdee1e32120d52e0eab2aab89211fd37263121cba SHA512 6893c5e8def812a1e6600f334654f22cfd114cc3960621860c100f36f46a20114dbdca08ae6cc70da968d52577c074777f79e9184645a95269bf6d80ac85901d
-DIST grafana-bin-10.1.5.tar.gz 109636687 BLAKE2B 0d299181a51879673d73700120938c88f4655e2c35aedf74dc14c5a3581a787de118381f28a4df6cba51533f011e5cf2587b80eadc438684d45eb077cc1e621e SHA512 a2add2a4bcd126c3a27c7aefa1164361f4f4dcd21ef50d7b8922aa533f4d169bce6971c336fc391928bbc56b22a88bce3a877a941c26aa758490c5ece1f33186
-DIST grafana-bin-10.2.0.tar.gz 109010183 BLAKE2B 8a4233d6201ff53dca565b9ae84f3288b0e318b86a54324a5110fd4764b39677d0b783f64b61be3a23aa28e94ab84514426b31525a0cbbdd9d70796e2722ec2a SHA512 c11cf34cea58de73f4ba513ca4b4fb21acb914b974e97e0254fffba8096741f8b5bba49dc85004732e61074e4169c3d491205110c9c6f2a4f27ce734a9405c16
-DIST grafana-bin-10.2.1.tar.gz 108828465 BLAKE2B a32eae41ff7a67a5e478de0859294630251312b85437b0f2586ef7747fced8fa5ac8e6e138440ddeb085bb172847b6e68d78cceb65bf421b511da5e0956ead4e SHA512 e7a3c37f3b8d68b5f2fedfba7d97a927e7f610c382984b930f84d55a313c9dcca28d82b4ed40b7239e0453bc83a36c2aac42e1e88b96490671f292599c8223b8
-DIST grafana-bin-9.5.13.tar.gz 86809672 BLAKE2B fccea691d57941afcc4e7ac89110a17d6201733d7a61669e168b40753309a023bc4b4c7f24e339f9267f663e451097d1603798cc95f35073481e75c99fc6cca4 SHA512 2dbe9f8d8fb374e84b31418316d1c4e64a8e9e616d6b30c054f2b3bd9ac910efcec79394abd86489716c233d0b388b3786feee9c6ab4a5b513a94de37102a459
-DIST grafana-bin-9.5.14.tar.gz 87131800 BLAKE2B d6ae4d90781c79e5d87e4b418146869fab84ac49e3fa71608af3d6986a4920e4d50fdf00cc4952d22804061a46709226770f1c85165fa234207bdd41c13c1187 SHA512 685ec6607e082d8f687bb90a32a8c675f6aa0abd31f31169e957b3bbb50221d77e47c019128b2e701d9c29bb9b89bc4e7e4f31e21a75e8c9dcf1d1155bf2d8a2
-DIST grafana-bin-9.5.3.tar.gz 78499106 BLAKE2B c6fe7942450f83447a99a343844e089381110810f58a68be78ec5366febabcb53f8670afb4a0531c39a4a8e7f498298b715a8e706b7a302b71062693d4b08998 SHA512 3c5c21b887d4948e6f76be0ba29b62db3273e17aa86f5a7001762c192b18de6963e7fd5029a8fa7800a58b362b67a7e54a1409cdea667d490b68c90289ff8608
-EBUILD grafana-bin-10.1.4.ebuild 1826 BLAKE2B 4838306e575eb25b95298d28272f5e828cffb52d4431d1c74f884901cd389fdf17f0a886ccec9ad85e386bcc03efa283a1879326791573592e2634320d8c8d79 SHA512 069994b16dd9c8a037192528985a2d539231cbd6a80390e3fcadf862d31abf70841e477384593396e573a490c01fa9af5ceb2b31c87f388ebb020d1f7f03a0e0
-EBUILD grafana-bin-10.1.5.ebuild 1826 BLAKE2B 4838306e575eb25b95298d28272f5e828cffb52d4431d1c74f884901cd389fdf17f0a886ccec9ad85e386bcc03efa283a1879326791573592e2634320d8c8d79 SHA512 069994b16dd9c8a037192528985a2d539231cbd6a80390e3fcadf862d31abf70841e477384593396e573a490c01fa9af5ceb2b31c87f388ebb020d1f7f03a0e0
-EBUILD grafana-bin-10.2.0.ebuild 1826 BLAKE2B 4838306e575eb25b95298d28272f5e828cffb52d4431d1c74f884901cd389fdf17f0a886ccec9ad85e386bcc03efa283a1879326791573592e2634320d8c8d79 SHA512 069994b16dd9c8a037192528985a2d539231cbd6a80390e3fcadf862d31abf70841e477384593396e573a490c01fa9af5ceb2b31c87f388ebb020d1f7f03a0e0
-EBUILD grafana-bin-10.2.1.ebuild 1827 BLAKE2B 9a1c7f784a5f8cd6b9a37a0abd751e8b59c44ffb4254f7f0ce86c0c6684b5b09009c9674643a620352ff847197c64aeb2038ac170f7c0affe849a0465afb01a5 SHA512 f9a87267551f13441ad9b45ef411568d4a9600063b176a1aa3d0164d47a21c32952163102cff738b1bfae5bb90cef3675569b5e988258b43d697ebaca1ff443a
-EBUILD grafana-bin-9.5.13.ebuild 1826 BLAKE2B 4838306e575eb25b95298d28272f5e828cffb52d4431d1c74f884901cd389fdf17f0a886ccec9ad85e386bcc03efa283a1879326791573592e2634320d8c8d79 SHA512 069994b16dd9c8a037192528985a2d539231cbd6a80390e3fcadf862d31abf70841e477384593396e573a490c01fa9af5ceb2b31c87f388ebb020d1f7f03a0e0
-EBUILD grafana-bin-9.5.14.ebuild 1827 BLAKE2B 9a1c7f784a5f8cd6b9a37a0abd751e8b59c44ffb4254f7f0ce86c0c6684b5b09009c9674643a620352ff847197c64aeb2038ac170f7c0affe849a0465afb01a5 SHA512 f9a87267551f13441ad9b45ef411568d4a9600063b176a1aa3d0164d47a21c32952163102cff738b1bfae5bb90cef3675569b5e988258b43d697ebaca1ff443a
-EBUILD grafana-bin-9.5.3.ebuild 1826 BLAKE2B 4838306e575eb25b95298d28272f5e828cffb52d4431d1c74f884901cd389fdf17f0a886ccec9ad85e386bcc03efa283a1879326791573592e2634320d8c8d79 SHA512 069994b16dd9c8a037192528985a2d539231cbd6a80390e3fcadf862d31abf70841e477384593396e573a490c01fa9af5ceb2b31c87f388ebb020d1f7f03a0e0
+DIST grafana-bin-10.1.6.tar.gz 109521319 BLAKE2B 8184004cdaacbb13d80dfe3606a89d8b52083f0662970a52955a1518894268df047ea23e651d2a43879348c89840cd59301d10a69cc65bddff500e23801bf640 SHA512 1ea0e15dfad9d50fc6f4561d9dade79d1ac9bec5f11d25b97185b4423d3bf23395123cbd09f4cf3646895797c2bac78dd168da5344cdc9dcb7f264a25b6d2aa6
+DIST grafana-bin-10.2.3.tar.gz 108993853 BLAKE2B c04ca8a92d974b74732c5da211293117b2b65cd3363445699f7a3e5e1fbaf7e9fb99c183b7c89c8aaec3957cd8e01d2060a7aab55c74bfd000749fe04e75ffa2 SHA512 02e9e2e6d244b36cfabcc7c46bc6356cc66e0f76bd9e96f7c642a5ed44cb8c435b9085d162210dea549bcbad4764a5a1b2c3773b0a2d2db98ab76cbc7f8ab257
+DIST grafana-bin-10.3.1.tar.gz 111106552 BLAKE2B 36ee6dc1fe05e622a67f386d386bdbc27ccf2d1259a35984654cdbb26cd1cff5b65e8996e33e19e56a2d898e0be2eebb04848599c332bf712f2ec872e72f31c1 SHA512 c89ef027c119de69034140e21a680d1045882877579c3c71d8d33310429e21d8ff849c3d9c18b2e559bb238218125646f02d8f532e74a657629e52b794d449a3
+DIST grafana-bin-9.5.15.tar.gz 87141838 BLAKE2B 8677442b150ea8b7f92df30bc2f7d5e3baaaf305206a7b351c50ab9d7e1a440565be32ab4875462cbe15042af2195c5523b59e09d1f2f7eeebdeef28bd62842c SHA512 ea3c8a19c9f0db1a2ad98317c28acebf96eb2f071df381028d260050434ec1b55b7e977250211fe87ceafc72ce17afb5112ae7a99debddfc6537ae0d795a8939
+EBUILD grafana-bin-10.1.6.ebuild 1827 BLAKE2B 7716cf2a027aa267cac4b628630daa5b66dbfdf59ad45310ba707de43f74ff92b6eae5d5e65993872882fbc349668b0b0ddac3070bb94238e7cc171a117bf432 SHA512 38bc5b05fefc11ee3f61ab955ca73017b2998850c2b1da5f381522526a4e2ecb7fb77493872208390872596788239b647227bc0f3ca5a97d0e56e77bfd007355
+EBUILD grafana-bin-10.2.3.ebuild 1827 BLAKE2B 7716cf2a027aa267cac4b628630daa5b66dbfdf59ad45310ba707de43f74ff92b6eae5d5e65993872882fbc349668b0b0ddac3070bb94238e7cc171a117bf432 SHA512 38bc5b05fefc11ee3f61ab955ca73017b2998850c2b1da5f381522526a4e2ecb7fb77493872208390872596788239b647227bc0f3ca5a97d0e56e77bfd007355
+EBUILD grafana-bin-10.3.1.ebuild 1827 BLAKE2B 7716cf2a027aa267cac4b628630daa5b66dbfdf59ad45310ba707de43f74ff92b6eae5d5e65993872882fbc349668b0b0ddac3070bb94238e7cc171a117bf432 SHA512 38bc5b05fefc11ee3f61ab955ca73017b2998850c2b1da5f381522526a4e2ecb7fb77493872208390872596788239b647227bc0f3ca5a97d0e56e77bfd007355
+EBUILD grafana-bin-9.5.15.ebuild 1827 BLAKE2B 7716cf2a027aa267cac4b628630daa5b66dbfdf59ad45310ba707de43f74ff92b6eae5d5e65993872882fbc349668b0b0ddac3070bb94238e7cc171a117bf432 SHA512 38bc5b05fefc11ee3f61ab955ca73017b2998850c2b1da5f381522526a4e2ecb7fb77493872208390872596788239b647227bc0f3ca5a97d0e56e77bfd007355
MISC metadata.xml 219 BLAKE2B e366b8552425c0b7293381e047210130af3c96a6be5877911f2e3ee77b0c80a475854ec7d59e1a5dea75e9d07cefcb3636947fa0af121357cfe7db12e05e6c34 SHA512 b5fce0d3f0f5fa2729808fad339e6843c6bdf814451d2b65b9b67b4b715194e6de20ad2702c9b5a08d260c97641ab9478d978486e702d85034cfb95d7ceab954
diff --git a/www-apps/grafana-bin/grafana-bin-10.1.4.ebuild b/www-apps/grafana-bin/grafana-bin-10.1.4.ebuild
deleted file mode 100644
index ed079e9887f5..000000000000
--- a/www-apps/grafana-bin/grafana-bin-10.1.4.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# 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
- 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-9.5.14.ebuild b/www-apps/grafana-bin/grafana-bin-10.1.6.ebuild
index 65d333f6f3a8..f7a35bbce7da 100644
--- a/www-apps/grafana-bin/grafana-bin-9.5.14.ebuild
+++ b/www-apps/grafana-bin/grafana-bin-10.1.6.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
diff --git a/www-apps/grafana-bin/grafana-bin-10.2.1.ebuild b/www-apps/grafana-bin/grafana-bin-10.2.3.ebuild
index 65d333f6f3a8..f7a35bbce7da 100644
--- a/www-apps/grafana-bin/grafana-bin-10.2.1.ebuild
+++ b/www-apps/grafana-bin/grafana-bin-10.2.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
diff --git a/www-apps/grafana-bin/grafana-bin-10.1.5.ebuild b/www-apps/grafana-bin/grafana-bin-10.3.1.ebuild
index ed079e9887f5..f7a35bbce7da 100644
--- a/www-apps/grafana-bin/grafana-bin-10.1.5.ebuild
+++ b/www-apps/grafana-bin/grafana-bin-10.3.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -7,7 +7,7 @@ inherit systemd
MY_PN=${PN/-bin/}
MY_PV=${PV/_beta/-beta}
-S=${WORKDIR}/${MY_PN}-${MY_PV}
+S=${WORKDIR}/${MY_PN}-v${MY_PV}
DESCRIPTION="Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenTSDB"
HOMEPAGE="https://grafana.org"
diff --git a/www-apps/grafana-bin/grafana-bin-9.5.13.ebuild b/www-apps/grafana-bin/grafana-bin-9.5.13.ebuild
deleted file mode 100644
index ed079e9887f5..000000000000
--- a/www-apps/grafana-bin/grafana-bin-9.5.13.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# 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
- 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.2.0.ebuild b/www-apps/grafana-bin/grafana-bin-9.5.15.ebuild
index ed079e9887f5..f7a35bbce7da 100644
--- a/www-apps/grafana-bin/grafana-bin-10.2.0.ebuild
+++ b/www-apps/grafana-bin/grafana-bin-9.5.15.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -7,7 +7,7 @@ inherit systemd
MY_PN=${PN/-bin/}
MY_PV=${PV/_beta/-beta}
-S=${WORKDIR}/${MY_PN}-${MY_PV}
+S=${WORKDIR}/${MY_PN}-v${MY_PV}
DESCRIPTION="Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenTSDB"
HOMEPAGE="https://grafana.org"
diff --git a/www-apps/grafana-bin/grafana-bin-9.5.3.ebuild b/www-apps/grafana-bin/grafana-bin-9.5.3.ebuild
deleted file mode 100644
index ed079e9887f5..000000000000
--- a/www-apps/grafana-bin/grafana-bin-9.5.3.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# 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
- 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
-}