diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2017-04-11 18:37:46 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2017-04-11 18:39:15 +0200 |
commit | f42d6679c038c3efcc257d38547267d01823aea9 (patch) | |
tree | c4c28f13dfbb937fde441da371632f2926b40a21 /www-apps/grafana-bin | |
parent | app-portage/prefix-chain-setup: use.files are in etc/portage/profile/ (diff) | |
download | gentoo-f42d6679c038c3efcc257d38547267d01823aea9.tar.gz gentoo-f42d6679c038c3efcc257d38547267d01823aea9.tar.bz2 gentoo-f42d6679c038c3efcc257d38547267d01823aea9.zip |
www-apps/grafana-bin: revert 12c3eacda7c4d23686eaf10eab21d810cc95ea49 and disable log rotation support.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'www-apps/grafana-bin')
-rw-r--r-- | www-apps/grafana-bin/files/grafana.logrotate | 8 | ||||
-rw-r--r-- | www-apps/grafana-bin/grafana-bin-4.2.0-r2.ebuild (renamed from www-apps/grafana-bin/grafana-bin-4.2.0-r1.ebuild) | 15 |
2 files changed, 9 insertions, 14 deletions
diff --git a/www-apps/grafana-bin/files/grafana.logrotate b/www-apps/grafana-bin/files/grafana.logrotate deleted file mode 100644 index 508db1e16cec..000000000000 --- a/www-apps/grafana-bin/files/grafana.logrotate +++ /dev/null @@ -1,8 +0,0 @@ -/var/log/grafana/grafana*.log { - nocompress - create 644 root root - daily - rotate 7 - missingok - size 50M -} diff --git a/www-apps/grafana-bin/grafana-bin-4.2.0-r1.ebuild b/www-apps/grafana-bin/grafana-bin-4.2.0-r2.ebuild index 2afa441185f1..3a8308e2d6d7 100644 --- a/www-apps/grafana-bin/grafana-bin-4.2.0-r1.ebuild +++ b/www-apps/grafana-bin/grafana-bin-4.2.0-r2.ebuild @@ -17,9 +17,7 @@ SLOT="0" KEYWORDS="~amd64" DEPEND="" -RDEPEND=" - ${DEPEND} - app-admin/logrotate" +RDEPEND="${DEPEND}" QA_EXECSTACK="usr/share/grafana/vendor/phantomjs/phantomjs" QA_PRESTRIPPED=${QA_EXECSTACK} @@ -52,8 +50,13 @@ src_install() { fowners grafana:grafana /var/lib/grafana/{dashboards,plugins} fperms 0750 /var/{lib,log}/grafana fperms 0750 /var/lib/grafana/{dashboards,plugins} +} - # Logrotation support. - insinto /etc/logrotate.d - newins "${FILESDIR}"/grafana.logrotate "${PN}" +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." } |