[packages/php/PHP_5_4] add su directive for logrotate 3.8.0

glen glen at pld-linux.org
Tue Apr 2 10:27:20 CEST 2013


commit 6a66988ed8b794a1ecbc116368cf67046b22e6a6
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 280d0ff..d148be5 100644
--- a/php.spec
+++ b/php.spec
@@ -439,6 +439,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.
@@ -2431,6 +2434,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/6a66988ed8b794a1ecbc116368cf67046b22e6a6



More information about the pld-cvs-commit mailing list