aboutsummaryrefslogtreecommitdiff
path: root/chinese/phpbb3-tw
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2014-08-08 02:25:58 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2014-08-08 02:25:58 +0000
commit072bf015bd1e3969721c95bc77196d2d78a4030b (patch)
treed6e9b52000a26412e67a111e2a7184b9750c116b /chinese/phpbb3-tw
parent45d5dc0019b18b296468805154fadbc0d9d090d6 (diff)
downloadports-072bf015bd1e3969721c95bc77196d2d78a4030b.tar.gz
ports-072bf015bd1e3969721c95bc77196d2d78a4030b.zip
Notes
Diffstat (limited to 'chinese/phpbb3-tw')
-rw-r--r--chinese/phpbb3-tw/Makefile22
-rw-r--r--chinese/phpbb3-tw/pkg-plist7
2 files changed, 11 insertions, 18 deletions
diff --git a/chinese/phpbb3-tw/Makefile b/chinese/phpbb3-tw/Makefile
index 1976964da5fa..83690979afc8 100644
--- a/chinese/phpbb3-tw/Makefile
+++ b/chinese/phpbb3-tw/Makefile
@@ -3,6 +3,7 @@
PORTNAME= phpbb
PORTVERSION= 3.0.11
+PORTREVISION= 1
CATEGORIES= chinese www
MASTER_SITES= http://www.phpbb-tw.net/phpbb/download/ \
http://freebsd.ee.ccu.edu.tw/phpBB/
@@ -35,7 +36,6 @@ SUB_LIST= PHPBBURL="${PHPBBURL}" \
PORTDOCS= *
PLIST_SUB+= PHPBBDIR=${PHPBBDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
-NO_STAGE= yes
# Set custom variables:
#
PHPBBDIR= ${WWWDOCROOT}/${PHPBBURL}
@@ -58,22 +58,12 @@ 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}
- @ ${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
- ${PHPBBDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
- @ ${ECHO_CMD} '@exec ${CHMOD} -R 0755 ${PREFIX}/${PHPBBDIR}' >> ${TMPPLIST}
+ @ cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${PHPBBDIR} "! -name config.php"
+ @ ${TOUCH} ${STAGEDIR}${PREFIX}/${PHPBBDIR}/config.php.sample
+ @ ${CHMOD} -R 0755 ${STAGEDIR}${PREFIX}/${PHPBBDIR}
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @ ${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/chinese/phpbb3-tw/pkg-plist b/chinese/phpbb3-tw/pkg-plist
index 0c501cb0c62c..a33a5cf11ac6 100644
--- a/chinese/phpbb3-tw/pkg-plist
+++ b/chinese/phpbb3-tw/pkg-plist
@@ -1,3 +1,5 @@
+@owner %%WWWOWN%%
+@group %%WWGRP%%
%%PHPBBDIR%%/.htaccess
%%PHPBBDIR%%/adm/images/arrow_down.gif
%%PHPBBDIR%%/adm/images/arrow_left.gif
@@ -128,6 +130,7 @@
%%PHPBBDIR%%/cache/.htaccess
%%PHPBBDIR%%/cache/index.htm
%%PHPBBDIR%%/common.php
+@sample %%PHPBBDIR%%/config.php.sample
%%PHPBBDIR%%/cron.php
%%PHPBBDIR%%/docs/AUTHORS
%%PHPBBDIR%%/docs/CHANGELOG.html
@@ -1076,8 +1079,8 @@
%%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
+@group
+@owner
@dirrm %%PHPBBDIR%%/styles/subsilver2/theme/images
@dirrm %%PHPBBDIR%%/styles/subsilver2/theme
@dirrm %%PHPBBDIR%%/styles/subsilver2/template