Lines 24-30
NO_BUILD= yes
Link Here
|
24 |
USES= gettext |
24 |
USES= gettext |
25 |
USE_PHP= ctype session |
25 |
USE_PHP= ctype session |
26 |
WANT_PHP_WEB= yes |
26 |
WANT_PHP_WEB= yes |
27 |
DEFAULT_PHP_VER=5 |
27 |
DEFAULT_VERSIONS= php=5 |
28 |
|
28 |
|
29 |
CAKE_CONF_FILES= \ |
29 |
CAKE_CONF_FILES= \ |
30 |
app/Config/acl.php \ |
30 |
app/Config/acl.php \ |
Lines 49-55
MEMCACHE_DESC= Enable Memcached caching engine client
Link Here
|
49 |
CONFDIR= ${PREFIX}/${CONFDIR_REL} |
49 |
CONFDIR= ${PREFIX}/${CONFDIR_REL} |
50 |
CONFDIR_REL= ${APACHEETCDIR}/Includes |
50 |
CONFDIR_REL= ${APACHEETCDIR}/Includes |
51 |
|
51 |
|
52 |
NO_STAGE= yes |
|
|
53 |
.include <bsd.port.pre.mk> |
52 |
.include <bsd.port.pre.mk> |
54 |
|
53 |
|
55 |
WITH_PHP_CGI?= /cgi-bin/php |
54 |
WITH_PHP_CGI?= /cgi-bin/php |
Lines 139-181
post-patch:
Link Here
|
139 |
|
138 |
|
140 |
do-install: |
139 |
do-install: |
141 |
@cd ${WRKSRC} && ${COPYTREE_SHARE} \ |
140 |
@cd ${WRKSRC} && ${COPYTREE_SHARE} \ |
142 |
".htaccess app lib index.php plugins vendors" ${WWWDIR} |
141 |
".htaccess app lib index.php plugins vendors" ${STAGEDIR}${WWWDIR} |
143 |
|
142 |
|
144 |
.if empty(PORT_OPTIONS:MPROD) |
143 |
.if empty(PORT_OPTIONS:MPROD) |
145 |
# If installed in development mode, get rid of .htaccess files, |
144 |
# If installed in development mode, get rid of .htaccess files, |
146 |
# as noted by: |
145 |
# as noted by: |
147 |
# http://book.cakephp.org/view/42/The-Configuration-Class#CakePHP-Core-Configuration-Variables-44 |
146 |
# http://book.cakephp.org/view/42/The-Configuration-Class#CakePHP-Core-Configuration-Variables-44 |
148 |
@${FIND} ${WWWDIR} -type f -name .htaccess -exec ${RM} {} \; |
147 |
@${FIND} ${STAGEDIR}${WWWDIR} -type f -name .htaccess -exec ${RM} {} \; |
149 |
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR:S|^${PREFIX}/|%D/|} -type f -name .htaccess -exec ${RM} {} \;' >> ${TMPPLIST} |
148 |
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR:S|^${PREFIX}/|%D/|} -type f -name .htaccess -exec ${RM} {} \;' >> ${TMPPLIST} |
150 |
.endif |
149 |
.endif |
151 |
|
150 |
|
152 |
# Get rid of the empty placeholder files |
151 |
# Get rid of the empty placeholder files |
153 |
@${FIND} ${WWWDIR} -type f -name empty -size 0 -exec ${RM} {} \; |
152 |
@${FIND} ${STAGEDIR}${WWWDIR} -type f -name empty -size 0 -exec ${RM} {} \; |
154 |
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR:S|^${PREFIX}/|%D/|} -type f -name empty -size 0 -exec ${RM} {} \;' >> ${TMPPLIST} |
153 |
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR:S|^${PREFIX}/|%D/|} -type f -name empty -size 0 -exec ${RM} {} \;' >> ${TMPPLIST} |
155 |
|
154 |
|
156 |
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} |
155 |
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR} |
157 |
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \ |
156 |
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \ |
158 |
${WWWDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST} |
157 |
${WWWDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST} |
159 |
@${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644 |
158 |
@${FIND} ${STAGEDIR}${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644 |
160 |
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR} -type f -print0 | \ |
159 |
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR} -type f -print0 | \ |
161 |
${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST} |
160 |
${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST} |
162 |
@${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755 |
161 |
@${FIND} ${STAGEDIR}${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755 |
163 |
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR} -type d -print0 | \ |
162 |
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR} -type d -print0 | \ |
164 |
${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST} |
163 |
${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST} |
165 |
|
164 |
|
166 |
# Fix the permissions of the Cake console script |
165 |
# Fix the permissions of the Cake console script |
167 |
@${CHMOD} 755 ${WWWDIR}/${CAKE_CONSOLE} |
166 |
@${CHMOD} 755 ${STAGEDIR}${WWWDIR}/${CAKE_CONSOLE} |
168 |
@${ECHO_CMD} '@exec ${CHMOD} 755 ${WWWDIR}/${CAKE_CONSOLE}' >> ${TMPPLIST} |
167 |
@${ECHO_CMD} '@exec ${CHMOD} 755 ${WWWDIR}/${CAKE_CONSOLE}' >> ${TMPPLIST} |
169 |
|
168 |
|
170 |
post-install: |
169 |
post-install: |
171 |
@for i in ${CAKE_CONF_FILES}; do \ |
170 |
@for i in ${CAKE_CONF_FILES}; do \ |
172 |
if [ ! -f ${WWWDIR}/$$i -a -f ${WRKSRC}/$$i.default ]; then \ |
171 |
if [ ! -f ${WWWDIR}/$$i -a -f ${WRKSRC}/$$i.default ]; then \ |
173 |
${INSTALL_DATA} ${WRKSRC}/$$i.default ${WWWDIR}/$$i; \ |
172 |
${INSTALL_DATA} ${WRKSRC}/$$i.default ${STAGEDIR}${WWWDIR}/$$i; \ |
174 |
fi \ |
173 |
fi \ |
175 |
done |
174 |
done |
176 |
.if ${PORT_OPTIONS:MAP} |
175 |
.if ${PORT_OPTIONS:MAP} |
177 |
@if [ -d "${CONFDIR}" ]; then \ |
176 |
@${MKDIR} ${STAGEDIR}${CONFDIR} |
178 |
${CP} ${WRKDIR}/${CONF} ${CONFDIR}/cakephp.conf; \ |
177 |
@if [ -d "${STAGEDIR}${CONFDIR}" ]; then \ |
|
|
178 |
${CP} ${WRKDIR}/${CONF} ${STAGEDIR}${CONFDIR}/cakephp.conf; \ |
179 |
else \ |
179 |
else \ |
180 |
${ECHO_MSG} "" ; \ |
180 |
${ECHO_MSG} "" ; \ |
181 |
${ECHO_MSG} "Please check your Apache 2.x installation -" ; \ |
181 |
${ECHO_MSG} "Please check your Apache 2.x installation -" ; \ |
Lines 186-193
post-install:
Link Here
|
186 |
fi |
186 |
fi |
187 |
.endif |
187 |
.endif |
188 |
.if ${PORT_OPTIONS:MDOCS} |
188 |
.if ${PORT_OPTIONS:MDOCS} |
189 |
@${INSTALL} -d ${DOCSDIR} |
189 |
@${INSTALL} -d ${STAGEDIR}${DOCSDIR} |
190 |
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} |
190 |
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} |
191 |
.endif |
191 |
.endif |
192 |
@${CAT} ${PKGMESSAGE} |
192 |
@${CAT} ${PKGMESSAGE} |
193 |
.if ${CGI_EXT} == "-cgi" |
193 |
.if ${CGI_EXT} == "-cgi" |