svn commit: r364339 - head/chinese/phpbb3-tw
Vanilla I. Shu
vanilla at FreeBSD.org
Fri Aug 8 02:25:59 UTC 2014
Author: vanilla
Date: Fri Aug 8 02:25:58 2014
New Revision: 364339
URL: http://svnweb.freebsd.org/changeset/ports/364339
QAT: https://qat.redports.org/buildarchive/r364339/
Log:
1: Stagify.
2: use @sample, bump version.
Modified:
head/chinese/phpbb3-tw/Makefile
head/chinese/phpbb3-tw/pkg-plist
Modified: head/chinese/phpbb3-tw/Makefile
==============================================================================
--- head/chinese/phpbb3-tw/Makefile Fri Aug 8 01:33:58 2014 (r364338)
+++ head/chinese/phpbb3-tw/Makefile Fri Aug 8 02:25:58 2014 (r364339)
@@ -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>
Modified: head/chinese/phpbb3-tw/pkg-plist
==============================================================================
--- head/chinese/phpbb3-tw/pkg-plist Fri Aug 8 01:33:58 2014 (r364338)
+++ head/chinese/phpbb3-tw/pkg-plist Fri Aug 8 02:25:58 2014 (r364339)
@@ -1,3 +1,5 @@
+ at owner %%WWWOWN%%
+ at 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
+ at 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
- at exec [ -f %D/%%PHPBBDIR%%/config.php ] || touch %D/%%PHPBBDIR%%/config.php
- at unexec [ -s %D/%%PHPBBDIR%%/config.php ] || rm -f %D/%%PHPBBDIR%%/config.php
+ at group
+ at owner
@dirrm %%PHPBBDIR%%/styles/subsilver2/theme/images
@dirrm %%PHPBBDIR%%/styles/subsilver2/theme
@dirrm %%PHPBBDIR%%/styles/subsilver2/template
More information about the svn-ports-head
mailing list