X-Git-Url: https://git.tld-linux.org/?p=packages%2Fphp.git;a=blobdiff_plain;f=fpm-conf-split.patch;h=bae2ef79d9cbbc7c6c5334fb11a07c8a4f4ffea8;hp=be1b1bc2594589f8d3bca81c76bfd739ec4b051b;hb=e1d16e623cb319b6f79917b764b4ebb1a8dbf9ce;hpb=8e95d3efd3e05b2419be3a092efa3cb763c382fd diff --git a/fpm-conf-split.patch b/fpm-conf-split.patch index be1b1bc..bae2ef7 100644 --- a/fpm-conf-split.patch +++ b/fpm-conf-split.patch @@ -1,5 +1,5 @@ ---- php-5.5.7/sapi/fpm/php-fpm.conf.in~ 2013-12-16 17:57:03.000000000 +0200 -+++ php-5.5.7/sapi/fpm/php-fpm.conf.in 2013-12-16 17:58:37.618025260 +0200 +--- php-5.6.4/sapi/fpm/php-fpm.conf.in~ 2015-01-01 17:18:30.000000000 +0200 ++++ php-5.6.4/sapi/fpm/php-fpm.conf.in 2015-01-01 17:20:31.203799290 +0200 @@ -6,14 +6,6 @@ ; prefix (@prefix@). This prefix can be dynamically changed by using the ; '-p' argument from the command line. @@ -10,15 +10,16 @@ -; Relative path can also be used. They will be prefixed by: -; - the global prefix if it's been set (-p argument) -; - @prefix@ otherwise --;include=/etc/php/fpm.d/*.conf +-;include=etc/fpm.d/*.conf - ;;;;;;;;;;;;;;;;;; ; Global Options ; ;;;;;;;;;;;;;;;;;; -@@ -116,404 +116,10 @@ +@@ -115,410 +115,3 @@ + ; ports and different management options. The name of the pool will be ; used in logs and stats. There is no limitation on the number of pools which ; FPM can handle. Your system will tell you anyway :) - +- -; Start a new pool named 'www'. -; the variable $pool can we used in any directive and will be replaced by the -; pool name ('www' here) @@ -26,6 +27,7 @@ - -; Per pool prefix -; It only applies on the following directives: +-; - 'access.log' -; - 'slowlog' -; - 'listen' (unixsocket) -; - 'chroot' @@ -45,13 +47,17 @@ - -; The address on which to accept FastCGI requests. -; Valid syntaxes are: --; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on +-; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on +-; a specific port; +-; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on -; a specific port; --; 'port' - to listen on a TCP socket to all addresses on a +-; 'port' - to listen on a TCP socket to all IPv4 addresses on a -; specific port; +-; '[::]:port' - to listen on a TCP socket to all addresses +-; (IPv6 and IPv4-mapped) on a specific port; -; '/path/to/unix/socket' - to listen on a unix socket. -; Note: This value is mandatory. --listen = /var/run/php/@processname@.sock +-listen = 127.0.0.1:9000 - -; Set listen(2) backlog. -; Default Value: 65535 (-1 on FreeBSD and OpenBSD) @@ -66,13 +72,13 @@ -;listen.group = @php_fpm_group@ -;listen.mode = 0660 - --; List of ipv4 addresses of FastCGI clients which are allowed to connect. +-; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect. -; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original -; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address -; must be separated by a comma. If this value is left blank, connections will be -; accepted from any ip address. -; Default Value: any --listen.allowed_clients = 127.0.0.1 +-;listen.allowed_clients = 127.0.0.1 - -; Specify the nice(2) priority to apply to the pool processes (only if set) -; The value can vary from -19 (highest priority) to 20 (lower priority) @@ -391,7 +397,7 @@ -; the current environment. -; Default Value: clean env -;env[HOSTNAME] = $HOSTNAME --env[PATH] = $PATH +-;env[PATH] = /usr/local/bin:/usr/bin:/bin -;env[TMP] = /tmp -;env[TMPDIR] = /tmp -;env[TEMP] = /tmp @@ -420,18 +426,9 @@ -;php_admin_value[error_log] = /var/log/fpm-php.www.log -;php_admin_flag[log_errors] = on -;php_admin_value[memory_limit] = 32M -+; Include one or more files. If glob(3) exists, it is used to include a bunch of -+; files from a glob(3) pattern. This directive can be used everywhere in the -+; file. -+; Relative path can also be used. They will be prefixed by: -+; - the global prefix if it's been set (-p argument) -+; - @prefix@ otherwise -+include=/etc/php/fpm.d/*.conf --- /dev/null 2007-02-13 18:29:53.000000000 +0200 -+++ php-5.6.0beta1/sapi/fpm/php-fpm.conf-d.in 2014-04-21 21:58:46.191751631 +0300 -@@ -0,0 +1,403 @@ -+; vim:ft=dosini -+; ++++ php-5.6.4/sapi/fpm/php-fpm.conf-d.in 2015-01-01 17:19:55.621958470 +0200 +@@ -0,0 +1,406 @@ +; Start a new pool named 'www'. +; the variable $pool can we used in any directive and will be replaced by the +; pool name ('www' here) @@ -439,6 +436,7 @@ + +; Per pool prefix +; It only applies on the following directives: ++; - 'access.log' +; - 'slowlog' +; - 'listen' (unixsocket) +; - 'chroot' @@ -458,13 +456,17 @@ + +; The address on which to accept FastCGI requests. +; Valid syntaxes are: -+; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on ++; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on ++; a specific port; ++; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on +; a specific port; -+; 'port' - to listen on a TCP socket to all addresses on a ++; 'port' - to listen on a TCP socket to all IPv4 addresses on a +; specific port; ++; '[::]:port' - to listen on a TCP socket to all addresses ++; (IPv6 and IPv4-mapped) on a specific port; +; '/path/to/unix/socket' - to listen on a unix socket. +; Note: This value is mandatory. -+listen = /var/run/php/@processname@.sock ++listen = 127.0.0.1:9000 + +; Set listen(2) backlog. +; Default Value: 65535 (-1 on FreeBSD and OpenBSD) @@ -479,13 +481,13 @@ +;listen.group = @php_fpm_group@ +;listen.mode = 0660 + -+; List of ipv4 addresses of FastCGI clients which are allowed to connect. ++; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect. +; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original +; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address +; must be separated by a comma. If this value is left blank, connections will be +; accepted from any ip address. +; Default Value: any -+listen.allowed_clients = 127.0.0.1 ++;listen.allowed_clients = 127.0.0.1 + +; Specify the nice(2) priority to apply to the pool processes (only if set) +; The value can vary from -19 (highest priority) to 20 (lower priority) @@ -804,7 +806,7 @@ +; the current environment. +; Default Value: clean env +;env[HOSTNAME] = $HOSTNAME -+env[PATH] = $PATH ++;env[PATH] = /usr/local/bin:/usr/bin:/bin +;env[TMP] = /tmp +;env[TMPDIR] = /tmp +;env[TEMP] = /tmp @@ -844,16 +846,16 @@ PHP_ADD_MAKEFILE_FRAGMENT([$abs_srcdir/sapi/fpm/Makefile.frag]) SAPI_FPM_PATH=sapi/fpm/php-fpm ---- php-5.5.7/sapi/fpm/Makefile.frag~ 2013-12-16 17:57:03.000000000 +0200 -+++ php-5.5.7/sapi/fpm/Makefile.frag 2013-12-16 18:01:19.511829907 +0200 +--- php-5.6.2/sapi/fpm/Makefile.frag~ 2014-10-15 15:59:32.000000000 +0300 ++++ php-5.6.2/sapi/fpm/Makefile.frag 2014-10-27 08:12:57.402883790 +0200 @@ -11,8 +11,9 @@ @$(INSTALL) -m 0755 $(SAPI_FPM_PATH) $(INSTALL_ROOT)$(sbindir)/$(program_prefix)php-fpm$(program_suffix)$(EXEEXT) @echo "Installing PHP FPM config: $(INSTALL_ROOT)$(sysconfdir)/" && \ - $(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir) || : + $(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir)/fpm.d || : - @$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf || : -+ @$(INSTALL_DATA) sapi/fpm/php-fpm.conf-d $(INSTALL_ROOT)$(sysconfdir)/fpm.d/www.conf || : + @$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf.default || : ++ @$(INSTALL_DATA) sapi/fpm/php-fpm.conf-d $(INSTALL_ROOT)$(sysconfdir)/fpm.d/www.conf.default || : @echo "Installing PHP FPM man page: $(INSTALL_ROOT)$(mandir)/man8/" @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man8