View | Details | Raw Unified | Return to bug 203565
Collapse All | Expand All

(-)Makefile (-8 / +6 lines)
Lines 21-42 Link Here
21
USE_PHP=	yes
21
USE_PHP=	yes
22
22
23
NO_BUILD=	yes
23
NO_BUILD=	yes
24
NO_ARCH=	yes
24
25
25
.include <bsd.port.options.mk>
26
PLIST_SUB=	WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
26
27
27
.if ${PORT_OPTIONS:MCALLGRAPH}
28
CALLGRAPH_USES=		python
28
USES+=		python
29
CALLGRAPH_RUN_DEPENDS=	dot:${PORTSDIR}/graphics/graphviz
29
RUN_DEPENDS+=	dot:${PORTSDIR}/graphics/graphviz
30
.endif
31
30
32
post-patch:
31
post-patch-CALLGRAPH-on:
33
	${REINPLACE_CMD} -e 's,/usr/bin/python,/usr/local/bin/python,' ${WRKSRC}/config.php
32
	@${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' ${WRKSRC}/config.php
34
33
35
do-install:
34
do-install:
36
	@${MKDIR} ${STAGEDIR}${WWWDIR}
35
	@${MKDIR} ${STAGEDIR}${WWWDIR}
37
	(cd ${WRKSRC}/ && ${COPYTREE_SHARE} "*" ${STAGEDIR}${WWWDIR} "! -name *.bak")
36
	(cd ${WRKSRC}/ && ${COPYTREE_SHARE} "*" ${STAGEDIR}${WWWDIR} "! -name *.bak")
38
37
39
	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
40
	@${FIND} ${STAGEDIR}${WWWDIR} -type f -exec ${CHMOD} 0444 {} \;
38
	@${FIND} ${STAGEDIR}${WWWDIR} -type f -exec ${CHMOD} 0444 {} \;
41
	@${FIND} ${STAGEDIR}${WWWDIR} -type d -exec ${CHMOD} 0755 {} \;
39
	@${FIND} ${STAGEDIR}${WWWDIR} -type d -exec ${CHMOD} 0755 {} \;
42
40
(-)pkg-plist (-6 / +10 lines)
Lines 1-3 Link Here
1
@owner %%WWWOWN%%
2
@group %%WWWGRP%%
1
%%WWWDIR%%/README.md
3
%%WWWDIR%%/README.md
2
%%WWWDIR%%/config.php
4
%%WWWDIR%%/config.php
3
%%WWWDIR%%/img/asc.gif
5
%%WWWDIR%%/img/asc.gif
Lines 38-46 Link Here
38
%%WWWDIR%%/styles/style.css
40
%%WWWDIR%%/styles/style.css
39
%%WWWDIR%%/templates/fileviewer.phtml
41
%%WWWDIR%%/templates/fileviewer.phtml
40
%%WWWDIR%%/templates/index.phtml
42
%%WWWDIR%%/templates/index.phtml
41
@dirrm %%WWWDIR%%/templates
43
@dir %%WWWDIR%%/templates
42
@dirrm %%WWWDIR%%/styles
44
@dir %%WWWDIR%%/styles
43
@dirrm %%WWWDIR%%/library
45
@dir %%WWWDIR%%/library
44
@dirrm %%WWWDIR%%/js
46
@dir %%WWWDIR%%/js
45
@dirrm %%WWWDIR%%/img
47
@dir %%WWWDIR%%/img
46
@dirrm %%WWWDIR%%
48
@dir %%WWWDIR%%
49
@owner
50
@group

Return to bug 203565