net-misc/chrony: Fix logrotate script
authorTobias Klausmann <klausman@gentoo.org>
Sun, 29 May 2016 16:25:16 +0000 (18:25 +0200)
committerTobias Klausmann <klausman@gentoo.org>
Sun, 29 May 2016 16:25:16 +0000 (18:25 +0200)
Since grep -v may return a non-zero exit status even in the benign case, we
need to just return 0 manually. Actual errors will still be reported normally
since any output will trigger mail sending.

Package-Manager: portage-2.3.0_rc1

net-misc/chrony/chrony-2.4_pre1-r2.ebuild [moved from net-misc/chrony/chrony-2.4_pre1-r1.ebuild with 98% similarity]
net-misc/chrony/files/chrony-2.4-r1.logrotate [moved from net-misc/chrony/files/chrony-2.4.logrotate with 56% similarity]

similarity index 98%
rename from net-misc/chrony/chrony-2.4_pre1-r1.ebuild
rename to net-misc/chrony/chrony-2.4_pre1-r2.ebuild
index 7d20e202998835d0a994228088fd60d508ec5350..4f9b613e1c1ecb83b849c3b65f22748743ff14dd 100644 (file)
@@ -111,7 +111,7 @@ src_install() {
        keepdir /var/{lib,log}/chrony
 
        insinto /etc/logrotate.d
-       newins "${FILESDIR}"/chrony-2.4.logrotate chrony
+       newins "${FILESDIR}"/chrony-2.4-r1.logrotate chrony
 
        systemd_newunit "${FILESDIR}"/chronyd.service-r2 chronyd.service
        systemd_enable_ntpunit 50-chrony chronyd.service
similarity index 56%
rename from net-misc/chrony/files/chrony-2.4.logrotate
rename to net-misc/chrony/files/chrony-2.4-r1.logrotate
index d1ae72b6e7a158ed7b4237f98e4a3df608292dbb..4140bc2af8b249f413bc23a3fbc8a5e3cba65bdc 100644 (file)
@@ -2,6 +2,6 @@
        missingok
        sharedscripts
        postrotate
-               /usr/bin/chronyc cyclelogs |grep -v '^200 OK'
+               /usr/bin/chronyc cyclelogs |grep -v '^200 OK'; return 0
        endscript
 }