View | Details | Raw Unified | Return to bug 189963 | Differences between
and this patch

Collapse All | Expand All

(-)b/www/phpbb3/Makefile (-14 / +7 lines)
Lines 16-22 LICENSE= GPLv2 Link Here
16
CONFLICTS=	phpbb-tw-[0-9]* phpbb-devel-[0-9]* \
16
CONFLICTS=	phpbb-tw-[0-9]* phpbb-devel-[0-9]* \
17
		phpbb-[0-2]*
17
		phpbb-[0-2]*
18
18
19
USE_BZIP2=	yes
19
USES=		tar:bzip2
20
USE_PHP=	yes
20
USE_PHP=	yes
21
21
22
# The phpBB3 port supports a number of variables that may be tweaked at build
22
# The phpBB3 port supports a number of variables that may be tweaked at build
Lines 35-41 SUB_LIST= PHPBBURL="${PHPBBURL}" \ Link Here
35
35
36
PLIST_SUB+=	PHPBBDIR=${PHPBBDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
36
PLIST_SUB+=	PHPBBDIR=${PHPBBDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
37
37
38
NO_STAGE=	yes
39
# Set custom variables:
38
# Set custom variables:
40
#
39
#
41
PHPBBDIR=	${WWWDOCROOT}/${PHPBBURL}
40
PHPBBDIR=	${WWWDOCROOT}/${PHPBBURL}
Lines 55-75 pre-everything:: Link Here
55
.endif
54
.endif
56
55
57
do-install:
56
do-install:
58
	@ cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/${PHPBBDIR} "! -name config.php"
57
	@ cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${PHPBBDIR} "! -name config.php"
59
	@ [ -f ${PREFIX}/${PHPBBDIR}/config.php ] || ${TOUCH} ${PREFIX}/${PHPBBDIR}/config.php
58
	@ ${TOUCH} ${STAGEDIR}${PREFIX}/${PHPBBDIR}/config.php.sample
60
	@ ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${PHPBBDIR}
59
	@ ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${PHPBBDIR}
61
	@ ${CHMOD} -R 0755 ${PREFIX}/${PHPBBDIR}
60
	@ ${CHMOD} -R 0755 ${STAGEDIR}${PREFIX}/${PHPBBDIR}
62
	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
61
	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
63
		${PHPBBDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
62
		${PHPBBDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
64
63
65
post-install:
64
post-install:
66
.if !defined(NOPORTDOCS)
65
	@ ${MKDIR} ${STAGEDIR}${DOCSDIR}
67
	@ ${MKDIR} ${DOCSDIR}
66
	@ cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
68
	@ cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
69
70
.if !defined(BATCH)
71
	@ ${CAT} ${PKGMESSAGE}
72
.endif
73
.endif
74
67
75
.include <bsd.port.mk>
68
.include <bsd.port.mk>
(-)b/www/phpbb3/pkg-plist (-2 / +1 lines)
Lines 966-973 Link Here
966
%%PHPBBDIR%%/viewonline.php
966
%%PHPBBDIR%%/viewonline.php
967
%%PHPBBDIR%%/viewtopic.php
967
%%PHPBBDIR%%/viewtopic.php
968
%%PHPBBDIR%%/web.config
968
%%PHPBBDIR%%/web.config
969
@exec [ -f %D/%%PHPBBDIR%%/config.php ] || touch %D/%%PHPBBDIR%%/config.php
969
@sample %%PHPBBDIR%%/config.php.sample
970
@unexec [ -s %D/%%PHPBBDIR%%/config.php ] || rm -f %D/%%PHPBBDIR%%/config.php
971
@dirrm %%PHPBBDIR%%/styles/subsilver2/theme/images
970
@dirrm %%PHPBBDIR%%/styles/subsilver2/theme/images
972
@dirrm %%PHPBBDIR%%/styles/subsilver2/theme
971
@dirrm %%PHPBBDIR%%/styles/subsilver2/theme
973
@dirrm %%PHPBBDIR%%/styles/subsilver2/template
972
@dirrm %%PHPBBDIR%%/styles/subsilver2/template

Return to bug 189963