robert pushed to zarafa (el6). "Handle "su" option in logrotate >= 3.8.0 to avoid errors"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Apr 7 18:41:14 UTC 2015


>From c7ecef187edd7fa348ed6ad7ca11525806461993 Mon Sep 17 00:00:00 2001
From: Robert Scheck <robert at fedoraproject.org>
Date: Wed, 18 Mar 2015 13:17:27 +0100
Subject: Handle "su" option in logrotate >= 3.8.0 to avoid errors


diff --git a/zarafa.spec b/zarafa.spec
index e14ac54..4fc0f9a 100644
--- a/zarafa.spec
+++ b/zarafa.spec
@@ -488,6 +488,10 @@ done
 
 # Move the logrotate configuration file to its correct place
 install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name}
+%if 0%{?fedora} >= 16 || 0%{?rhel} >= 7
+sed -e 's/}/\tsu root root\n}/' -i $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name}
+touch -c -r %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name}
+%endif
 
 # Move the userscripts to their correct place and symlink them
 mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/userscripts/
@@ -953,6 +957,7 @@ fi
 * Sun Feb 22 2015 Robert Scheck <robert at fedoraproject.org> 7.1.11-3
 - Added multiple minor enhancement and bugfix patches
 - Added patch to fix CVE-2014-0103 for PHP < 5.3 (#1073618)
+- Handle "su" option in logrotate >= 3.8.0 to avoid errors
 
 * Sat Oct 25 2014 Kevin Kofler <Kevin at tigcc.ticalc.org> 7.1.11-2
 - Rebuild for reference-counting-enabled clucene09
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/zarafa.git/commit/?h=el6&id=c7ecef187edd7fa348ed6ad7ca11525806461993


More information about the scm-commits mailing list