Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/grafana-bin/
Date: Thu, 20 Aug 2020 00:03:55
Message-Id: 1597881793.77439a6401a71baa4f5531618182b52947c13708.whissi@gentoo
1 commit: 77439a6401a71baa4f5531618182b52947c13708
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 20 00:02:59 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 20 00:03:13 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77439a64
7
8 www-apps/grafana-bin: bump to v7.1.3
9
10 Closes: https://bugs.gentoo.org/701238
11 Closes: https://bugs.gentoo.org/730336
12 Bug: https://bugs.gentoo.org/725110
13 Bug: https://bugs.gentoo.org/726946
14 Package-Manager: Portage-3.0.3, Repoman-3.0.0
15 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
16
17 www-apps/grafana-bin/grafana-bin-7.1.3.ebuild | 35 +++++++++++----------------
18 1 file changed, 14 insertions(+), 21 deletions(-)
19
20 diff --git a/www-apps/grafana-bin/grafana-bin-7.1.3.ebuild b/www-apps/grafana-bin/grafana-bin-7.1.3.ebuild
21 index 58b22b14471..d666b4c9db3 100644
22 --- a/www-apps/grafana-bin/grafana-bin-7.1.3.ebuild
23 +++ b/www-apps/grafana-bin/grafana-bin-7.1.3.ebuild
24 @@ -3,7 +3,7 @@
25
26 EAPI=7
27
28 -inherit user systemd
29 +inherit systemd
30
31 MY_PN=${PN/-bin/}
32 MY_PV=${PV/_beta/-beta}
33 @@ -17,19 +17,14 @@ LICENSE="Apache-2.0"
34 SLOT="0"
35 KEYWORDS="~amd64"
36
37 -DEPEND=""
38 +DEPEND="acct-group/grafana
39 + acct-user/grafana"
40 RDEPEND="${DEPEND}
41 media-libs/fontconfig"
42
43 -QA_EXECSTACK="usr/share/grafana/tools/phantomjs/phantomjs"
44 -QA_PREBUILT="usr/bin/grafana-* ${QA_EXECSTACK}"
45 +QA_PREBUILT="usr/bin/grafana-*"
46 QA_PRESTRIPPED=${QA_PREBUILT}
47
48 -pkg_setup() {
49 - enewgroup grafana
50 - enewuser grafana -1 -1 /usr/share/grafana grafana
51 -}
52 -
53 src_install() {
54 keepdir /etc/grafana
55 insinto /etc/grafana
56 @@ -43,12 +38,6 @@ src_install() {
57 dobin bin/grafana-cli
58 dobin bin/grafana-server
59
60 - exeinto /usr/share/grafana/tools/phantomjs
61 - doexe tools/phantomjs/phantomjs
62 -
63 - insinto /usr/share/grafana/tools/phantomjs
64 - doins tools/phantomjs/render.js
65 -
66 newconfd "${FILESDIR}"/grafana.confd grafana
67 newinitd "${FILESDIR}"/grafana.initd.3 grafana
68 systemd_newunit "${FILESDIR}"/grafana.service grafana.service
69 @@ -62,10 +51,14 @@ src_install() {
70 }
71
72 postinst() {
73 - elog "${PN} has built-in log rotation. Please see [log.file] section of"
74 - elog "/etc/grafana/grafana.ini for related settings."
75 - elog
76 - elog "You may add your own custom configuration for app-admin/logrotate if you"
77 - elog "wish to use external rotation of logs. In this case, you also need to make"
78 - elog "sure the built-in rotation is turned off."
79 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
80 + # This is a new installation
81 +
82 + elog "${PN} has built-in log rotation. Please see [log.file] section of"
83 + elog "/etc/grafana/grafana.ini for related settings."
84 + elog
85 + elog "You may add your own custom configuration for app-admin/logrotate if you"
86 + elog "wish to use external rotation of logs. In this case, you also need to make"
87 + elog "sure the built-in rotation is turned off."
88 + fi
89 }