summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-08-20 02:02:59 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-08-20 02:03:13 +0200
commit77439a6401a71baa4f5531618182b52947c13708 (patch)
treed098a9574b55c6aaf0e88468ae5360ad59e9d537 /www-apps/grafana-bin
parentacct-user/grafana: new group for www-apps/grafana-bin, UID 389 (diff)
downloadgentoo-77439a6401a71baa4f5531618182b52947c13708.tar.gz
gentoo-77439a6401a71baa4f5531618182b52947c13708.tar.bz2
gentoo-77439a6401a71baa4f5531618182b52947c13708.zip
www-apps/grafana-bin: bump to v7.1.3
Closes: https://bugs.gentoo.org/701238 Closes: https://bugs.gentoo.org/730336 Bug: https://bugs.gentoo.org/725110 Bug: https://bugs.gentoo.org/726946 Package-Manager: Portage-3.0.3, Repoman-3.0.0 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'www-apps/grafana-bin')
-rw-r--r--www-apps/grafana-bin/grafana-bin-7.1.3.ebuild35
1 files changed, 14 insertions, 21 deletions
diff --git a/www-apps/grafana-bin/grafana-bin-7.1.3.ebuild b/www-apps/grafana-bin/grafana-bin-7.1.3.ebuild
index 58b22b14471e..d666b4c9db30 100644
--- a/www-apps/grafana-bin/grafana-bin-7.1.3.ebuild
+++ b/www-apps/grafana-bin/grafana-bin-7.1.3.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit user systemd
+inherit systemd
MY_PN=${PN/-bin/}
MY_PV=${PV/_beta/-beta}
@@ -17,19 +17,14 @@ LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
-DEPEND=""
+DEPEND="acct-group/grafana
+ acct-user/grafana"
RDEPEND="${DEPEND}
media-libs/fontconfig"
-QA_EXECSTACK="usr/share/grafana/tools/phantomjs/phantomjs"
-QA_PREBUILT="usr/bin/grafana-* ${QA_EXECSTACK}"
+QA_PREBUILT="usr/bin/grafana-*"
QA_PRESTRIPPED=${QA_PREBUILT}
-pkg_setup() {
- enewgroup grafana
- enewuser grafana -1 -1 /usr/share/grafana grafana
-}
-
src_install() {
keepdir /etc/grafana
insinto /etc/grafana
@@ -43,12 +38,6 @@ src_install() {
dobin bin/grafana-cli
dobin bin/grafana-server
- exeinto /usr/share/grafana/tools/phantomjs
- doexe tools/phantomjs/phantomjs
-
- insinto /usr/share/grafana/tools/phantomjs
- doins tools/phantomjs/render.js
-
newconfd "${FILESDIR}"/grafana.confd grafana
newinitd "${FILESDIR}"/grafana.initd.3 grafana
systemd_newunit "${FILESDIR}"/grafana.service grafana.service
@@ -62,10 +51,14 @@ src_install() {
}
postinst() {
- 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."
+ 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
}