SPECS: php.spec - php fastcgi process manager patches from http://php-fpm.a...
glen
glen at pld-linux.org
Mon Nov 3 22:16:09 CET 2008
Author: glen Date: Mon Nov 3 21:16:09 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- php fastcgi process manager patches from http://php-fpm.anight.org/
fpm itself is unusable due ZTS but other features are nice
---- Files affected:
SPECS:
php.spec (1.739 -> 1.740)
---- Diffs:
================================================================
Index: SPECS/php.spec
diff -u SPECS/php.spec:1.739 SPECS/php.spec:1.740
--- SPECS/php.spec:1.739 Mon Nov 3 14:05:05 2008
+++ SPECS/php.spec Mon Nov 3 22:16:04 2008
@@ -48,6 +48,7 @@
%bcond_without apache2 # disable building apache 2.x module
%bcond_without fcgi # disable building FCGI SAPI
%bcond_without zts # disable experimental-zts
+%bcond_without fpm # fpm patches from http://php-fpm.anight.org/
%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"
%bcond_with versioning # build with experimental versioning (to load php4/php5 into same apache)
@@ -144,6 +145,8 @@
Patch41: %{name}-pdo_mysql-charsetphpini.patch
Patch42: %{name}-ini-charsetphpini.patch
Patch43: %{name}-use-prog_sendmail.patch
+Patch44: %{name}-fpm.patch
+Patch45: %{name}-fpm-zts.patch
URL: http://www.php.net/
# Requires review:
# http://securitytracker.com/alerts/2008/Oct/1020995.html
@@ -218,6 +221,10 @@
BuildRequires: apr-devel >= 1:1.0.0
BuildRequires: apr-util-devel >= 1:1.0.0
%endif
+%if %{with fpm}
+BuildRequires: judy-devel
+BuildRequires: libevent-devel >= 1.2
+%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define php_sysconfdir /etc/php
@@ -1616,7 +1623,7 @@
%patch30 -p1
%patch31 -p1
%patch32 -p1
-%patch33 -p1
+#%patch33 -p1
%patch34 -p1
%patch35 -p1
%patch36 -p1
@@ -1631,6 +1638,11 @@
%patch43 -p1
+%if %{with fpm}
+%patch44 -p1
+%patch45 -p1
+%endif
+
# conflict seems to be resolved by recode patches
rm -f ext/recode/config9.m4
@@ -1681,7 +1693,7 @@
export EXTENSION_DIR="%{php_extensiondir}"
if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
- rm -f Makefile.{fcgi,cgi,cli,apxs{1,2}} # now remove Makefile copies
+ rm -f Makefile.{fcgi,fpm,cgi,cli,apxs{1,2}} # now remove Makefile copies
%{__libtoolize}
%{__aclocal}
cp -f /usr/share/automake/config.* .
@@ -1694,6 +1706,9 @@
%if %{with fcgi}
fcgi
%endif
+%if %{with fpm}
+fpm
+%endif
cgi cli
%if %{with apache1}
apxs1
@@ -1717,6 +1732,9 @@
fcgi)
sapi_args='--enable-fastcgi --with-fastcgi=/usr --enable-force-cgi-redirect'
;;
+ fpm)
+ sapi_args='--enable-fastcgi --with-fastcgi=/usr --enable-force-cgi-redirect --enable-fpm'
+ ;;
apxs1)
ver=$(rpm -q --qf '%{V}' apache1-devel)
sapi_args="--with-apxs=%{apxs1} --with-apache-version=$ver"
@@ -1760,6 +1778,11 @@
--enable-json=shared \
--enable-hash=shared \
--enable-xmlwriter=shared \
+%if %{with fpm}
+ --with-fpm-conf=%{_sysconfdir}/fpm.conf \
+ --with-fpm-log=/var/log/fpm.log \
+ --with-fpm-pid=/var/run/php/fpm.pid \
+%endif
%if %{with mssql} || %{with sybase} || %{with sybase_ct}
--with-pdo-dblib=shared \
%endif
@@ -1863,15 +1886,6 @@
%{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
%endif
-# FCGI
-%if %{with fcgi}
-cp -af php_config.h.fcgi main/php_config.h
-rm -rf sapi/cgi/.libs sapi/cgi/*.lo
-%{__make} sapi/cgi/php-cgi -f Makefile.fcgi
-cp -r sapi/cgi sapi/fcgi
-[ "$(echo '<?=php_sapi_name();' | ./sapi/fcgi/php-cgi -qn)" = cgi-fcgi ] || exit 1
-%endif
-
# CGI
cp -af php_config.h.cgi main/php_config.h
rm -rf sapi/cgi/.libs sapi/cgi/*.lo
@@ -1883,6 +1897,23 @@
%{__make} sapi/cli/php -f Makefile.cli
[ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -n)" = cli ] || exit 1
+# FCGI
+%if %{with fcgi}
+cp -af php_config.h.fcgi main/php_config.h
+rm -rf sapi/cgi/.libs sapi/cgi/*.lo
+%{__make} sapi/cgi/php-cgi -f Makefile.fcgi
+cp -r sapi/cgi sapi/fcgi
+[ "$(echo '<?=php_sapi_name();' | ./sapi/fcgi/php-cgi -qn)" = cgi-fcgi ] || exit 1
+%endif
+
+%if %{with fpm}
+cp -af php_config.h.fpm main/php_config.h
+rm -rf sapi/cgi/.libs sapi/cgi/*.lo
+%{__make} sapi/cgi/php-cgi -f Makefile.fpm
+cp -r sapi/cgi sapi/fpm
+[ "$(echo '<?=php_sapi_name();' | ./sapi/fpm/php-cgi -qn)" = cgi-fcgi ] || exit 1
+%endif
+
%if %{with tests}
# Run tests, using the CLI SAPI
export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
@@ -1926,6 +1957,13 @@
libtool --silent --mode=install install sapi/fcgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/php.fcgi
%endif
+# install FCGI PM
+%if %{with fpm}
+libtool --silent --mode=install install sapi/fpm/php-cgi $RPM_BUILD_ROOT%{_bindir}/php.fpm
+%{__make} install-fpm -f Makefile.fpm \
+ INSTALL_ROOT=$RPM_BUILD_ROOT
+%endif
+
# install CLI
libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php.cli
install sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php.1
@@ -2323,6 +2361,11 @@
%dir %{_sysconfdir}/cgi-fcgi.d
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
%attr(755,root,root) %{_bindir}/php.fcgi
+%if %{with fpm}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.conf
+%attr(755,root,root) %{_bindir}/php.fpm
+%attr(755,root,root) %{_sbindir}/php-fpm
+%endif
%endif
%files cgi
@@ -2786,6 +2829,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.740 2008/11/03 21:16:04 glen
+- php fastcgi process manager patches from http://php-fpm.anight.org/
+ fpm itself is unusable due ZTS but other features are nice
+
Revision 1.739 2008/11/03 13:05:05 glen
- use consistent path to sendmail wrapper
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/php.spec?r1=1.739&r2=1.740&f=u
More information about the pld-cvs-commit
mailing list