summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2013-10-04 12:49:58 +0000
committerAlex Dupre <ale@FreeBSD.org>2013-10-04 12:49:58 +0000
commitb258252867685a76a228a771349f4b63941a85a1 (patch)
treecc70a1b68c008767fb82894f98e4faab02651c37 /mail
parentenable stage. (diff)
Support stage dir.
Notes
Notes: svn path=/head/; revision=329302
Diffstat (limited to 'mail')
-rw-r--r--mail/roundcube/Makefile23
1 files changed, 9 insertions, 14 deletions
diff --git a/mail/roundcube/Makefile b/mail/roundcube/Makefile
index a4d4e20ceab7..cbaffdf201b6 100644
--- a/mail/roundcube/Makefile
+++ b/mail/roundcube/Makefile
@@ -17,10 +17,6 @@ NO_BUILD= yes
RCUBECOMP= .htaccess SQL config index.php installer logs plugins program robots.txt skins temp
PORTDOCS= CHANGELOG INSTALL README.md UPGRADING
-SCRIPTS_ENV= SHAREOWN=${SHAREOWN} SHAREGRP=${SHAREGRP} \
- WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} \
- WWWDIR=${WWWDIR}
-
WANT_PHP_WEB= yes
USE_PHP= pcre mbstring session iconv dom xml json intl zip filter
IGNORE_WITH_PHP=52
@@ -39,7 +35,6 @@ GD_DESC= Enable GD support (image conversion)
PSPELL_DESC= Enable PSpell support (internal spellcheck)
NSC_DESC= Install network spellchecker
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMYSQL}
@@ -87,25 +82,25 @@ post-patch:
@${FIND} ${WRKSRC} -name \*.orig -type f -delete
do-install:
- -${MKDIR} ${WWWDIR}
- @cd ${WRKSRC} && ${COPYTREE_BIN} bin ${WWWDIR}
+ -${MKDIR} ${STAGEDIR}/${WWWDIR}
+ @cd ${WRKSRC} && ${COPYTREE_BIN} bin ${STAGEDIR}/${WWWDIR}
.for i in ${RCUBECOMP}
- @cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${WWWDIR}
+ @cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${STAGEDIR}/${WWWDIR}
.endfor
- @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}/logs ${WWWDIR}/temp
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}/${DOCSDIR}
.for i in ${PORTDOCS}
- @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
+ @${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}/${DOCSDIR}/
.endfor
.endif
@(cd ${WRKSRC}; ${FIND} bin ${RCUBECOMP} -not -type d) | ${SORT} | \
${SED} -ne 's,^,${WWWDIR_REL}/,p' >> ${TMPPLIST}
+ @${ECHO_CMD} '@exec chown ${WWWOWN}:${WWWGRP} %D/${WWWDIR_REL}/logs' \
+ >> ${TMPPLIST}
+ @${ECHO_CMD} '@exec chown ${WWWOWN}:${WWWGRP} %D/${WWWDIR_REL}/temp' \
+ >> ${TMPPLIST}
@(cd ${WRKSRC}; ${FIND} bin ${RCUBECOMP} -type d) | ${SORT} -r | \
${SED} -ne 's,^,@dirrm ${WWWDIR_REL}/,p' >> ${TMPPLIST}
@${ECHO_CMD} '@dirrm ${WWWDIR_REL}' >> ${TMPPLIST}
-post-install:
- @${CAT} ${PKGMESSAGE}
-
.include <bsd.port.mk>