diff options
author | vanilla <vanilla@FreeBSD.org> | 2014-08-08 02:25:58 +0000 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2014-08-08 02:25:58 +0000 |
commit | 40842fb1786b0fded49d3514e2bfa380fe5daee6 (patch) | |
tree | d6e9b52000a26412e67a111e2a7184b9750c116b | |
parent | 7091dbdee5a6cb6306ed86fff0c1c80803f86a5d (diff) | |
download | FreeBSD-ports-40842fb1786b0fded49d3514e2bfa380fe5daee6.zip FreeBSD-ports-40842fb1786b0fded49d3514e2bfa380fe5daee6.tar.gz |
1: Stagify.
2: use @sample, bump version.
-rw-r--r-- | chinese/phpbb3-tw/Makefile | 22 | ||||
-rw-r--r-- | chinese/phpbb3-tw/pkg-plist | 7 |
2 files changed, 11 insertions, 18 deletions
diff --git a/chinese/phpbb3-tw/Makefile b/chinese/phpbb3-tw/Makefile index 1976964..8369097 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 0c501cb..a33a5cf 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 |