Author: glen                         Date: Thu Nov 26 16:00:24 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- from http://launchpad.net/php-fpm/master/0.6/+download/php-fpm-0.6~5.3.patch

---- Files affected:
packages/php:
   php-fpm.patch (1.15 -> 1.16) 

---- Diffs:

================================================================
Index: packages/php/php-fpm.patch
diff -u /dev/null packages/php/php-fpm.patch:1.16
--- /dev/null   Thu Nov 26 17:00:24 2009
+++ packages/php/php-fpm.patch  Thu Nov 26 17:00:19 2009
@@ -0,0 +1,10539 @@
+diff -Naur php-src-vanilla/sapi/fpm/ac/fpm_build.m4 
php-src/sapi/fpm/ac/fpm_build.m4
+--- php-src-vanilla/sapi/fpm/ac/fpm_build.m4   1970-01-01 01:00:00.000000000 
+0100
++++ php-src/sapi/fpm/ac/fpm_build.m4   2009-10-18 21:05:39.310440424 +0100
+@@ -0,0 +1,47 @@
++
++AC_DEFUN([AC_FPM_BUILD_SAPI],
++[
++      
PHP_ADD_MAKEFILE_FRAGMENT($abs_srcdir/sapi/fpm/ac/Makefile.frag,$abs_srcdir/sapi/fpm,sapi/fpm)
++
++    SAPI_FPM_PATH=sapi/fpm/$php_fpm_bin
++      PHP_SUBST(SAPI_FPM_PATH)
++      
++      mkdir -p sapi/fpm/cgi
++      PHP_FPM_SAPI_FILES=`cd $abs_srcdir/sapi/fpm && find cgi/ \( -name *.c 
\) -exec printf "{} " \;`
++      # PHP_FPM_SAPI_FILES="cgi/cgi_main.c cgi/fastcgi.c"
++
++      mkdir -p sapi/fpm/fpm
++      PHP_FPM_CORE_FILES=`cd $abs_srcdir/sapi/fpm && find fpm/ \( -name *.c 
-not -name fpm_trace*.c \) -exec printf "{} " \;`
++      # PHP_FPM_CORE_FILES="fpm/fpm_process_ctl.c fpm/fpm_signals.c 
fpm/fpm_shm.c fpm/fpm.c fpm/fpm_worker_pool.c fpm/fpm_clock.c fpm/fpm_env.c 
fpm/fpm_shm_slots.c fpm/fpm_children.c fpm/fpm_events.c fpm/fpm_php.c 
fpm/fpm_unix.c fpm/fpm_request.c fpm/fpm_sockets.c fpm/fpm_php_trace.c 
fpm/zlog.c fpm/fpm_cleanup.c fpm/fpm_conf.c fpm/xml_config.c fpm/fpm_stdio.c"
++
++      if test "$fpm_trace_type" ; then
++              PHP_FPM_TRACE_FILES=`cd $abs_srcdir/sapi/fpm && find fpm/ \( 
-name fpm_trace.c -or -name fpm_trace_$fpm_trace_type.c \) -exec printf "{} " 
\;`
++      fi
++      
++      PHP_FPM_CFLAGS="$LIBEVENT_CFLAGS -I$abs_srcdir/sapi/fpm"
++
++      SAPI_EXTRA_LIBS="$LIBEVENT_LIBS"
++      PHP_SUBST(SAPI_EXTRA_LIBS)
++      
++    dnl Set install target and select SAPI
++      INSTALL_IT=":"
++
++    PHP_SELECT_SAPI(fpm, program, $PHP_FPM_SAPI_FILES $PHP_FPM_CORE_FILES 
$PHP_FPM_TRACE_FILES, $PHP_FPM_CFLAGS, '$(SAPI_FPM_PATH)')
++
++    case $host_alias in
++      *aix*)
++        BUILD_FPM="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg 
\`echo \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_OBJS) | sed 
's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 
== \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } 
}' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic 
\$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) 
-Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_OBJS) 
\$(EXTRA_LIBS) \$(SAPI_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)"
++        ;;
++      *darwin*)
++        BUILD_FPM="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) 
\$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) 
\$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_SAPI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) 
\$(EXTRA_LIBS) \$(SAPI_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)"
++      ;;
++      *)
++        BUILD_FPM="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic 
\$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) 
\$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_OBJS) \$(EXTRA_LIBS) 
\$(SAPI_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)"
++      ;;
++    esac
++
++      ENDIF=endif
++      PHP_SUBST(ENDIF)
++    PHP_SUBST(BUILD_FPM)
++
++])
+diff -Naur php-src-vanilla/sapi/fpm/ac/fpm_checks.m4 
php-src/sapi/fpm/ac/fpm_checks.m4
+--- php-src-vanilla/sapi/fpm/ac/fpm_checks.m4  1970-01-01 01:00:00.000000000 
+0100
++++ php-src/sapi/fpm/ac/fpm_checks.m4  2009-10-18 21:05:39.310440424 +0100
+@@ -0,0 +1,299 @@
++dnl
++dnl $Id$
++dnl
++
++AC_DEFUN([AC_FPM_CHECKS],
++[
++      AC_FPM_STDLIBS
++      AC_FPM_PRCTL
++      AC_FPM_CLOCK
++      AC_FPM_TRACE
++])
++
++AC_DEFUN([AC_FPM_STDLIBS],
++[
++      AC_CHECK_FUNCS(setenv clearenv)
++
++      AC_SEARCH_LIBS(socket, socket)
++      AC_SEARCH_LIBS(inet_addr, nsl)
++
++      AC_CHECK_HEADERS([errno.h fcntl.h stdio.h stdlib.h unistd.h sys/uio.h])
++      AC_CHECK_HEADERS([sys/select.h sys/socket.h sys/time.h])
++      AC_CHECK_HEADERS([arpa/inet.h netinet/in.h])
++])
++
++AC_DEFUN([AC_FPM_PRCTL],
++[
++      AC_MSG_CHECKING([for prctl])
++
++      AC_TRY_COMPILE([ #include <sys/prctl.h> ], [prctl(0, 0, 0, 0, 0);], [
++              AC_DEFINE([HAVE_PRCTL], 1, [do we have prctl?])
++              AC_MSG_RESULT([yes])
++      ], [
++              AC_MSG_RESULT([no])
++      ])
++])
++
++AC_DEFUN([AC_FPM_CLOCK],
++[
++      have_clock_gettime=no
++
++      AC_MSG_CHECKING([for clock_gettime])
++
++      AC_TRY_LINK([ #include <time.h> ], [struct timespec ts; 
clock_gettime(CLOCK_MONOTONIC, &ts);], [
++              have_clock_gettime=yes
++              AC_MSG_RESULT([yes])
++      ], [
++              AC_MSG_RESULT([no])
++      ])
++
++      if test "$have_clock_gettime" = "no"; then
++              AC_MSG_CHECKING([for clock_gettime in -lrt])
++
++              SAVED_LIBS="$LIBS"
++              LIBS="$LIBS -lrt"
++
++              AC_TRY_LINK([ #include <time.h> ], [struct timespec ts; 
clock_gettime(CLOCK_MONOTONIC, &ts);], [
++                      have_clock_gettime=yes
++                      AC_MSG_RESULT([yes])
++              ], [
++                      LIBS="$SAVED_LIBS"
++                      AC_MSG_RESULT([no])
++              ])
++      fi
++
++      if test "$have_clock_gettime" = "yes"; then
++              AC_DEFINE([HAVE_CLOCK_GETTIME], 1, [do we have clock_gettime?])
++      fi
++
++      have_clock_get_time=no
++
++      if test "$have_clock_gettime" = "no"; then
++              AC_MSG_CHECKING([for clock_get_time])
++
++              AC_TRY_RUN([ #include <mach/mach.h>
++                      #include <mach/clock.h>
++                      #include <mach/mach_error.h>
++
++                      int main()
++                      {
++                              kern_return_t ret; clock_serv_t aClock; 
mach_timespec_t aTime;
++                              ret = host_get_clock_service(mach_host_self(), 
REALTIME_CLOCK, &aClock);
++
++                              if (ret != KERN_SUCCESS) {
++                                      return 1;
++                              }
++
++                              ret = clock_get_time(aClock, &aTime);
++                              if (ret != KERN_SUCCESS) {
++                                      return 2;
++                              }
++
++                              return 0;
++                      }
++              ], [
++                      have_clock_get_time=yes
++                      AC_MSG_RESULT([yes])
++              ], [
++                      AC_MSG_RESULT([no])
++              ])
++      fi
++
++      if test "$have_clock_get_time" = "yes"; then
++              AC_DEFINE([HAVE_CLOCK_GET_TIME], 1, [do we have 
clock_get_time?])
++      fi
++])
++
++AC_DEFUN([AC_FPM_TRACE],
++[
++      have_ptrace=no
++      have_broken_ptrace=no
++
++      AC_MSG_CHECKING([for ptrace])
++
++      AC_TRY_COMPILE([
++              #include <sys/types.h>
++              #include <sys/ptrace.h> ], [ptrace(0, 0, (void *) 0, 0);], [
++              have_ptrace=yes
++              AC_MSG_RESULT([yes])
++      ], [
++              AC_MSG_RESULT([no])
++      ])
++
++      if test "$have_ptrace" = "yes"; then
++              AC_MSG_CHECKING([whether ptrace works])
++
++              AC_TRY_RUN([
++                      #include <unistd.h>
++                      #include <signal.h>
++                      #include <sys/wait.h>
++                      #include <sys/types.h>
++                      #include <sys/ptrace.h>
++                      #include <errno.h>
++
++                      #if !defined(PTRACE_ATTACH) && defined(PT_ATTACH)
++                      #define PTRACE_ATTACH PT_ATTACH
++                      #endif
++
++                      #if !defined(PTRACE_DETACH) && defined(PT_DETACH)
++                      #define PTRACE_DETACH PT_DETACH
++                      #endif
++
++                      #if !defined(PTRACE_PEEKDATA) && defined(PT_READ_D)
++                      #define PTRACE_PEEKDATA PT_READ_D
++                      #endif
++
++                      int main()
++                      {
++                              long v1 = (unsigned int) -1; /* copy will fail 
if sizeof(long) == 8 and we've got "int ptrace()" */
++                              long v2;
++                              pid_t child;
++                              int status;
++
++                              if ( (child = fork()) ) { /* parent */
++                                      int ret = 0;
++
++                                      if (0 > ptrace(PTRACE_ATTACH, child, 0, 
0)) {
++                                              return 1;
++                                      }
++
++                                      waitpid(child, &status, 0);
++
++                      #ifdef PT_IO
++                                      struct ptrace_io_desc ptio = {
++                                              .piod_op = PIOD_READ_D,
++                                              .piod_offs = &v1,
++                                              .piod_addr = &v2,
++                                              .piod_len = sizeof(v1)
++                                      };
++
++                                      if (0 > ptrace(PT_IO, child, (void *) 
&ptio, 0)) {
++                                              ret = 1;
++                                      }
++                      #else
++                                      errno = 0;
++
++                                      v2 = ptrace(PTRACE_PEEKDATA, child, 
(void *) &v1, 0);
++
++                                      if (errno) {
++                                              ret = 1;
++                                      }
++                      #endif
++                                      ptrace(PTRACE_DETACH, child, (void *) 
1, 0);
++
++                                      kill(child, SIGKILL);
++
++                                      return ret ? ret : (v1 != v2);
++                              }
++                              else { /* child */
++                                      sleep(10);
++                                      return 0;
++                              }
++                      }
++              ], [
++                      AC_MSG_RESULT([yes])
++              ], [
++                      have_ptrace=no
++                      have_broken_ptrace=yes
++                      AC_MSG_RESULT([no])
++              ])
++      fi
++
++      if test "$have_ptrace" = "yes"; then
++              AC_DEFINE([HAVE_PTRACE], 1, [do we have ptrace?])
++      fi
++
++      have_mach_vm_read=no
++
++      if test "$have_broken_ptrace" = "yes"; then
++              AC_MSG_CHECKING([for mach_vm_read])
++
++              AC_TRY_COMPILE([ #include <mach/mach.h>
++                      #include <mach/mach_vm.h>
++              ], [
++                      mach_vm_read((vm_map_t)0, (mach_vm_address_t)0, 
(mach_vm_size_t)0, (vm_offset_t *)0, (mach_msg_type_number_t*)0);
++              ], [
++                      have_mach_vm_read=yes
++                      AC_MSG_RESULT([yes])
++              ], [
++                      AC_MSG_RESULT([no])
++              ])
++      fi
++
++      if test "$have_mach_vm_read" = "yes"; then
++              AC_DEFINE([HAVE_MACH_VM_READ], 1, [do we have mach_vm_read?])
++      fi
++
++      proc_mem_file=""
++
++      if test -r /proc/$$/mem ; then
++              proc_mem_file="mem"
++      else
++              if test -r /proc/$$/as ; then
++                      proc_mem_file="as"
++              fi
++      fi
++
++      if test -n "$proc_mem_file" ; then
++              AC_MSG_CHECKING([for proc mem file])
++      
++              AC_TRY_RUN([
++                      #define _GNU_SOURCE
++                      #define _FILE_OFFSET_BITS 64
++                      #if HAVE_INTTYPES_H
++                      #include <inttypes.h>
++                      #else
++                      #include <stdint.h>
++                      #endif
++
++                      #include <unistd.h>
++                      #include <sys/types.h>
++                      #include <sys/stat.h>
++                      #include <fcntl.h>
++                      #include <stdio.h>
++                      int main()
++                      {
++                              long v1 = (unsigned int) -1, v2 = 0;
++                              char buf[128];
++                              int fd;
++                              sprintf(buf, "/proc/%d/$proc_mem_file", 
getpid());
++                              fd = open(buf, O_RDONLY);
++                              if (0 > fd) {
++                                      return 1;
++                              }
++                              if (sizeof(long) != pread(fd, &v2, 
sizeof(long), (uintptr_t) &v1)) {
++                                      close(fd);
++                                      return 1;
++                              }
++                              close(fd);
++                              return v1 != v2;
++                      }
++              ], [
++                      AC_MSG_RESULT([$proc_mem_file])
++              ], [
++                      proc_mem_file=""
++                      AC_MSG_RESULT([no])
++              ])
++      fi
++      
++      if test -n "$proc_mem_file"; then
++              AC_DEFINE_UNQUOTED([PROC_MEM_FILE], "$proc_mem_file", 
[/proc/pid/mem interface])
++      fi
++      
++      fpm_trace_type=""
++
++      if test "$have_ptrace" = "yes"; then
++              fpm_trace_type=ptrace
++              
++      elif test -n "$proc_mem_file"; then
++              fpm_trace_type=pread
++              
++      elif test "$have_mach_vm_read" = "yes" ; then
++              fpm_trace_type=mach
++              
++      else
++              AC_MSG_ERROR([FPM Trace - ptrace, pread, or mach: could not be 
found])          
++      fi
++      
++])
++
+diff -Naur php-src-vanilla/sapi/fpm/ac/fpm_conf.m4 
php-src/sapi/fpm/ac/fpm_conf.m4
+--- php-src-vanilla/sapi/fpm/ac/fpm_conf.m4    1970-01-01 01:00:00.000000000 
+0100
++++ php-src/sapi/fpm/ac/fpm_conf.m4    2009-10-18 21:05:39.310440424 +0100
+@@ -0,0 +1,188 @@
++
++AC_DEFUN([AC_FPM_ARGS],
++[
++      PHP_ARG_WITH(fpm-bin,,
++      [  --with-fpm-bin[=PATH]   Set the path for the php-fpm binary 
[/usr/local/bin/php-fpm]], yes, no)
++
++      PHP_ARG_WITH(fpm-port,,
++      [  --with-fpm-port[=PORT]  Set the tcp port number to listen for cgi 
requests [9000]], yes, no)
++
++      PHP_ARG_WITH(fpm-conf,,
++      [  --with-fpm-conf[=PATH]  Set the path for php-fpm configuration file 
[/etc/php-fpm.conf]], yes, no)
++
++      PHP_ARG_WITH(fpm-init,,
++      [  --with-fpm-init[=PATH]  Set the path for php-fpm init file 
[/etc/init.d/php-fpm]], yes, no)
++
++      PHP_ARG_WITH(fpm-log,,
++      [  --with-fpm-log[=PATH]   Set the path for php-fpm log file 
[/var/log/php-fpm.log]], yes, no)
++
++      PHP_ARG_WITH(fpm-pid,,
++      [  --with-fpm-pid[=PATH]   Set the path for php-fpm pid file 
[/var/run/php-fpm.pid]], yes, no)
++
++      PHP_ARG_WITH(fpm-user,,
++      [  --with-fpm-user[=USER]  Set the user for php-fpm to run as 
[nobody]], yes, no)
++
++      PHP_ARG_WITH(fpm-group,,
++      [  --with-fpm-group[=GRP]  Set the group for php-fpm to run as. For a 
system user,
++                        this should be set to match the fpm username 
[nobody]], yes, no)
++])
++
++AC_DEFUN([AC_FPM_VARS],
++[
++      fpm_prefix=$ac_default_prefix
++      if test $prefix != "NONE" -a $prefix != "" -a $prefix != "no" ; then
++              fpm_prefix=$prefix
++      else
++              prefix=$fpm_prefix
++      fi
++
++      if test $exec_prefix = "NONE" -o $exec_prefix = "" -o $exec_prefix = 
"no" ; then
++              exec_prefix=$fpm_prefix
++      fi
++
++      if test `echo "$bindir" | grep "exec_prefix"` ; then
++              bindir=$exec_prefix/bin
++      fi
++
++      fpm_bin_prefix=$fpm_prefix/bin
++      if test $bindir != "NONE" -a $bindir != "" -a $bindir != "no" ; then
++              fpm_bin_prefix=$bindir
++      fi
++
++      if test -z "$PHP_FPM_BIN" -o "$PHP_FPM_BIN" = "yes" -o "$PHP_FPM_BIN" = 
"no"; then
++              php_fpm_bin_path="$fpm_bin_prefix/php-fpm"
++      else
++              php_fpm_bin_path="$PHP_FPM_BIN"
++      fi
++      php_fpm_bin=`basename $php_fpm_bin_path`
++      php_fpm_bin_dir=`dirname $php_fpm_bin_path`
++
++      if test -z "$PHP_FPM_PORT" -o "$PHP_FPM_PORT" = "yes" -o 
"$PHP_FPM_PORT" = "no"; then
++              php_fpm_port="9000"
++      else
++              php_fpm_port="$PHP_FPM_PORT"
++      fi
++
++      if test -z "$PHP_FPM_CONF" -o "$PHP_FPM_CONF" = "yes"; then
++              case $host_os in
++                      freebsd*|dragonfly*)  
php_fpm_conf_path="/usr/local/etc/php-fpm.conf" ;;
++                      *)                    
php_fpm_conf_path="/etc/php-fpm.conf" ;;
++              esac
++      elif test "$PHP_FPM_CONF" = "no"; then
++              php_fpm_conf_path=""
++      else
++              php_fpm_conf_path="$PHP_FPM_CONF"
++      fi
++      if test -z "$php_fpm_conf_path"; then
++              php_fpm_conf=""
++              php_fpm_conf_dir=""
++      else
++              php_fpm_conf=`basename $php_fpm_conf_path`
++              php_fpm_conf_dir=`dirname $php_fpm_conf_path`           
++      fi
++
++      if test -z "$PHP_FPM_INIT" -o "$PHP_FPM_INIT" = "yes"; then
++              case $host_os in
++                      openbsd*)          php_fpm_init_path="" ;;
++                      netbsd*)           
php_fpm_init_path="/etc/rc.d/php-fpm" ;;
++                      *bsd*|dragonfly*)  
php_fpm_init_path="/usr/local/etc/rc.d/php-fpm" ;;
++                      *)                 
php_fpm_init_path="/etc/init.d/php-fpm" ;;
++              esac
++              test -f /etc/arch-release && 
php_fpm_init_path="/etc/rc.d/php-fpm" # arch linux
++
++      elif test "$PHP_FPM_INIT" = "no"; then
++              php_fpm_init_path=""
++      else
++              php_fpm_init_path="$PHP_FPM_INIT"
++      fi
++      if test -z "$php_fpm_init_path"; then
++              php_fpm_init=""
++              php_fpm_init_dir=""
++      else
++              php_fpm_init=`basename $php_fpm_init_path`
++              php_fpm_init_dir=`dirname $php_fpm_init_path`           
++      fi
++
++      if test -z "$PHP_FPM_LOG" -o "$PHP_FPM_LOG" = "yes" -o "$PHP_FPM_LOG" = 
"no"; then
++              php_fpm_log_path="/var/log/php-fpm.log"
++      else
++              php_fpm_log_path="$PHP_FPM_LOG"
++      fi
++      php_fpm_log_dir=`dirname $php_fpm_log_path`
++
++      if test -z "$PHP_FPM_PID" -o "$PHP_FPM_PID" = "yes" -o "$PHP_FPM_PID" = 
"no"; then
++              php_fpm_pid_path="/var/run/php-fpm.pid"
++      else
++              php_fpm_pid_path="$PHP_FPM_PID"
++      fi
++      php_fpm_pid_dir=`dirname $php_fpm_pid_path`
++
++      if test -z "$PHP_FPM_USER" -o "$PHP_FPM_USER" = "yes" -o 
"$PHP_FPM_USER" = "no"; then
++              php_fpm_user="nobody"
++      else
++              php_fpm_user="$PHP_FPM_USER"
++      fi
++
++      if test -z "$PHP_FPM_GROUP" -o "$PHP_FPM_GROUP" = "yes" -o 
"$PHP_FPM_GROUP" = "no"; then
++              php_fpm_group="nobody"
++      else
++              php_fpm_group="$PHP_FPM_GROUP"
++      fi
++
++
++      PHP_SUBST_OLD(fpm_version)
++      PHP_SUBST_OLD(php_fpm_bin)
++      PHP_SUBST_OLD(php_fpm_bin_dir)
++      PHP_SUBST_OLD(php_fpm_bin_path)
++      PHP_SUBST_OLD(php_fpm_port)
++      PHP_SUBST_OLD(php_fpm_conf)
++      PHP_SUBST_OLD(php_fpm_conf_dir)
++      PHP_SUBST_OLD(php_fpm_conf_path)
++      PHP_SUBST_OLD(php_fpm_init)
++      PHP_SUBST_OLD(php_fpm_init_dir)
++      PHP_SUBST_OLD(php_fpm_init_path)
++      PHP_SUBST_OLD(php_fpm_log_dir)
++      PHP_SUBST_OLD(php_fpm_log_path)
++      PHP_SUBST_OLD(php_fpm_pid_dir)
++      PHP_SUBST_OLD(php_fpm_pid_path)
++      PHP_SUBST_OLD(php_fpm_user)
++      PHP_SUBST_OLD(php_fpm_group)
++
++
++      AC_DEFINE_UNQUOTED(PHP_FPM_VERSION, "$fpm_version", [fpm version])
++      AC_DEFINE_UNQUOTED(PHP_FPM_BIN, "$php_fpm_bin", [fpm binary executable])
++      AC_DEFINE_UNQUOTED(PHP_FPM_BIN_DIR, "$php_fpm_bin_dir", [fpm binary 
dir])
++      AC_DEFINE_UNQUOTED(PHP_FPM_BIN_PATH, "$php_fpm_bin_path", [fpm bin file 
path])
++      AC_DEFINE_UNQUOTED(PHP_FPM_PORT, "$php_fpm_port", [tcp port])
++      AC_DEFINE_UNQUOTED(PHP_FPM_CONF, "$php_fpm_conf", [fpm conf file])
++      AC_DEFINE_UNQUOTED(PHP_FPM_CONF_DIR, "$php_fpm_conf_dir", [fpm conf 
dir])
++      AC_DEFINE_UNQUOTED(PHP_FPM_CONF_PATH, "$php_fpm_conf_path", [fpm conf 
file path])
++      AC_DEFINE_UNQUOTED(PHP_FPM_INIT, "$php_fpm_init", [fpm init file])
++      AC_DEFINE_UNQUOTED(PHP_FPM_INIT_DIR, "$php_fpm_init_dir", [fpm init 
dir])
++      AC_DEFINE_UNQUOTED(PHP_FPM_INIT_PATH, "$php_fpm_init_path", [fpm init 
file path])
++      AC_DEFINE_UNQUOTED(PHP_FPM_LOG_DIR, "$php_fpm_log_dir", [fpm log dir])
++      AC_DEFINE_UNQUOTED(PHP_FPM_LOG_PATH, "$php_fpm_log_path", [fpm log file 
path])
++      AC_DEFINE_UNQUOTED(PHP_FPM_PID_DIR, "$php_fpm_pid_dir", [fpm pid dir])
++      AC_DEFINE_UNQUOTED(PHP_FPM_PID_PATH, "$php_fpm_pid_path", [fpm pid file 
path])
++      AC_DEFINE_UNQUOTED(PHP_FPM_USER, "$php_fpm_user", [fpm user name])
++      AC_DEFINE_UNQUOTED(PHP_FPM_GROUP, "$php_fpm_group", [fpm group name])
++
++])
++
++
++AC_DEFUN([AC_FPM_OUTPUT],
++[
++      PHP_OUTPUT(sapi/fpm/php_fpm.conf:sapi/fpm/conf/php-fpm.conf.in)
++      PHP_OUTPUT(sapi/fpm/init.d.php_fpm:sapi/fpm/conf/init.d.php-fpm.in)
++      
PHP_OUTPUT(sapi/fpm/nginx-site-conf.sample:sapi/fpm/conf/nginx-site-conf.sample.in)
++      PHP_OUTPUT(sapi/fpm/$php_fpm_bin.1:sapi/fpm/man/php-fpm.1.in)
++])
++
++
++AC_DEFUN([AC_FPM_CONF],
++[
++      AC_FPM_ARGS
++      AC_FPM_VARS
++      AC_FPM_OUTPUT
++])
++
+diff -Naur php-src-vanilla/sapi/fpm/ac/fpm_libevent.m4 
php-src/sapi/fpm/ac/fpm_libevent.m4
+--- php-src-vanilla/sapi/fpm/ac/fpm_libevent.m4        1970-01-01 
01:00:00.000000000 +0100
++++ php-src/sapi/fpm/ac/fpm_libevent.m4        2009-10-18 21:05:39.310440424 
+0100
+@@ -0,0 +1,250 @@
++dnl @synopsis AC_LIB_EVENT([MINIMUM-VERSION],[REQUIRED-VERSION])
++dnl
++dnl Test for the libevent library of a particular version (or newer).
++dnl Source: 
http://svn.apache.org/repos/asf/incubator/thrift/trunk/aclocal/ax_lib_event.m4
++dnl Modified: This file was modified for autoconf-2.13 and the PHP_ARG_WITH 
macro.
++dnl
++dnl If no path to the installed libevent is given, the macro will first try
++dnl using no -I or -L flags, then searches under /usr, /usr/local, /opt,
++dnl and /opt/libevent.
++dnl If these all fail, it will try the $LIBEVENT_ROOT environment variable.
++dnl
++dnl This macro requires that #include <sys/types.h> works and defines u_char.
++dnl
++dnl This macro calls:
++dnl   AC_SUBST(LIBEVENT_CFLAGS)
++dnl   AC_SUBST(LIBEVENT_LIBS)
++dnl
++dnl And (if libevent is found):
++dnl   AC_DEFINE(HAVE_LIBEVENT)
++dnl
++dnl It also leaves the shell variables "success" and "ac_have_libevent"
++dnl set to "yes" or "no".
++dnl
++dnl NOTE: This macro does not currently work for cross-compiling,
++dnl       but it can be easily modified to allow it.  (grep "cross").
++dnl
++dnl @category InstalledPackages
++dnl @category C
++dnl @version 2007-09-12
++dnl @license AllPermissive
++dnl
++dnl Copyright (C) 2009 David Reiss
++dnl Copying and distribution of this file, with or without modification,
++dnl are permitted in any medium without royalty provided the copyright
++dnl notice and this notice are preserved.
++
++AC_DEFUN([AC_LIB_EVENT_DO_CHECK],
++[
++# Save our flags.
++CPPFLAGS_SAVED="$CPPFLAGS"
++LDFLAGS_SAVED="$LDFLAGS"
<<Diff was trimmed, longer than 597 lines>>

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php/php-fpm.patch?r1=1.15&r2=1.16&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to