1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00

- Stage support

This commit is contained in:
Martin Wilke 2014-05-22 14:20:55 +00:00
parent ab897352dd
commit 096270619f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354850

View File

@ -21,21 +21,20 @@ DO_FILES= config.php admin.php index.php
DO_DIRS= doceboCms doceboCore doceboCrm doceboEcom doceboLms doceboScs \
files install readmelicense template upgrade xml_language
NO_STAGE= yes
.include <bsd.port.pre.mk>
do-install:
@${INSTALL} -d ${WWWDIR}
@${INSTALL} -d ${STAGEDIR}${WWWDIR}
.for i in ${DO_FILES}
@cd ${WRKDIR} && ${CP} ${i} ${WWWDIR}/
@cd ${WRKDIR} && ${CP} ${i} ${STAGEDIR}${WWWDIR}/
.endfor
.for i in ${DO_DIRS}
@cd ${WRKDIR} && ${COPYTREE_SHARE} ${i} ${WWWDIR}/
@cd ${WRKDIR} && ${COPYTREE_SHARE} ${i} ${STAGEDIR}${WWWDIR}/
.endfor
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
@${CHMOD} -R 755 ${WWWDIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
@${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}
post-install:
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' \