aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2014-06-28 12:45:36 +0800
committermiwi <miwi@FreeBSD.org>2014-06-28 12:45:36 +0800
commit8fd10372ab86e182bbb4f077548186f32a97fc94 (patch)
treedaf2dd88e2b070c85b29ffca83522c92719e031f /www
parent7b70c06b6c1151b0bd40d57fb0c6d86d007bdf14 (diff)
downloadfreebsd-ports-gnome-8fd10372ab86e182bbb4f077548186f32a97fc94.tar.gz
freebsd-ports-gnome-8fd10372ab86e182bbb4f077548186f32a97fc94.tar.zst
freebsd-ports-gnome-8fd10372ab86e182bbb4f077548186f32a97fc94.zip
- Stage support
PR: 189963
Diffstat (limited to 'www')
-rw-r--r--www/phpbb3/Makefile21
-rw-r--r--www/phpbb3/pkg-plist3
2 files changed, 8 insertions, 16 deletions
diff --git a/www/phpbb3/Makefile b/www/phpbb3/Makefile
index d8ea6e8b4db3..edb73bdab4ba 100644
--- a/www/phpbb3/Makefile
+++ b/www/phpbb3/Makefile
@@ -16,7 +16,7 @@ LICENSE= GPLv2
CONFLICTS= phpbb-tw-[0-9]* phpbb-devel-[0-9]* \
phpbb-[0-2]*
-USE_BZIP2= yes
+USES= tar:bzip2
USE_PHP= yes
# The phpBB3 port supports a number of variables that may be tweaked at build
@@ -35,7 +35,6 @@ SUB_LIST= PHPBBURL="${PHPBBURL}" \
PLIST_SUB+= PHPBBDIR=${PHPBBDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
-NO_STAGE= yes
# Set custom variables:
#
PHPBBDIR= ${WWWDOCROOT}/${PHPBBURL}
@@ -55,21 +54,15 @@ pre-everything::
.endif
do-install:
- @ cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/${PHPBBDIR} "! -name config.php"
- @ [ -f ${PREFIX}/${PHPBBDIR}/config.php ] || ${TOUCH} ${PREFIX}/${PHPBBDIR}/config.php
- @ ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${PHPBBDIR}
- @ ${CHMOD} -R 0755 ${PREFIX}/${PHPBBDIR}
+ @ cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${PHPBBDIR} "! -name config.php"
+ @ ${TOUCH} ${STAGEDIR}${PREFIX}/${PHPBBDIR}/config.php.sample
+ @ ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${PHPBBDIR}
+ @ ${CHMOD} -R 0755 ${STAGEDIR}${PREFIX}/${PHPBBDIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
${PHPBBDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
post-install:
-.if !defined(NOPORTDOCS)
- @ ${MKDIR} ${DOCSDIR}
- @ cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
-
-.if !defined(BATCH)
- @ ${CAT} ${PKGMESSAGE}
-.endif
-.endif
+ @ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @ cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/www/phpbb3/pkg-plist b/www/phpbb3/pkg-plist
index c6a3688ea0c6..22220665fd0c 100644
--- a/www/phpbb3/pkg-plist
+++ b/www/phpbb3/pkg-plist
@@ -966,8 +966,7 @@
%%PHPBBDIR%%/viewonline.php
%%PHPBBDIR%%/viewtopic.php
%%PHPBBDIR%%/web.config
-@exec [ -f %D/%%PHPBBDIR%%/config.php ] || touch %D/%%PHPBBDIR%%/config.php
-@unexec [ -s %D/%%PHPBBDIR%%/config.php ] || rm -f %D/%%PHPBBDIR%%/config.php
+@sample %%PHPBBDIR%%/config.php.sample
@dirrm %%PHPBBDIR%%/styles/subsilver2/theme/images
@dirrm %%PHPBBDIR%%/styles/subsilver2/theme
@dirrm %%PHPBBDIR%%/styles/subsilver2/template