- Add NO_ARCH

- Switch to options helpers
- Silence post-patch
- Switch to plist owner/perm handling, fixing build from non-root

PR:		203565
Submitted by:	amdmi3
Approved by:	maintainer timeout (lwhsu, 2 weeks)
This commit is contained in:
Dmitry Marakasov 2015-10-23 16:18:45 +00:00
parent 464b717938
commit a7c31bfbbb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=400032
2 changed files with 16 additions and 14 deletions

View file

@ -21,22 +21,20 @@ SNAPSHOT= 20140207
USE_PHP= yes USE_PHP= yes
NO_BUILD= yes NO_BUILD= yes
NO_ARCH= yes
.include <bsd.port.options.mk> PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
.if ${PORT_OPTIONS:MCALLGRAPH} CALLGRAPH_USES= python
USES+= python CALLGRAPH_RUN_DEPENDS= dot:${PORTSDIR}/graphics/graphviz
RUN_DEPENDS+= dot:${PORTSDIR}/graphics/graphviz
.endif
post-patch: post-patch-CALLGRAPH-on:
${REINPLACE_CMD} -e 's,/usr/bin/python,/usr/local/bin/python,' ${WRKSRC}/config.php @${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' ${WRKSRC}/config.php
do-install: do-install:
@${MKDIR} ${STAGEDIR}${WWWDIR} @${MKDIR} ${STAGEDIR}${WWWDIR}
(cd ${WRKSRC}/ && ${COPYTREE_SHARE} "*" ${STAGEDIR}${WWWDIR} "! -name *.bak") (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 f -exec ${CHMOD} 0444 {} \;
@${FIND} ${STAGEDIR}${WWWDIR} -type d -exec ${CHMOD} 0755 {} \; @${FIND} ${STAGEDIR}${WWWDIR} -type d -exec ${CHMOD} 0755 {} \;

View file

@ -1,3 +1,5 @@
@owner %%WWWOWN%%
@group %%WWWGRP%%
%%WWWDIR%%/README.md %%WWWDIR%%/README.md
%%WWWDIR%%/config.php %%WWWDIR%%/config.php
%%WWWDIR%%/img/asc.gif %%WWWDIR%%/img/asc.gif
@ -38,9 +40,11 @@
%%WWWDIR%%/styles/style.css %%WWWDIR%%/styles/style.css
%%WWWDIR%%/templates/fileviewer.phtml %%WWWDIR%%/templates/fileviewer.phtml
%%WWWDIR%%/templates/index.phtml %%WWWDIR%%/templates/index.phtml
@dirrm %%WWWDIR%%/templates @dir %%WWWDIR%%/templates
@dirrm %%WWWDIR%%/styles @dir %%WWWDIR%%/styles
@dirrm %%WWWDIR%%/library @dir %%WWWDIR%%/library
@dirrm %%WWWDIR%%/js @dir %%WWWDIR%%/js
@dirrm %%WWWDIR%%/img @dir %%WWWDIR%%/img
@dirrm %%WWWDIR%% @dir %%WWWDIR%%
@owner
@group