View | Details | Raw Unified | Return to bug 148956 | Differences between
and this patch

Collapse All | Expand All

(-)ports/databases/php5-dba/files/patch-config.m4 (-14 / +13 lines)
Lines 1-9 Link Here
1
--- config.m4.orig	2007-12-06 15:17:43.000000000 +0100
1
--- config.m4.orig	2010-07-26 12:36:14.131663932 +0200
2
+++ config.m4	2008-12-11 12:50:27.000000000 +0100
2
+++ config.m4	2010-07-26 12:38:04.732886873 +0200
3
@@ -280,6 +280,34 @@
3
@@ -285,6 +285,42 @@
4
       THIS_PREFIX=$i
4
       THIS_PREFIX=$i
5
       THIS_INCLUDE=$i/db4/db.h
5
       THIS_INCLUDE=$i/db4/db.h
6
       break
6
       break
7
+    elif test -f "$i/include/db50/db.h"; then
8
+      THIS_PREFIX=$i
9
+      THIS_INCLUDE=$i/include/db50/db.h
10
+      break
11
+    elif test -f "$i/include/db48/db.h"; then
12
+      THIS_PREFIX=$i
13
+      THIS_INCLUDE=$i/include/db48/db.h
14
+      break
7
+    elif test -f "$i/include/db47/db.h"; then
15
+    elif test -f "$i/include/db47/db.h"; then
8
+      THIS_PREFIX=$i
16
+      THIS_PREFIX=$i
9
+      THIS_INCLUDE=$i/include/db47/db.h
17
+      THIS_INCLUDE=$i/include/db47/db.h
Lines 32-46 Link Here
32
+      THIS_PREFIX=$i
40
+      THIS_PREFIX=$i
33
+      THIS_INCLUDE=$i/include/db41/db.h
41
+      THIS_INCLUDE=$i/include/db41/db.h
34
+      break
42
+      break
35
     elif test -f "$i/include/db4.6/db.h"; then
43
     elif test -f "$i/include/db5.0/db.h"; then
36
       THIS_PREFIX=$i
44
       THIS_PREFIX=$i
37
       THIS_INCLUDE=$i/include/db4.6/db.h
45
       THIS_INCLUDE=$i/include/db5.0/db.h
38
@@ -306,7 +334,7 @@
39
       break
40
     fi
41
   done
42
-  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)])
43
+  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)])
44
 fi
45
 PHP_DBA_STD_RESULT(db4,Berkeley DB4)
46
 
(-)ports/databases/php5-mysqli/Makefile (+2 lines)
Lines 11-14 Link Here
11
11
12
PKGNAMESUFFIX=	-mysqli
12
PKGNAMESUFFIX=	-mysqli
13
13
14
CFLAGS+=	-DHAVE_ULONG
15
14
.include "${MASTERDIR}/Makefile"
16
.include "${MASTERDIR}/Makefile"
(-)ports/databases/php5-sybase_ct/files/patch-config.m4 (-11 lines)
Removed Link Here
1
--- config.m4.orig	2009-03-26 09:53:49.000000000 +0100
2
+++ config.m4	2009-03-26 09:55:35.000000000 +0100
3
@@ -31,7 +31,7 @@
4
   fi
5
   
6
   PHP_ADD_LIBPATH($SYBASE_CT_LIBDIR, SYBASE_CT_SHARED_LIBADD)
7
-  if test -f $SYBASE_CT_INCDIR/tds.h; then
8
+  if test -f $SYBASE_CT_INCDIR/tds_sysdep_public.h; then
9
     PHP_ADD_LIBRARY(ct,, SYBASE_CT_SHARED_LIBADD)
10
     SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lct"
11
   else
(-)ports/lang/php5/Makefile (-5 / +35 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	php5
8
PORTNAME=	php5
9
PORTVERSION=	5.3.2
9
PORTVERSION=	5.3.3
10
PORTREVISION?=	1
11
CATEGORIES?=	lang devel www
10
CATEGORIES?=	lang devel www
12
MASTER_SITES=	${MASTER_SITE_PHP}
11
MASTER_SITES=	${MASTER_SITE_PHP}
13
MASTER_SITE_SUBDIR=	distributions
12
MASTER_SITE_SUBDIR=	distributions
Lines 32-43 Link Here
32
		--enable-libxml \
31
		--enable-libxml \
33
		--with-libxml-dir=${LOCALBASE} \
32
		--with-libxml-dir=${LOCALBASE} \
34
		--with-pcre-regex=${LOCALBASE} \
33
		--with-pcre-regex=${LOCALBASE} \
35
		--program-prefix=""
34
		--program-prefix="" \
35
		--localstatedir=/var
36
36
37
USE_GNOME=	libxml2
37
USE_GNOME=	libxml2
38
38
39
OPTIONS=	CLI "Build CLI version" on \
39
OPTIONS=	CLI "Build CLI version" on \
40
		CGI "Build CGI version" on \
40
		CGI "Build CGI version" on \
41
		FPM "Enable fastcgi process manager" on \
41
		APACHE "Build Apache module" off \
42
		APACHE "Build Apache module" off \
42
		DEBUG "Enable debug" off \
43
		DEBUG "Enable debug" off \
43
		SUHOSIN "Enable Suhosin protection system" on \
44
		SUHOSIN "Enable Suhosin protection system" on \
Lines 54-61 Link Here
54
55
55
PATCH_DIST_STRIP=	-p1
56
PATCH_DIST_STRIP=	-p1
56
57
58
.if !defined(WITHOUT_FPM)
59
LIB_DEPENDS+=	event-1.4:${PORTSDIR}/devel/libevent
60
MAN1+=		php-fpm.1
61
PHP_FPM_USER?=	www
62
PHP_FPM_GROUP?=	www
63
PHP_FPM_PID?=	/var/run/php-fpm.pid
64
PHP_FPM_LOG?=	/var/log/php-fpm.log
65
USE_RC_SUBR+=	php-fpm
66
SUB_LIST+=	PHP_FPM_PID=${PHP_FPM_PID}
67
PLIST_SUB+=	FPM="" \
68
		PHP_FPM_PID=${PHP_FPM_PID} \
69
		PHP_FPM_LOG=${PHP_FPM_LOG}
70
71
CONFIGURE_ARGS+=	--enable-fpm \
72
			--with-fpm-user=${PHP_FPM_USER} \
73
			--with-fpm-group=${PHP_FPM_GROUP} \
74
			--with-libevent-dir=${LOCALBASE}
75
.else
76
PLIST_SUB+=     FPM="@comment "
77
.endif
78
57
.if !defined(WITHOUT_SUHOSIN)
79
.if !defined(WITHOUT_SUHOSIN)
58
PATCHFILES+=	suhosin-patch-${PORTVERSION}-0.9.9.1.patch.gz:suhosin
80
PATCHFILES+=	suhosin-patch-${PORTVERSION}-0.9.10.patch.gz:suhosin
59
PATCH_SITES+=	http://download.suhosin.org/:suhosin
81
PATCH_SITES+=	http://download.suhosin.org/:suhosin
60
PLIST_SUB+=	SUHOSIN=""
82
PLIST_SUB+=	SUHOSIN=""
61
.else
83
.else
Lines 63-69 Link Here
63
.endif
85
.endif
64
86
65
.if defined(WITH_MAILHEAD)
87
.if defined(WITH_MAILHEAD)
66
PATCHFILES+=	php-${PORTVERSION}-mail-header.patch:mail
88
PATCHFILES+=	php-5.3.2-mail-header.patch:mail
67
PATCH_SITES+=	http://choon.net/opensource/php/:mail
89
PATCH_SITES+=	http://choon.net/opensource/php/:mail
68
.endif
90
.endif
69
91
Lines 139-144 Link Here
139
post-patch:
161
post-patch:
140
	@${TOUCH} ${WRKSRC}/ext/php_config.h
162
	@${TOUCH} ${WRKSRC}/ext/php_config.h
141
	@${REINPLACE_CMD} "s|^\(extension_dir\)|; \1|" ${WRKSRC}/php.ini-*
163
	@${REINPLACE_CMD} "s|^\(extension_dir\)|; \1|" ${WRKSRC}/php.ini-*
164
.if !defined(WITHOUT_FPM)
165
	@${REINPLACE_CMD} -e 's|;pid =.*|pid = ${PHP_FPM_PID}|g' \
166
		-e 's|;error_log =.*|error_log = ${PHP_FPM_LOG}|g' \
167
		${WRKSRC}/sapi/fpm/php-fpm.conf.in
168
.endif
142
169
143
pre-configure:
170
pre-configure:
144
	@${CAT} ${WRKSRC}/acinclude.m4 ${WRKSRC}/build/libtool.m4 > ${WRKSRC}/aclocal.m4
171
	@${CAT} ${WRKSRC}/acinclude.m4 ${WRKSRC}/build/libtool.m4 > ${WRKSRC}/aclocal.m4
Lines 157-162 Link Here
157
	@${INSTALL_DATA} ${WRKSRC}/php.ini-production ${PREFIX}/etc
184
	@${INSTALL_DATA} ${WRKSRC}/php.ini-production ${PREFIX}/etc
158
	@${INSTALL_DATA} ${WRKDIR}/php.conf ${PREFIX}/etc
185
	@${INSTALL_DATA} ${WRKDIR}/php.conf ${PREFIX}/etc
159
	@${TOUCH} ${PREFIX}/include/php/ext/php_config.h
186
	@${TOUCH} ${PREFIX}/include/php/ext/php_config.h
187
.if !defined(WITHOUT_FPM)
188
	@cd ${PREFIX}/etc && ${CP} -n php-fpm.conf.default php-fpm.conf
189
.endif
160
.if defined(WITH_APACHE)
190
.if defined(WITH_APACHE)
161
	@${CAT} ${PKGMESSAGE}
191
	@${CAT} ${PKGMESSAGE}
162
.endif
192
.endif
(-)ports/lang/php5/distinfo (-6 / +6 lines)
Lines 1-9 Link Here
1
MD5 (php-5.3.2.tar.bz2) = 46f500816125202c48a458d0133254a4
1
MD5 (php-5.3.3.tar.bz2) = 21ceeeb232813c10283a5ca1b4c87b48
2
SHA256 (php-5.3.2.tar.bz2) = 9a380a574adcb3a9abe3226e7c3a9bae619e8a1b90842ec2a7edf0ad92afdeda
2
SHA256 (php-5.3.3.tar.bz2) = f2876750f3c54854a20e26a03ca229f2fbf89b8ee6176b9c0586cb9b2f0b3f9a
3
SIZE (php-5.3.2.tar.bz2) = 10477662
3
SIZE (php-5.3.3.tar.bz2) = 10662227
4
MD5 (suhosin-patch-5.3.2-0.9.9.1.patch.gz) = 4647b05330862d6a1fc4469245cc6ade
4
MD5 (suhosin-patch-5.3.3-0.9.10.patch.gz) = b66b27c43b1332400ef8982944c3b95b
5
SHA256 (suhosin-patch-5.3.2-0.9.9.1.patch.gz) = a61f081022888bf78997e434744d6c0604194c73a00e70c1165524a0a6329de2
5
SHA256 (suhosin-patch-5.3.3-0.9.10.patch.gz) = f48489ff7d3fd3fc30429f7349f181c84caf2e03e672eb2d2b55b46adf6f602c
6
SIZE (suhosin-patch-5.3.2-0.9.9.1.patch.gz) = 40847
6
SIZE (suhosin-patch-5.3.3-0.9.10.patch.gz) = 41298
7
MD5 (php-5.3.2-mail-header.patch) = 012d8c4637422e724d5559513fcaaacb
7
MD5 (php-5.3.2-mail-header.patch) = 012d8c4637422e724d5559513fcaaacb
8
SHA256 (php-5.3.2-mail-header.patch) = 3c9faeef9080330a23286f787efec8489587c619d8910d70926359f1a9306d6c
8
SHA256 (php-5.3.2-mail-header.patch) = 3c9faeef9080330a23286f787efec8489587c619d8910d70926359f1a9306d6c
9
SIZE (php-5.3.2-mail-header.patch) = 3350
9
SIZE (php-5.3.2-mail-header.patch) = 3350
(-)ports/lang/php5/pkg-plist (+4 lines)
Lines 1-7 Link Here
1
%%CLI%%bin/php
1
%%CLI%%bin/php
2
%%CGI%%bin/php-cgi
2
%%CGI%%bin/php-cgi
3
%%FPM%%sbin/php-fpm
3
bin/php-config
4
bin/php-config
4
bin/phpize
5
bin/phpize
6
%%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
7
%%FPM%%etc/php-fpm.conf.default
8
%%FPM%%@exec cp -n %D/%F %B/php-fpm.conf
5
etc/php.conf
9
etc/php.conf
6
etc/php.ini-development
10
etc/php.ini-development
7
etc/php.ini-production
11
etc/php.ini-production
(-)ports/lang/php5/files/php-fpm.in (+59 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/lang/php52/files/php-fpm.in,v 1.1 2010/06/16 10:12:36 mm Exp $
4
#
5
6
# PROVIDE: php-fpm
7
# REQUIRE: LOGIN
8
# BEFORE:  securelevel
9
# KEYWORD: shutdown
10
11
# Add the following lines to /etc/rc.conf to enable php-fpm:
12
#
13
# php_fpm_enable="YES"
14
# php_fpm_config=""
15
#
16
17
. /etc/rc.subr
18
19
name="php_fpm"
20
rcvar=`set_rcvar`
21
22
extra_commands="reload logrotate"
23
24
command="%%PREFIX%%/sbin/php-fpm"
25
pidfile="%%PHP_FPM_PID%%"
26
reload_cmd="php_fpm_reload_cmd"
27
logrotate_cmd="php_fpm_logrotate_cmd"
28
29
# read configuration and set defaults
30
load_rc_config "$name"
31
: ${php_fpm_enable="NO"}
32
: ${php_fpm_config=""}
33
34
if [ -n "${php_fpm_config}" ]; then
35
	required_files="${php_fpm_config}"
36
	command_args="--fpm-config ${php_fpm_config}"
37
else
38
	required_files="%%PREFIX%%/etc/php-fpm.conf"
39
fi
40
41
php_fpm_reload_cmd () {
42
	if [ -z "$rc_pid" ]; then
43
		_run_rc_notrunning
44
		return 1
45
	fi
46
	echo "Reloading $name."
47
	kill -USR2 $rc_pid
48
}
49
50
php_fpm_logrotate_cmd () {
51
	if [ -z "$rc_pid" ]; then
52
		_run_rc_notrunning
53
		return 1
54
	fi
55
	echo "Rotating logs $name."
56
	kill -USR1 $rc_pid
57
}
58
59
run_rc_command "$1"
(-)ports/math/php5-gmp/Makefile (-1 lines)
Lines 5-11 Link Here
5
# $FreeBSD: ports/math/php5-gmp/Makefile,v 1.4 2010/04/19 10:43:35 ale Exp $
5
# $FreeBSD: ports/math/php5-gmp/Makefile,v 1.4 2010/04/19 10:43:35 ale Exp $
6
#
6
#
7
7
8
PORTREVISION=	1
9
CATEGORIES=	math
8
CATEGORIES=	math
10
9
11
MASTERDIR=	${.CURDIR}/../../lang/php5
10
MASTERDIR=	${.CURDIR}/../../lang/php5

Return to bug 148956