Index: Makefile =================================================================== --- Makefile (revision 390640) +++ Makefile (working copy) @@ -21,22 +21,20 @@ USE_PHP= yes NO_BUILD= yes +NO_ARCH= yes -.include +PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}" -.if ${PORT_OPTIONS:MCALLGRAPH} -USES+= python -RUN_DEPENDS+= dot:${PORTSDIR}/graphics/graphviz -.endif +CALLGRAPH_USES= python +CALLGRAPH_RUN_DEPENDS= dot:${PORTSDIR}/graphics/graphviz -post-patch: - ${REINPLACE_CMD} -e 's,/usr/bin/python,/usr/local/bin/python,' ${WRKSRC}/config.php +post-patch-CALLGRAPH-on: + @${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' ${WRKSRC}/config.php do-install: @${MKDIR} ${STAGEDIR}${WWWDIR} (cd ${WRKSRC}/ && ${COPYTREE_SHARE} "*" ${STAGEDIR}${WWWDIR} "! -name *.bak") - @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR} @${FIND} ${STAGEDIR}${WWWDIR} -type f -exec ${CHMOD} 0444 {} \; @${FIND} ${STAGEDIR}${WWWDIR} -type d -exec ${CHMOD} 0755 {} \; Index: pkg-plist =================================================================== --- pkg-plist (revision 390640) +++ pkg-plist (working copy) @@ -1,3 +1,5 @@ +@owner %%WWWOWN%% +@group %%WWWGRP%% %%WWWDIR%%/README.md %%WWWDIR%%/config.php %%WWWDIR%%/img/asc.gif @@ -38,9 +40,11 @@ %%WWWDIR%%/styles/style.css %%WWWDIR%%/templates/fileviewer.phtml %%WWWDIR%%/templates/index.phtml -@dirrm %%WWWDIR%%/templates -@dirrm %%WWWDIR%%/styles -@dirrm %%WWWDIR%%/library -@dirrm %%WWWDIR%%/js -@dirrm %%WWWDIR%%/img -@dirrm %%WWWDIR%% +@dir %%WWWDIR%%/templates +@dir %%WWWDIR%%/styles +@dir %%WWWDIR%%/library +@dir %%WWWDIR%%/js +@dir %%WWWDIR%%/img +@dir %%WWWDIR%% +@owner +@group