[packages/php/PHP_5_6] snippet to aid creating fpm split config

glen glen at pld-linux.org
Wed Feb 4 20:04:15 CET 2015


commit ef84931a8b2e230e0c2d0891d150acacfd1ab1f2
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Feb 4 21:04:10 2015 +0200

    snippet to aid creating fpm split config

 php.spec | 13 +++++++++++++
 1 file changed, 13 insertions(+)
---
diff --git a/php.spec b/php.spec
index 40977d8..e131e8c 100644
--- a/php.spec
+++ b/php.spec
@@ -2032,7 +2032,20 @@ cp -p php.ini-production php.ini
 %patch38 -p1
 %patch39 -p1
 %if %{with fpm}
+%if 0
+# create split php-fpm.conf patch. review (restore other diffs) and commit
+cp sapi/fpm/php-fpm.conf.in{,.orig}
+%{__sed} -n -e '/; Start a new pool named/,$p' sapi/fpm/php-fpm.conf.in > sapi/fpm/php-fpm.conf-d.in
+%{__sed} -i -e '/; Include one or more files/,/include=etc\/fpm\.d/d' sapi/fpm/php-fpm.conf.in
+%{__sed} -i -e '/; Start a new pool named/,$d' sapi/fpm/php-fpm.conf.in
+set +e
+cd ..
+diff -u %{orgname}-%{version}/sapi/fpm/php-fpm.conf.in{.orig,} > %{PATCH69}
+diff -u /dev/null %{orgname}-%{version}/sapi/fpm/php-fpm.conf-d.in >> %{PATCH69}
+exit 1
+%else
 %patch69 -p1
+%endif
 %patch41 -p1
 %patch42 -p1
 %endif
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list