]> git.pld-linux.org Git - packages/php.git/commitdiff
- uid http for fpm; rel 11
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 1 Dec 2009 11:05:45 +0000 (11:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php.spec -> 1.805.2.28

php.spec

index 30d5dacfb5f3fe2c12de3f0fd4ce55ec150408d1..0a2b0a312b3f41218cc527f569cdbba132df60a2 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -58,7 +58,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"
@@ -110,7 +110,7 @@ Summary(ru.UTF-8):  PHP Версии 5 - язык препроцессирова
 Summary(uk.UTF-8):     PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
 Name:          php
 Version:       5.2.11
-Release:       10
+Release:       11
 Epoch:         4
 License:       PHP
 Group:         Libraries
@@ -418,11 +418,15 @@ Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
 %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
@@ -2155,6 +2159,9 @@ if [ "$1" = "0" ]; then
        %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
@@ -2165,6 +2172,11 @@ if [ "$1" = 0 ]; then
        /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
 
This page took 0.049902 seconds and 4 git commands to generate.