aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2013-10-04 20:49:58 +0800
committerale <ale@FreeBSD.org>2013-10-04 20:49:58 +0800
commit54bf9e1b58e517b73341bb131a5f7b8c9a4520ee (patch)
treecc70a1b68c008767fb82894f98e4faab02651c37
parent9adfc9dbedfc1a64d4108297f4ed4396ac7ce9c7 (diff)
downloadfreebsd-ports-gnome-54bf9e1b58e517b73341bb131a5f7b8c9a4520ee.tar.gz
freebsd-ports-gnome-54bf9e1b58e517b73341bb131a5f7b8c9a4520ee.tar.zst
freebsd-ports-gnome-54bf9e1b58e517b73341bb131a5f7b8c9a4520ee.zip
Support stage dir.
-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>