1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

1: Stagify.

2: use @sample, bump version.
This commit is contained in:
Vanilla I. Shu 2014-08-08 02:25:58 +00:00
parent 45d5dc0019
commit 072bf015bd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364339
2 changed files with 11 additions and 18 deletions

View File

@ -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>

View File

@ -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