]> git.pld-linux.org Git - packages/php.git/commitdiff
snippet to aid creating fpm split config
authorElan Ruusamäe <glen@delfi.ee>
Wed, 4 Feb 2015 19:04:10 +0000 (21:04 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 4 Feb 2015 19:04:10 +0000 (21:04 +0200)
php.spec

index 40977d81e7432fc17182c079d09801f2635855e9..e131e8c653f8c2dfce6c8934755f5cf49215cba4 100644 (file)
--- 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
This page took 0.112755 seconds and 4 git commands to generate.