summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2022-07-01 09:04:02 +0000
committerPatrick Lauer <patrick@gentoo.org>2022-07-01 09:04:25 +0000
commit9bc7f8818988e2ede925a0bd987d3ba46edd9f0c (patch)
tree3b04afbfaec99e159a8dd9de00da56ec3bed09be /www-apps
parentnet-firewall/ufw: re-add dropped loong KEYWORD (diff)
downloadgentoo-9bc7f8818988e2ede925a0bd987d3ba46edd9f0c.tar.gz
gentoo-9bc7f8818988e2ede925a0bd987d3ba46edd9f0c.tar.bz2
gentoo-9bc7f8818988e2ede925a0bd987d3ba46edd9f0c.zip
www-apps/grafana-bin: Bump to 8.5.6 9.0.2
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Patrick Lauer <patrick@gentoo.org>
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/grafana-bin/Manifest2
-rw-r--r--www-apps/grafana-bin/grafana-bin-8.5.6.ebuild64
-rw-r--r--www-apps/grafana-bin/grafana-bin-9.0.2.ebuild64
3 files changed, 130 insertions, 0 deletions
diff --git a/www-apps/grafana-bin/Manifest b/www-apps/grafana-bin/Manifest
index 3cc34c0a35bf..3d0cb7a058e4 100644
--- a/www-apps/grafana-bin/Manifest
+++ b/www-apps/grafana-bin/Manifest
@@ -1,2 +1,4 @@
DIST grafana-bin-7.5.16.tar.gz 52223732 BLAKE2B 58cb72fb432049964bf225e483e0278c055cbce4b6c559f389f8a512d3955a1ad3eae167ca1e80225043a56165b6e9331bde982f81c6db624fb4e60deff4d10a SHA512 c422533467205b2b038372ef1c5f046a9df477b76d0e79511d10286f040647216439d635f6b504ac09c24a9128347bdc5fa9355faae0abe630f7bda98c1c3f7b
DIST grafana-bin-8.5.3.tar.gz 77677429 BLAKE2B 3f362d3c8815a22c248f405c1f606901980b227e82d67ab3dc0890df2f9b774e37d9fb189b0276483bfbc12d36c47da24e598956f29c2f2738bb9ca7ab617b2c SHA512 05f27b95d9daadb4f2c82a4606407bea0a3bdc6f29e5645ef9ca40533cda617bacc91c7d119c8d133abf180603ed4c881d4c207b83d2e5c19d35bd5ba2c0efd8
+DIST grafana-bin-8.5.6.tar.gz 77787381 BLAKE2B eac943ecd6ee07cd1f0ff639439b337e5923892b0d2b2c8c3e1b95c9f8cf0b71d0b06b6bf8a5ddde0804c58da655a4740ecf9d392505f0d4ea9919c38d8392fc SHA512 a9deb41f60fe47e83ccb45fdd2e5dd6ab3de288ef1caa3147408dedff371a43e3ca0018c1c37e7692abb0a37e7987b1934733e5b636f575012da759d8c93a893
+DIST grafana-bin-9.0.2.tar.gz 79887781 BLAKE2B f86c770d88203f5a4bd6926a8a2a0adf25cc76a5f4038e2ed52d25fdf9f839ddfb870df3fd049d33c8b97844cc2be10ff427af2bfec683b0b11da53cac812caf SHA512 342539b0848daea442d2c70f1237e40a03743dc22114ea08949e5fe40738eda5753ed2bd5cfd2574008b20d3e87e2dce532527a0d7dd07db080bdb24dd845b88
diff --git a/www-apps/grafana-bin/grafana-bin-8.5.6.ebuild b/www-apps/grafana-bin/grafana-bin-8.5.6.ebuild
new file mode 100644
index 000000000000..b15b8f8775d4
--- /dev/null
+++ b/www-apps/grafana-bin/grafana-bin-8.5.6.ebuild
@@ -0,0 +1,64 @@
+# 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"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+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-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.0.2.ebuild b/www-apps/grafana-bin/grafana-bin-9.0.2.ebuild
new file mode 100644
index 000000000000..b15b8f8775d4
--- /dev/null
+++ b/www-apps/grafana-bin/grafana-bin-9.0.2.ebuild
@@ -0,0 +1,64 @@
+# 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"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+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-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
+}