packages (PHP_5_2): php/php.spec - uid http for fpm; rel 11
glen
glen at pld-linux.org
Tue Dec 1 12:05:51 CET 2009
Author: glen Date: Tue Dec 1 11:05:51 2009 GMT
Module: packages Tag: PHP_5_2
---- Log message:
- uid http for fpm; rel 11
---- Files affected:
packages/php:
php.spec (1.805.2.27 -> 1.805.2.28)
---- Diffs:
================================================================
Index: packages/php/php.spec
diff -u packages/php/php.spec:1.805.2.27 packages/php/php.spec:1.805.2.28
--- packages/php/php.spec:1.805.2.27 Thu Nov 26 13:56:45 2009
+++ packages/php/php.spec Tue Dec 1 12:05:45 2009
@@ -59,7 +59,7 @@
%bcond_without apache2 # disable building apache 2.x module
%bcond_without fcgi # disable building FCGI SAPI
%bcond_without zts # disable Zend Thread Safety
-%bcond_without fpm # fpm patches from http://php-fpm.anight.org/
+%bcond_without fpm # fpm patches from http://www.php-fpm.org/
%bcond_without suhosin # with suhosin patch
%bcond_with system_xmlrpc_epi # use system xmlrpc-epi library (broken on 64bit arches, see http://bugs.php.net/41611)
%bcond_with tests # default off; test process very often hangs on builders; perform "make test"
@@ -111,7 +111,7 @@
Summary(uk.UTF-8): PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
Name: php
Version: 5.2.11
-Release: 10
+Release: 11
Epoch: 4
License: PHP
Group: Libraries
@@ -419,11 +419,15 @@
%package fpm
Summary: PHP FastCGI Process Manager
Group: Development/Languages/PHP
-URL: http://php-fpm.anight.org/
+URL: http://www.php-fpm.org/
Requires(post,preun): /sbin/chkconfig
+Requires(postun): /usr/sbin/userdel
+Requires(pre): /bin/id
+Requires(pre): /usr/sbin/useradd
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Requires: libevent >= 1.4.7-3
Requires: rc-scripts
+Provides: user(http)
Provides: webserver(php) = %{version}
%description fpm
@@ -2156,6 +2160,9 @@
%service -q httpd restart
fi
+%pre fpm
+%useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
+
%post fpm
/sbin/chkconfig --add php-fpm
%service php-fpm restart
@@ -2166,6 +2173,11 @@
/sbin/chkconfig --del php-fpm
fi
+%postun fpm
+if [ "$1" = "0" ]; then
+ %userremove http
+fi
+
%post common -p /sbin/ldconfig
%postun common -p /sbin/ldconfig
@@ -2970,6 +2982,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.805.2.28 2009/12/01 11:05:45 glen
+- uid http for fpm; rel 11
+
Revision 1.805.2.27 2009/11/26 12:56:45 glen
- load pcre before spl; rel 10; LP#487462
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php/php.spec?r1=1.805.2.27&r2=1.805.2.28&f=u
More information about the pld-cvs-commit
mailing list