mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Stage support
PR: 190018
This commit is contained in:
parent
7ef0c85f65
commit
92ff29b05e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356774
@ -22,7 +22,7 @@ NO_BUILD= yes
|
||||
|
||||
USE_PHP= pcre session
|
||||
WANT_PHP_WEB= yes
|
||||
DEFAULT_PHP_VER=5
|
||||
DEFAULT_VERSIONS= php=5
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
@ -36,7 +36,6 @@ PLIST_SUB+= CONFDIR=${CONFDIR_REL}
|
||||
CONFDIR= ${PREFIX}/${CONFDIR_REL}
|
||||
CONFDIR_REL= ${APACHEETCDIR}/Includes
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
WITH_PHP_CGI?= /cgi-bin/php
|
||||
@ -97,19 +96,20 @@ confighelp:
|
||||
@${ECHO_MSG} ""
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${WWWDIR}
|
||||
@${MKDIR} ${STAGEDIR}${WWWDIR}
|
||||
@${CP} -R ${WRKSRC}/.htaccess \
|
||||
${WRKSRC}/app \
|
||||
${WRKSRC}/cake \
|
||||
${WRKSRC}/index.php \
|
||||
${WRKSRC}/vendors ${WWWDIR}
|
||||
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
||||
@${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
|
||||
@${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
|
||||
${WRKSRC}/vendors ${STAGEDIR}${WWWDIR}
|
||||
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
|
||||
@${FIND} ${STAGEDIR}${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
|
||||
@${FIND} ${STAGEDIR}${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
|
||||
|
||||
post-install:
|
||||
@if [ -d "${CONFDIR}" ]; then \
|
||||
${CP} ${WRKDIR}/${CONF} ${CONFDIR}/cakephp.conf; \
|
||||
@${MKDIR} ${STAGEDIR}${CONFDIR}
|
||||
@if [ -d "${STAGEDIR}${CONFDIR}" ]; then \
|
||||
${CP} ${WRKDIR}/${CONF} ${STAGEDIR}${CONFDIR}/cakephp.conf; \
|
||||
else \
|
||||
${ECHO_MSG} "" ; \
|
||||
${ECHO_MSG} "Please check your Apache 2.x installation -" ; \
|
||||
@ -118,11 +118,8 @@ post-install:
|
||||
${ECHO_MSG} "" ; \
|
||||
${FALSE} ; \
|
||||
fi
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${DOCSDIR}
|
||||
.endif
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${STAGEDIR}${DOCSDIR}
|
||||
.if ${CGI_EXT} == "-cgi"
|
||||
@${ECHO_MSG} ""
|
||||
@${ECHO_MSG} "Your CakePHP installation was configured to use the PHP CGI binary."
|
||||
|
Loading…
Reference in New Issue
Block a user