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

Collapse All | Expand All

(-)Makefile (-28 / +21 lines)
Lines 2-12 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	phpbb
4
PORTNAME=	phpbb
5
PORTVERSION=	3.0.11
5
PORTVERSION=	3.0.12
6
CATEGORIES=	www
6
CATEGORIES=	www
7
MASTER_SITES=	https://www.phpbb.com/files/release/
7
MASTER_SITES=	https://www.phpbb.com/files/release/
8
PKGNAMESUFFIX=	3
8
DISTNAME=	phpBB-${PORTVERSION}
9
DISTNAME=	phpBB-${PORTVERSION}
9
PKGNAMESUFFIX=	3
10
10
11
MAINTAINER=	appleboy.tw@gmail.com
11
MAINTAINER=	appleboy.tw@gmail.com
12
COMMENT=	A PHP-based bulletin board / discussion forum system
12
COMMENT=	A PHP-based bulletin board / discussion forum system
Lines 16-31 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
OPTIONS_DEFINE=	DOCS
23
# time.  Perform a "make options" to see more information on these variables.
23
24
#
25
WWWDOCROOT?=	www
24
WWWDOCROOT?=	www
26
PHPBBURL?=	phpBB3
25
PHPBBURL?=	phpBB3
27
#
28
# End of user-configurable variables.
29
26
30
WRKSRC=		${WRKDIR}/phpBB3
27
WRKSRC=		${WRKDIR}/phpBB3
31
NO_BUILD=	yes
28
NO_BUILD=	yes
Lines 35-54 Link Here
35
32
36
PLIST_SUB+=	PHPBBDIR=${PHPBBDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
33
PLIST_SUB+=	PHPBBDIR=${PHPBBDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
37
34
38
NO_STAGE=	yes
39
# Set custom variables:
40
#
41
PHPBBDIR=	${WWWDOCROOT}/${PHPBBURL}
35
PHPBBDIR=	${WWWDOCROOT}/${PHPBBURL}
42
PKGOPTS=	${FILESDIR}/pkg-opts
36
PKGOPTS=	${FILESDIR}/pkg-opts
43
PORTDOCS=	*
44
37
45
options:
38
options:
46
	@ ${ECHO_MSG} "===>  Build options for ${PKGNAME}:"
39
	@${ECHO_MSG} "===>  Build options for ${PKGNAME}:"
47
	@ ${CAT} ${PKGOPTS}
40
	@${CAT} ${PKGOPTS}
48
41
49
pre-everything::
42
pre-everything::
50
.if !defined(BATCH)
43
.if !defined(BATCH)
51
	@ ${TEST} -r ${PKGOPTS} && \
44
	@${TEST} -r ${PKGOPTS} && \
52
	  (${ECHO_MSG} '-------------------------------------------------------------------------'; \
45
	  (${ECHO_MSG} '-------------------------------------------------------------------------'; \
53
	   ${ECHO_MSG} 'Perform a "make options" to see a list of available installation options.'; \
46
	   ${ECHO_MSG} 'Perform a "make options" to see a list of available installation options.'; \
54
	   ${ECHO_MSG} '-------------------------------------------------------------------------')
47
	   ${ECHO_MSG} '-------------------------------------------------------------------------')
Lines 55-75 Link Here
55
.endif
48
.endif
56
49
57
do-install:
50
do-install:
58
	@ cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/${PHPBBDIR} "! -name config.php"
51
	@[ -f ${WRKSRC}/config.php ] && ${MV} ${WRKSRC}/config.php ${WRKSRC}/config.php.sample
59
	@ [ -f ${PREFIX}/${PHPBBDIR}/config.php ] || ${TOUCH} ${PREFIX}/${PHPBBDIR}/config.php
52
	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${PHPBBDIR} "! -name config.php"
60
	@ ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${PHPBBDIR}
53
	@${FIND} ${STAGEDIR}${PREFIX}/${PHPBBDIR} -type f -exec ${CHMOD} 0644 {} \;
61
	@ ${CHMOD} -R 0755 ${PREFIX}/${PHPBBDIR}
54
	@${FIND} ${STAGEDIR}${PREFIX}/${PHPBBDIR} -type d -exec ${CHMOD} 0755 {} \;
62
	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
55
.for m in files cache store images/avatars/upload
63
		${PHPBBDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
56
	@[ -d ${STAGEDIR}${PREFIX}/${PHPBBDIR}/${m} ] && \
57
	    ${CHMOD} 0777 ${STAGEDIR}${PREFIX}/${PHPBBDIR}/${m}
58
.endfor
64
59
60
.include <bsd.port.options.mk>
61
65
post-install:
62
post-install:
66
.if !defined(NOPORTDOCS)
63
.if ${PORT_OPTIONS:MDOCS}
67
	@ ${MKDIR} ${DOCSDIR}
64
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
68
	@ cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
65
	@cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
69
70
.if !defined(BATCH)
71
	@ ${CAT} ${PKGMESSAGE}
72
.endif
66
.endif
73
.endif
74
67
75
.include <bsd.port.mk>
68
.include <bsd.port.mk>
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (phpBB-3.0.11.tar.bz2) = b8c40b8cad58a458442bf04cb2632e350a76e7fb688e2820f8afd92887e751f2
1
SHA256 (phpBB-3.0.12.tar.bz2) = 14f216807063017a0110c6b36f1e4c0131e0ba4c42322ec6be77392059a197a8
2
SIZE (phpBB-3.0.11.tar.bz2) = 1589870
2
SIZE (phpBB-3.0.12.tar.bz2) = 1600626
(-)pkg-plist (-56 / +77 lines)
Lines 1-3 Link Here
1
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
2
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG.html
3
%%PORTDOCS%%%%DOCSDIR%%/COPYING
4
%%PORTDOCS%%%%DOCSDIR%%/FAQ.html
5
%%PORTDOCS%%%%DOCSDIR%%/INSTALL.html
6
%%PORTDOCS%%%%DOCSDIR%%/README.html
7
%%PORTDOCS%%%%DOCSDIR%%/auth_api.html
8
%%PORTDOCS%%%%DOCSDIR%%/bg_header.gif
9
%%PORTDOCS%%%%DOCSDIR%%/coding-guidelines.html
10
%%PORTDOCS%%%%DOCSDIR%%/corners_left.gif
11
%%PORTDOCS%%%%DOCSDIR%%/corners_left.png
12
%%PORTDOCS%%%%DOCSDIR%%/corners_right.gif
13
%%PORTDOCS%%%%DOCSDIR%%/corners_right.png
14
%%PORTDOCS%%%%DOCSDIR%%/hook_system.html
15
%%PORTDOCS%%%%DOCSDIR%%/lighttpd.sample.conf
16
%%PORTDOCS%%%%DOCSDIR%%/nginx.sample.conf
17
%%PORTDOCS%%%%DOCSDIR%%/site_logo.gif
18
%%PORTDOCS%%%%DOCSDIR%%/stylesheet.css
19
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
20
@group %%WWWGRP%%
21
@owner %%WWWOWN%%
1
%%PHPBBDIR%%/.htaccess
22
%%PHPBBDIR%%/.htaccess
2
%%PHPBBDIR%%/adm/images/arrow_down.gif
23
%%PHPBBDIR%%/adm/images/arrow_down.gif
3
%%PHPBBDIR%%/adm/images/arrow_left.gif
24
%%PHPBBDIR%%/adm/images/arrow_left.gif
Lines 329-334 Link Here
329
%%PHPBBDIR%%/includes/functions_compress.php
350
%%PHPBBDIR%%/includes/functions_compress.php
330
%%PHPBBDIR%%/includes/functions_content.php
351
%%PHPBBDIR%%/includes/functions_content.php
331
%%PHPBBDIR%%/includes/functions_convert.php
352
%%PHPBBDIR%%/includes/functions_convert.php
353
%%PHPBBDIR%%/includes/functions_database_helper.php
332
%%PHPBBDIR%%/includes/functions_display.php
354
%%PHPBBDIR%%/includes/functions_display.php
333
%%PHPBBDIR%%/includes/functions_install.php
355
%%PHPBBDIR%%/includes/functions_install.php
334
%%PHPBBDIR%%/includes/functions_jabber.php
356
%%PHPBBDIR%%/includes/functions_jabber.php
Lines 966-1028 Link Here
966
%%PHPBBDIR%%/viewonline.php
988
%%PHPBBDIR%%/viewonline.php
967
%%PHPBBDIR%%/viewtopic.php
989
%%PHPBBDIR%%/viewtopic.php
968
%%PHPBBDIR%%/web.config
990
%%PHPBBDIR%%/web.config
969
@exec [ -f %D/%%PHPBBDIR%%/config.php ] || touch %D/%%PHPBBDIR%%/config.php
991
@sample %%PHPBBDIR%%/config.php.sample
970
@unexec [ -s %D/%%PHPBBDIR%%/config.php ] || rm -f %D/%%PHPBBDIR%%/config.php
992
@dirrmtry %%PHPBBDIR%%/adm/images
971
@dirrm %%PHPBBDIR%%/styles/subsilver2/theme/images
993
@dirrmtry %%PHPBBDIR%%/adm/style
972
@dirrm %%PHPBBDIR%%/styles/subsilver2/theme
994
@dirrmtry %%PHPBBDIR%%/adm
973
@dirrm %%PHPBBDIR%%/styles/subsilver2/template
995
@dirrmtry %%PHPBBDIR%%/cache
974
@dirrm %%PHPBBDIR%%/styles/subsilver2/imageset/en
996
@dirrmtry %%PHPBBDIR%%/docs
975
@dirrm %%PHPBBDIR%%/styles/subsilver2/imageset
997
@dirrmtry %%PHPBBDIR%%/download
976
@dirrm %%PHPBBDIR%%/styles/subsilver2
998
@dirrmtry %%PHPBBDIR%%/files
977
@dirrm %%PHPBBDIR%%/styles/prosilver/theme/images
999
@dirrmtry %%PHPBBDIR%%/images/avatars/gallery
978
@dirrm %%PHPBBDIR%%/styles/prosilver/theme
979
@dirrm %%PHPBBDIR%%/styles/prosilver/template
980
@dirrm %%PHPBBDIR%%/styles/prosilver/imageset/en
981
@dirrm %%PHPBBDIR%%/styles/prosilver/imageset
982
@dirrm %%PHPBBDIR%%/styles/prosilver
983
@dirrm %%PHPBBDIR%%/styles
984
@dirrm %%PHPBBDIR%%/store
985
@dirrm %%PHPBBDIR%%/language/en/mods
986
@dirrm %%PHPBBDIR%%/language/en/email
987
@dirrm %%PHPBBDIR%%/language/en/acp
988
@dirrm %%PHPBBDIR%%/language/en
989
@dirrm %%PHPBBDIR%%/language
990
@dirrm %%PHPBBDIR%%/install/schemas
991
@dirrm %%PHPBBDIR%%/install/convertors
992
@dirrm %%PHPBBDIR%%/install
993
@dirrm %%PHPBBDIR%%/includes/utf/data
994
@dirrm %%PHPBBDIR%%/includes/utf
995
@dirrm %%PHPBBDIR%%/includes/ucp/info
996
@dirrm %%PHPBBDIR%%/includes/ucp
997
@dirrm %%PHPBBDIR%%/includes/search
998
@dirrm %%PHPBBDIR%%/includes/questionnaire
999
@dirrm %%PHPBBDIR%%/includes/mcp/info
1000
@dirrm %%PHPBBDIR%%/includes/mcp
1001
@dirrm %%PHPBBDIR%%/includes/hooks
1002
@dirrm %%PHPBBDIR%%/includes/diff
1003
@dirrm %%PHPBBDIR%%/includes/db
1004
@dirrm %%PHPBBDIR%%/includes/captcha/plugins
1005
@dirrm %%PHPBBDIR%%/includes/captcha
1006
@dirrm %%PHPBBDIR%%/includes/auth
1007
@dirrm %%PHPBBDIR%%/includes/acp/info
1008
@dirrm %%PHPBBDIR%%/includes/acp
1009
@dirrm %%PHPBBDIR%%/includes/acm
1010
@dirrm %%PHPBBDIR%%/includes
1011
@dirrmtry %%PHPBBDIR%%/images/upload_icons
1012
@dirrm %%PHPBBDIR%%/images/smilies
1013
@dirrm %%PHPBBDIR%%/images/ranks
1014
@dirrm %%PHPBBDIR%%/images/icons/smile
1015
@dirrm %%PHPBBDIR%%/images/icons/misc
1016
@dirrm %%PHPBBDIR%%/images/icons
1017
@dirrmtry %%PHPBBDIR%%/images/avatars/upload
1000
@dirrmtry %%PHPBBDIR%%/images/avatars/upload
1018
@dirrmtry %%PHPBBDIR%%/images/avatars/gallery
1019
@dirrmtry %%PHPBBDIR%%/images/avatars
1001
@dirrmtry %%PHPBBDIR%%/images/avatars
1002
@dirrmtry %%PHPBBDIR%%/images/icons/misc
1003
@dirrmtry %%PHPBBDIR%%/images/icons/smile
1004
@dirrmtry %%PHPBBDIR%%/images/icons
1005
@dirrmtry %%PHPBBDIR%%/images/ranks
1006
@dirrmtry %%PHPBBDIR%%/images/smilies
1007
@dirrmtry %%PHPBBDIR%%/images/upload_icons
1020
@dirrmtry %%PHPBBDIR%%/images
1008
@dirrmtry %%PHPBBDIR%%/images
1021
@dirrm %%PHPBBDIR%%/files
1009
@dirrmtry %%PHPBBDIR%%/includes/acm
1022
@dirrm %%PHPBBDIR%%/download
1010
@dirrmtry %%PHPBBDIR%%/includes/acp/info
1023
@dirrm %%PHPBBDIR%%/docs
1011
@dirrmtry %%PHPBBDIR%%/includes/acp
1024
@dirrm %%PHPBBDIR%%/cache
1012
@dirrmtry %%PHPBBDIR%%/includes/auth
1025
@dirrm %%PHPBBDIR%%/adm/style
1013
@dirrmtry %%PHPBBDIR%%/includes/captcha/plugins
1026
@dirrm %%PHPBBDIR%%/adm/images
1014
@dirrmtry %%PHPBBDIR%%/includes/captcha
1027
@dirrm %%PHPBBDIR%%/adm
1015
@dirrmtry %%PHPBBDIR%%/includes/db
1016
@dirrmtry %%PHPBBDIR%%/includes/diff
1017
@dirrmtry %%PHPBBDIR%%/includes/hooks
1018
@dirrmtry %%PHPBBDIR%%/includes/mcp/info
1019
@dirrmtry %%PHPBBDIR%%/includes/mcp
1020
@dirrmtry %%PHPBBDIR%%/includes/questionnaire
1021
@dirrmtry %%PHPBBDIR%%/includes/search
1022
@dirrmtry %%PHPBBDIR%%/includes/ucp/info
1023
@dirrmtry %%PHPBBDIR%%/includes/ucp
1024
@dirrmtry %%PHPBBDIR%%/includes/utf/data
1025
@dirrmtry %%PHPBBDIR%%/includes/utf
1026
@dirrmtry %%PHPBBDIR%%/includes
1027
@dirrmtry %%PHPBBDIR%%/install/convertors
1028
@dirrmtry %%PHPBBDIR%%/install/schemas
1029
@dirrmtry %%PHPBBDIR%%/install
1030
@dirrmtry %%PHPBBDIR%%/language/en/acp
1031
@dirrmtry %%PHPBBDIR%%/language/en/email
1032
@dirrmtry %%PHPBBDIR%%/language/en/mods
1033
@dirrmtry %%PHPBBDIR%%/language/en
1034
@dirrmtry %%PHPBBDIR%%/language
1035
@dirrmtry %%PHPBBDIR%%/store
1036
@dirrmtry %%PHPBBDIR%%/styles/prosilver/imageset/en
1037
@dirrmtry %%PHPBBDIR%%/styles/prosilver/imageset
1038
@dirrmtry %%PHPBBDIR%%/styles/prosilver/template
1039
@dirrmtry %%PHPBBDIR%%/styles/prosilver/theme/images
1040
@dirrmtry %%PHPBBDIR%%/styles/prosilver/theme
1041
@dirrmtry %%PHPBBDIR%%/styles/prosilver
1042
@dirrmtry %%PHPBBDIR%%/styles/subsilver2/imageset/en
1043
@dirrmtry %%PHPBBDIR%%/styles/subsilver2/imageset
1044
@dirrmtry %%PHPBBDIR%%/styles/subsilver2/template
1045
@dirrmtry %%PHPBBDIR%%/styles/subsilver2/theme/images
1046
@dirrmtry %%PHPBBDIR%%/styles/subsilver2/theme
1047
@dirrmtry %%PHPBBDIR%%/styles/subsilver2
1048
@dirrmtry %%PHPBBDIR%%/styles
1028
@dirrmtry %%PHPBBDIR%%
1049
@dirrmtry %%PHPBBDIR%%

Return to bug 191456