[packages/php] add su directive for logrotate 3.8.0

glen glen at pld-linux.org
Mon Mar 4 09:34:29 CET 2013


commit 95f70ac8534432048f1974019a5a62d88a12fe89
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Mar 4 10:34:17 2013 +0200

    add su directive for logrotate 3.8.0

 php-fpm.logrotate | 1 +
 php.spec          | 6 ++++++
 2 files changed, 7 insertions(+)
---
diff --git a/php.spec b/php.spec
index 6b39e55..189f835 100644
--- a/php.spec
+++ b/php.spec
@@ -430,6 +430,9 @@ Provides:	php(cgi)
 Provides:	php(fcgi)
 Provides:	webserver(php) = %{version}
 Obsoletes:	php-fcgi < 4:5.3.0
+%if "%{pld_release}" != "ac"
+Conflicts:	logrotate < 3.8.0
+%endif
 
 %description cgi
 PHP as CGI or FastCGI program.
@@ -2437,6 +2440,9 @@ install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
 install -d $RPM_BUILD_ROOT/etc/logrotate.d
 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
+%if "%{pld_release}" == "ac"
+%{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
+%endif
 
 %{__sed} -i -e '
 	s#/usr/lib/php#%{php_extensiondir}#
diff --git a/php-fpm.logrotate b/php-fpm.logrotate
index 24172c6..3e4c230 100644
--- a/php-fpm.logrotate
+++ b/php-fpm.logrotate
@@ -1,5 +1,6 @@
 /var/log/php/@processname at .log
 {
+	su root http
 	notifempty
 	missingok
 	create 600 root root
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/95f70ac8534432048f1974019a5a62d88a12fe89



More information about the pld-cvs-commit mailing list