FreeBSD Bugzilla – Attachment 108129 Details for
Bug 148956
[PATCH] lang/php5: update to 5.3.3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
lang_php5.patch
lang_php5.patch (text/plain), 18.56 KB, created by
martin.matuska
on 2010-07-26 16:28:48 UTC
(
hide
)
Description:
lang_php5.patch
Filename:
MIME Type:
Creator:
martin.matuska
Created:
2010-07-26 16:28:48 UTC
Size:
18.56 KB
patch
obsolete
>Index: ports/databases/php5-dba/files/patch-config.m4 >=================================================================== >RCS file: /home/pcvs/ports/databases/php5-dba/files/patch-config.m4,v >retrieving revision 1.8 >diff -u -r1.8 patch-config.m4 >--- ports/databases/php5-dba/files/patch-config.m4 11 Dec 2008 12:03:09 -0000 1.8 >+++ ports/databases/php5-dba/files/patch-config.m4 26 Jul 2010 15:19:04 -0000 >@@ -1,9 +1,17 @@ >---- config.m4.orig 2007-12-06 15:17:43.000000000 +0100 >-+++ config.m4 2008-12-11 12:50:27.000000000 +0100 >-@@ -280,6 +280,34 @@ >+--- config.m4.orig 2010-07-26 12:36:14.131663932 +0200 >++++ config.m4 2010-07-26 12:38:04.732886873 +0200 >+@@ -285,6 +285,42 @@ > THIS_PREFIX=$i > THIS_INCLUDE=$i/db4/db.h > break >++ elif test -f "$i/include/db50/db.h"; then >++ THIS_PREFIX=$i >++ THIS_INCLUDE=$i/include/db50/db.h >++ break >++ elif test -f "$i/include/db48/db.h"; then >++ THIS_PREFIX=$i >++ THIS_INCLUDE=$i/include/db48/db.h >++ break > + elif test -f "$i/include/db47/db.h"; then > + THIS_PREFIX=$i > + THIS_INCLUDE=$i/include/db47/db.h >@@ -32,15 +40,6 @@ > + THIS_PREFIX=$i > + THIS_INCLUDE=$i/include/db41/db.h > + break >- elif test -f "$i/include/db4.6/db.h"; then >+ elif test -f "$i/include/db5.0/db.h"; then > THIS_PREFIX=$i >- THIS_INCLUDE=$i/include/db4.6/db.h >-@@ -306,7 +334,7 @@ >- break >- fi >- done >-- PHP_DBA_DB_CHECK(4, db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db, [(void)db_create((DB**)0, (DB_ENV*)0, 0)]) >-+ PHP_DBA_DB_CHECK(4, db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db, [(void)db_create((DB**)0, (DB_ENV*)0, 0)]) >- fi >- PHP_DBA_STD_RESULT(db4,Berkeley DB4) >- >+ THIS_INCLUDE=$i/include/db5.0/db.h >Index: ports/databases/php5-mysqli/Makefile >=================================================================== >RCS file: /home/pcvs/ports/databases/php5-mysqli/Makefile,v >retrieving revision 1.1 >diff -u -r1.1 Makefile >--- ports/databases/php5-mysqli/Makefile 19 Jul 2004 08:54:21 -0000 1.1 >+++ ports/databases/php5-mysqli/Makefile 26 Jul 2010 15:19:04 -0000 >@@ -11,4 +11,6 @@ > > PKGNAMESUFFIX= -mysqli > >+CFLAGS+= -DHAVE_ULONG >+ > .include "${MASTERDIR}/Makefile" >Index: ports/databases/php5-sybase_ct/files/patch-config.m4 >=================================================================== >RCS file: ports/databases/php5-sybase_ct/files/patch-config.m4 >diff -N ports/databases/php5-sybase_ct/files/patch-config.m4 >--- ports/databases/php5-sybase_ct/files/patch-config.m4 26 Mar 2009 09:40:22 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,11 +0,0 @@ >---- config.m4.orig 2009-03-26 09:53:49.000000000 +0100 >-+++ config.m4 2009-03-26 09:55:35.000000000 +0100 >-@@ -31,7 +31,7 @@ >- fi >- >- PHP_ADD_LIBPATH($SYBASE_CT_LIBDIR, SYBASE_CT_SHARED_LIBADD) >-- if test -f $SYBASE_CT_INCDIR/tds.h; then >-+ if test -f $SYBASE_CT_INCDIR/tds_sysdep_public.h; then >- PHP_ADD_LIBRARY(ct,, SYBASE_CT_SHARED_LIBADD) >- SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lct" >- else >Index: ports/lang/php5/Makefile >=================================================================== >RCS file: /home/pcvs/ports/lang/php5/Makefile,v >retrieving revision 1.148 >diff -u -r1.148 Makefile >--- ports/lang/php5/Makefile 25 Jun 2010 07:44:18 -0000 1.148 >+++ ports/lang/php5/Makefile 26 Jul 2010 15:19:04 -0000 >@@ -6,8 +6,7 @@ > # > > PORTNAME= php5 >-PORTVERSION= 5.3.2 >-PORTREVISION?= 1 >+PORTVERSION= 5.3.3 > CATEGORIES?= lang devel www > MASTER_SITES= ${MASTER_SITE_PHP} > MASTER_SITE_SUBDIR= distributions >@@ -32,12 +31,14 @@ > --enable-libxml \ > --with-libxml-dir=${LOCALBASE} \ > --with-pcre-regex=${LOCALBASE} \ >- --program-prefix="" >+ --program-prefix="" \ >+ --localstatedir=/var > > USE_GNOME= libxml2 > > OPTIONS= CLI "Build CLI version" on \ > CGI "Build CGI version" on \ >+ FPM "Build FastCGI process manager" on \ > APACHE "Build Apache module" off \ > DEBUG "Enable debug" off \ > SUHOSIN "Enable Suhosin protection system" on \ >@@ -54,8 +55,29 @@ > > PATCH_DIST_STRIP= -p1 > >+.if !defined(WITHOUT_FPM) >+LIB_DEPENDS+= event-1.4:${PORTSDIR}/devel/libevent >+MAN1+= php-fpm.1 >+PHP_FPM_USER?= www >+PHP_FPM_GROUP?= www >+PHP_FPM_PID?= /var/run/php-fpm.pid >+PHP_FPM_LOG?= /var/log/php-fpm.log >+USE_RC_SUBR+= php-fpm >+SUB_LIST+= PHP_FPM_PID=${PHP_FPM_PID} >+PLIST_SUB+= FPM="" \ >+ PHP_FPM_PID=${PHP_FPM_PID} \ >+ PHP_FPM_LOG=${PHP_FPM_LOG} >+ >+CONFIGURE_ARGS+= --enable-fpm \ >+ --with-fpm-user=${PHP_FPM_USER} \ >+ --with-fpm-group=${PHP_FPM_GROUP} \ >+ --with-libevent-dir=${LOCALBASE} >+.else >+PLIST_SUB+= FPM="@comment " >+.endif >+ > .if !defined(WITHOUT_SUHOSIN) >-PATCHFILES+= suhosin-patch-${PORTVERSION}-0.9.9.1.patch.gz:suhosin >+PATCHFILES+= suhosin-patch-${PORTVERSION}-0.9.10.patch.gz:suhosin > PATCH_SITES+= http://download.suhosin.org/:suhosin > PLIST_SUB+= SUHOSIN="" > .else >@@ -63,7 +85,7 @@ > .endif > > .if defined(WITH_MAILHEAD) >-PATCHFILES+= php-${PORTVERSION}-mail-header.patch:mail >+PATCHFILES+= php-5.3.2-mail-header.patch:mail > PATCH_SITES+= http://choon.net/opensource/php/:mail > .endif > >@@ -139,6 +161,11 @@ > post-patch: > @${TOUCH} ${WRKSRC}/ext/php_config.h > @${REINPLACE_CMD} "s|^\(extension_dir\)|; \1|" ${WRKSRC}/php.ini-* >+.if !defined(WITHOUT_FPM) >+ @${REINPLACE_CMD} -e 's|;pid =.*|pid = ${PHP_FPM_PID}|g' \ >+ -e 's|;error_log =.*|error_log = ${PHP_FPM_LOG}|g' \ >+ ${WRKSRC}/sapi/fpm/php-fpm.conf.in >+.endif > > pre-configure: > @${CAT} ${WRKSRC}/acinclude.m4 ${WRKSRC}/build/libtool.m4 > ${WRKSRC}/aclocal.m4 >@@ -157,6 +184,9 @@ > @${INSTALL_DATA} ${WRKSRC}/php.ini-production ${PREFIX}/etc > @${INSTALL_DATA} ${WRKDIR}/php.conf ${PREFIX}/etc > @${TOUCH} ${PREFIX}/include/php/ext/php_config.h >+.if !defined(WITHOUT_FPM) >+ @cd ${PREFIX}/etc && ${CP} -n php-fpm.conf.default php-fpm.conf >+.endif > .if defined(WITH_APACHE) > @${CAT} ${PKGMESSAGE} > .endif >@@ -165,3 +195,4 @@ > .include "${MASTERDIR}/Makefile.ext" > .endif > .include <bsd.port.post.mk> >+ >Index: ports/lang/php5/distinfo >=================================================================== >RCS file: /home/pcvs/ports/lang/php5/distinfo,v >retrieving revision 1.47 >diff -u -r1.47 distinfo >--- ports/lang/php5/distinfo 9 Apr 2010 09:34:41 -0000 1.47 >+++ ports/lang/php5/distinfo 26 Jul 2010 15:19:04 -0000 >@@ -1,9 +1,9 @@ >-MD5 (php-5.3.2.tar.bz2) = 46f500816125202c48a458d0133254a4 >-SHA256 (php-5.3.2.tar.bz2) = 9a380a574adcb3a9abe3226e7c3a9bae619e8a1b90842ec2a7edf0ad92afdeda >-SIZE (php-5.3.2.tar.bz2) = 10477662 >-MD5 (suhosin-patch-5.3.2-0.9.9.1.patch.gz) = 4647b05330862d6a1fc4469245cc6ade >-SHA256 (suhosin-patch-5.3.2-0.9.9.1.patch.gz) = a61f081022888bf78997e434744d6c0604194c73a00e70c1165524a0a6329de2 >-SIZE (suhosin-patch-5.3.2-0.9.9.1.patch.gz) = 40847 >+MD5 (php-5.3.3.tar.bz2) = 21ceeeb232813c10283a5ca1b4c87b48 >+SHA256 (php-5.3.3.tar.bz2) = f2876750f3c54854a20e26a03ca229f2fbf89b8ee6176b9c0586cb9b2f0b3f9a >+SIZE (php-5.3.3.tar.bz2) = 10662227 >+MD5 (suhosin-patch-5.3.3-0.9.10.patch.gz) = b66b27c43b1332400ef8982944c3b95b >+SHA256 (suhosin-patch-5.3.3-0.9.10.patch.gz) = f48489ff7d3fd3fc30429f7349f181c84caf2e03e672eb2d2b55b46adf6f602c >+SIZE (suhosin-patch-5.3.3-0.9.10.patch.gz) = 41298 > MD5 (php-5.3.2-mail-header.patch) = 012d8c4637422e724d5559513fcaaacb > SHA256 (php-5.3.2-mail-header.patch) = 3c9faeef9080330a23286f787efec8489587c619d8910d70926359f1a9306d6c > SIZE (php-5.3.2-mail-header.patch) = 3350 >Index: ports/lang/php5/pkg-plist >=================================================================== >RCS file: /home/pcvs/ports/lang/php5/pkg-plist,v >retrieving revision 1.31 >diff -u -r1.31 pkg-plist >--- ports/lang/php5/pkg-plist 10 May 2010 06:03:31 -0000 1.31 >+++ ports/lang/php5/pkg-plist 26 Jul 2010 15:19:04 -0000 >@@ -1,7 +1,11 @@ > %%CLI%%bin/php > %%CGI%%bin/php-cgi >+%%FPM%%sbin/php-fpm > bin/php-config > bin/phpize >+%%FPM%%@unexec if cmp -s %D/etc/php-fpm.conf %D/etc/php-fpm.conf.default; then rm -f %D/etc/php-fpm.conf; fi >+%%FPM%%etc/php-fpm.conf.default >+%%FPM%%@exec cp -n %D/%F %B/php-fpm.conf > etc/php.conf > etc/php.ini-development > etc/php.ini-production >Index: ports/lang/php5/files/patch-acinclude.m4 >=================================================================== >RCS file: /home/pcvs/ports/lang/php5/files/patch-acinclude.m4,v >retrieving revision 1.5 >diff -u -r1.5 patch-acinclude.m4 >--- ports/lang/php5/files/patch-acinclude.m4 25 Jun 2009 06:25:45 -0000 1.5 >+++ ports/lang/php5/files/patch-acinclude.m4 26 Jul 2010 15:19:04 -0000 >@@ -1,15 +1,15 @@ >---- acinclude.m4.orig 2009-05-09 22:28:02.000000000 +0200 >-+++ acinclude.m4 2009-06-25 08:08:05.000000000 +0200 >+--- acinclude.m4.orig 2010-05-05 23:55:44.000000000 +0200 >++++ acinclude.m4 2010-07-26 15:50:05.869428819 +0200 > @@ -194,7 +194,7 @@ > dnl > dnl which array to append to? > AC_DEFUN([PHP_ADD_SOURCES],[ > - PHP_ADD_SOURCES_X($1, $2, $3, ifelse($4,cli,PHP_CLI_OBJS,ifelse($4,sapi,PHP_SAPI_OBJS,PHP_GLOBAL_OBJS))) >-+ PHP_ADD_SOURCES_X($1, $2, $3, ifelse($4,cli,PHP_CLI_OBJS,ifelse($4,sapi,PHP_SAPI_OBJS,ifelse($4,cgi,PHP_CGI_OBJS,PHP_GLOBAL_OBJS)))) >++ PHP_ADD_SOURCES_X($1, $2, $3, ifelse($4,cli,PHP_CLI_OBJS,ifelse($4,sapi,PHP_SAPI_OBJS,ifelse($4,cgi,PHP_CGI_OBJS,ifelse($4,fpm,PHP_FPM_OBJS,PHP_GLOBAL_OBJS))))) > ]) > > dnl >-@@ -968,15 +968,8 @@ >+@@ -968,15 +968,9 @@ > if test "$3" != "shared" && test "$3" != "yes" && test "$4" = "cli"; then > dnl ---------------------------------------------- CLI static module > [PHP_]translit($1,a-z_-,A-Z__)[_SHARED]=no >@@ -23,10 +23,11 @@ > - ;; > - esac > + PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,cgi) >++ PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,fpm) > EXT_CLI_STATIC="$EXT_CLI_STATIC $1" > fi > PHP_ADD_BUILD_DIR($ext_builddir) >-@@ -1026,12 +1019,6 @@ >+@@ -1026,12 +1020,6 @@ > build to be successful. > ]) > fi >@@ -39,7 +40,7 @@ > dnl Some systems require that we link $2 to $1 when building > ]) > >-@@ -2303,9 +2290,9 @@ >+@@ -2303,9 +2291,9 @@ > test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no > > dnl Fallbacks for different configure options >Index: ports/lang/php5/files/patch-configure.in >=================================================================== >RCS file: /home/pcvs/ports/lang/php5/files/patch-configure.in,v >retrieving revision 1.6 >diff -u -r1.6 patch-configure.in >--- ports/lang/php5/files/patch-configure.in 9 Apr 2010 09:34:42 -0000 1.6 >+++ ports/lang/php5/files/patch-configure.in 26 Jul 2010 15:19:04 -0000 >@@ -1,6 +1,6 @@ >---- configure.in.orig 2008-12-05 07:58:47.000000000 +0100 >-+++ configure.in 2008-12-05 08:02:26.000000000 +0100 >-@@ -270,7 +270,6 @@ >+--- configure.in.orig 2010-07-26 16:21:16.128531188 +0200 >++++ configure.in 2010-07-26 16:28:32.112173134 +0200 >+@@ -302,7 +302,6 @@ > dnl . > dnl ------------------------------------------------------------------------- > >@@ -8,7 +8,7 @@ > PHP_HELP_SEPARATOR([SAPI modules:]) > PHP_SHLIB_SUFFIX_NAMES > PHP_SAPI=default >-@@ -295,7 +294,6 @@ >+@@ -327,7 +326,6 @@ > > if test "$enable_maintainer_zts" = "yes"; then > PTHREADS_ASSIGN_VARS >@@ -16,7 +16,7 @@ > fi > > divert(3) >-@@ -1136,7 +1134,7 @@ >+@@ -1162,7 +1160,7 @@ > EXPANDED_DATADIR=$datadir > EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"` > EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"` >@@ -25,13 +25,13 @@ > > exec_prefix=$old_exec_prefix > libdir=$old_libdir >-@@ -1388,22 +1386,19 @@ >+@@ -1373,22 +1371,19 @@ > pharcmd_install= > fi; >- >+ > -all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_CLI_TARGET) $pharcmd" > -install_targets="$install_modules install-build install-headers install-programs $install_pear $pharcmd_install" >-+all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_CLI_TARGET) \$(PHP_CGI_TARGET) $pharcmd" >++all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_CLI_TARGET) \$(PHP_CGI_TARGET) \$(PHP_FPM_TARGET) $pharcmd" > +install_targets="$PHP_INSTALL_CLI_TARGET $PHP_INSTALL_CGI_TARGET $install_modules install-build install-headers install-programs $install_pear $pharcmd_install" > > case $PHP_SAPI in >Index: ports/lang/php5/files/patch-sapi_cgi_config9.m4 >=================================================================== >RCS file: /home/pcvs/ports/lang/php5/files/patch-sapi_cgi_config9.m4,v >retrieving revision 1.4 >diff -u -r1.4 patch-sapi_cgi_config9.m4 >--- ports/lang/php5/files/patch-sapi_cgi_config9.m4 9 Apr 2010 09:34:42 -0000 1.4 >+++ ports/lang/php5/files/patch-sapi_cgi_config9.m4 26 Jul 2010 15:19:04 -0000 >@@ -1,5 +1,5 @@ > --- sapi/cgi/config9.m4.orig 2007-10-01 14:40:54.000000000 +0200 >-+++ sapi/cgi/config9.m4 2008-09-25 23:07:13.000000000 +0200 >++++ sapi/cgi/config9.m4 2010-07-26 17:15:20.000000000 +0200 > @@ -8,7 +8,6 @@ > dnl > dnl CGI setup >@@ -20,7 +20,7 @@ > > case $host_alias in > *aix*) >-@@ -64,17 +64,29 @@ >+@@ -64,17 +64,32 @@ > BUILD_CGI="\$(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) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)" > ;; > *) >@@ -35,6 +35,10 @@ > - > - elif test "$PHP_CLI" != "no"; then > - AC_MSG_RESULT(no) >+- OVERALL_TARGET= >+- PHP_SAPI=cli >+- else >+- AC_MSG_ERROR([No SAPIs selected.]) > + PHP_SUBST(INSTALL_CGI) > + PHP_SUBST(PHP_CGI_OBJS) > + PHP_SUBST(PHP_CGI_TARGET) >@@ -47,10 +51,13 @@ > + AC_MSG_RESULT(no) > + if test "$PHP_SAPI" = "default" ; then > + if test "$PHP_CLI" != "no" ; then >- OVERALL_TARGET= >- PHP_SAPI=cli >- else >- AC_MSG_ERROR([No SAPIs selected.]) >++ OVERALL_TARGET= >++ PHP_SAPI=cli >++ elif test "$PHP_FPM" != "no" ; then >++ OVERALL_TARGET= >++ PHP_SAPI=fpm >++ else >++ AC_MSG_ERROR([No SAPIs selected.]) >++ fi > fi >-+ fi > fi >Index: ports/lang/php5/files/patch-sapi_fpm_Makefile.frag >=================================================================== >RCS file: ports/lang/php5/files/patch-sapi_fpm_Makefile.frag >diff -N ports/lang/php5/files/patch-sapi_fpm_Makefile.frag >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ ports/lang/php5/files/patch-sapi_fpm_Makefile.frag 26 Jul 2010 15:19:04 -0000 >@@ -0,0 +1,11 @@ >+--- sapi/fpm/Makefile.frag.orig 2010-05-30 00:00:43.000000000 +0200 >++++ sapi/fpm/Makefile.frag 2010-07-26 15:40:28.353611607 +0200 >+@@ -3,7 +3,7 @@ >+ $(builddir)/fpm: >+ @mkdir -p $(builddir)/fpm >+ >+-$(SAPI_FPM_PATH): $(builddir)/fpm $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(SAPI_EXTRA_DEPS) >++$(SAPI_FPM_PATH): $(builddir)/fpm $(PHP_GLOBAL_OBJS) $(PHP_FPM_OBJS) $(SAPI_EXTRA_DEPS) >+ $(BUILD_FPM) >+ >+ $(builddir)/fpm/fpm_conf.lo: $(builddir)/../../main/build-defs.h >Index: ports/lang/php5/files/patch-sapi_fpm_config.m4 >=================================================================== >RCS file: ports/lang/php5/files/patch-sapi_fpm_config.m4 >diff -N ports/lang/php5/files/patch-sapi_fpm_config.m4 >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ ports/lang/php5/files/patch-sapi_fpm_config.m4 26 Jul 2010 15:19:04 -0000 >@@ -0,0 +1,46 @@ >+--- sapi/fpm/config.m4.orig 2010-06-16 10:58:42.000000000 +0200 >++++ sapi/fpm/config.m4 2010-07-26 17:18:04.000000000 +0200 >+@@ -565,7 +565,9 @@ >+ SAPI_EXTRA_LIBS="$LIBEVENT_LIBS" >+ PHP_SUBST(SAPI_EXTRA_LIBS) >+ >+- INSTALL_IT=":" >++ if test "$PHP_SAPI" = "default" -o "$PHP_SAPI" = "fpm" ; then >++ INSTALL_IT=":" >++ fi >+ PHP_FPM_FILES="fpm/fastcgi.c \ >+ fpm/fpm.c \ >+ fpm/fpm_children.c \ >+@@ -590,7 +592,8 @@ >+ fpm/zlog.c \ >+ " >+ >+- PHP_SELECT_SAPI(fpm, program, $PHP_FPM_FILES $PHP_FPM_TRACE_FILES, $PHP_FPM_CFLAGS, '$(SAPI_FPM_PATH)') >++ PHP_ADD_SOURCES(sapi/fpm, $PHP_FPM_FILES $PHP_FPM_TRACE_FILES, $PHP_FPM_CFLAGS,fpm) >++ PHP_ADD_SOURCES(/main, internal_functions.c,,fpm) >+ >+ case $host_alias in >+ *aix*) >+@@ -600,11 +603,21 @@ >+ 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)" >++ BUILD_FPM="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_FPM_OBJS) \$(EXTRA_LIBS) \$(SAPI_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)" >+ ;; >+ esac >+ >++ PHP_FPM_TARGET="\$(SAPI_FPM_PATH)" >++ PHP_INSTALL_FPM_TARGET="install-fpm" >+ PHP_SUBST(BUILD_FPM) >++ >++ PHP_SUBST(PHP_FPM_OBJS) >++ PHP_SUBST(PHP_FPM_TARGET) >++ PHP_SUBST(PHP_INSTALL_FPM_TARGET) >++ if test "$PHP_SAPI" = "default" -o "$PHP_SAPI" = "fpm" ; then >++ PHP_SUBST(INSTALL_IT) >++ PHP_BUILD_PROGRAM($SAPI_FPM_PATH) >++ fi >+ else >+ AC_MSG_RESULT(no) >+ fi >Index: ports/lang/php5/files/php-fpm.in >=================================================================== >RCS file: ports/lang/php5/files/php-fpm.in >diff -N ports/lang/php5/files/php-fpm.in >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ ports/lang/php5/files/php-fpm.in 26 Jul 2010 15:19:04 -0000 >@@ -0,0 +1,59 @@ >+#!/bin/sh >+# >+# $FreeBSD: ports/lang/php52/files/php-fpm.in,v 1.1 2010/06/16 10:12:36 mm Exp $ >+# >+ >+# PROVIDE: php-fpm >+# REQUIRE: LOGIN >+# BEFORE: securelevel >+# KEYWORD: shutdown >+ >+# Add the following lines to /etc/rc.conf to enable php-fpm: >+# >+# php_fpm_enable="YES" >+# php_fpm_config="" >+# >+ >+. /etc/rc.subr >+ >+name="php_fpm" >+rcvar=`set_rcvar` >+ >+extra_commands="reload logrotate" >+ >+command="%%PREFIX%%/sbin/php-fpm" >+pidfile="%%PHP_FPM_PID%%" >+reload_cmd="php_fpm_reload_cmd" >+logrotate_cmd="php_fpm_logrotate_cmd" >+ >+# read configuration and set defaults >+load_rc_config "$name" >+: ${php_fpm_enable="NO"} >+: ${php_fpm_config=""} >+ >+if [ -n "${php_fpm_config}" ]; then >+ required_files="${php_fpm_config}" >+ command_args="--fpm-config ${php_fpm_config}" >+else >+ required_files="%%PREFIX%%/etc/php-fpm.conf" >+fi >+ >+php_fpm_reload_cmd () { >+ if [ -z "$rc_pid" ]; then >+ _run_rc_notrunning >+ return 1 >+ fi >+ echo "Reloading $name." >+ kill -USR2 $rc_pid >+} >+ >+php_fpm_logrotate_cmd () { >+ if [ -z "$rc_pid" ]; then >+ _run_rc_notrunning >+ return 1 >+ fi >+ echo "Rotating logs $name." >+ kill -USR1 $rc_pid >+} >+ >+run_rc_command "$1" >Index: ports/math/php5-gmp/Makefile >=================================================================== >RCS file: /home/pcvs/ports/math/php5-gmp/Makefile,v >retrieving revision 1.4 >diff -u -r1.4 Makefile >--- ports/math/php5-gmp/Makefile 19 Apr 2010 10:43:35 -0000 1.4 >+++ ports/math/php5-gmp/Makefile 26 Jul 2010 15:19:04 -0000 >@@ -5,7 +5,6 @@ > # $FreeBSD: ports/math/php5-gmp/Makefile,v 1.4 2010/04/19 10:43:35 ale Exp $ > # > >-PORTREVISION= 1 > CATEGORIES= math > > MASTERDIR= ${.CURDIR}/../../lang/php5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 148956
:
108128
| 108129