1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Allow staging as a regular user

This commit is contained in:
Antoine Brodin 2014-09-18 19:26:56 +00:00
parent b53310fe03
commit 0a45121178
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=368508

View File

@ -47,13 +47,11 @@ do-install:
@${ECHO_CMD} '@dirrmtry ${WWWDIR_REL}' >> ${TMPPLIST}
@cd ${WRKSRC} && ${COPYTREE_SHARE} "${LAMDATA}" ${STAGEDIR}${WWWDIR}
.for DIR in ${WRITEABLES}
@${CHOWN} -R ${WWWOWN} ${STAGEDIR}${WWWDIR}/${DIR}
@${CHMOD} -R u+w ${STAGEDIR}${WWWDIR}/${DIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN} %D/${WWWDIR_REL}/${DIR}' >> ${TMPPLIST}
@${ECHO_CMD} '@exec ${CHMOD} -R u+w %D/${WWWDIR_REL}/${DIR}' >> ${TMPPLIST}
.endfor
@${CHMOD} u+x ${STAGEDIR}${WWWDIR}/lib/lamdaemon.pl
@${ECHO_CMD} '@exec ${CHMOD} u+x %D/${WWWDIR_REL}/lib/lamdaemon.pl' >> ${TMPPLIST}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}