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 "Build 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 |
Lines 165-167
Link Here
|
165 |
.include "${MASTERDIR}/Makefile.ext" |
195 |
.include "${MASTERDIR}/Makefile.ext" |
166 |
.endif |
196 |
.endif |
167 |
.include <bsd.port.post.mk> |
197 |
.include <bsd.port.post.mk> |
|
|
198 |
|