diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2007-07-20 12:34:22 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2007-07-20 12:34:22 +0000 |
commit | a2430571d2ebd9c12b964c58466548ab2f511563 (patch) | |
tree | eda20eb0ab0582eee0864ce680fcacf02dfebf9f /www/phpbb3 | |
parent | 06a087139ede3da0c170a3b8a5e8148b71adae21 (diff) | |
download | ports-a2430571d2ebd9c12b964c58466548ab2f511563.tar.gz ports-a2430571d2ebd9c12b964c58466548ab2f511563.zip |
Notes
Diffstat (limited to 'www/phpbb3')
-rw-r--r-- | www/phpbb3/Makefile | 6 | ||||
-rw-r--r-- | www/phpbb3/pkg-plist | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/www/phpbb3/Makefile b/www/phpbb3/Makefile index 0f840b3ffcfc..a2fb7e0de916 100644 --- a/www/phpbb3/Makefile +++ b/www/phpbb3/Makefile @@ -55,14 +55,14 @@ pre-everything:: do-install: @ ${MKDIR} -m 0775 ${PREFIX}/${PHPBBDIR} - @ cd ${WRKSRC} && ${FIND} . ! -name config.php ! -name . -print | ${TAR} cTf - - | ${TAR} xUCf ${PREFIX}/${PHPBBDIR} - - @ ${TOUCH} ${PREFIX}/${PHPBBDIR}/config.php + @ 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} post-install: .if !defined(NOPORTDOCS) @ ${MKDIR} ${DOCSDIR} - @ cd ${WRKSRC}/docs && ${FIND} . -print | ${TAR} cTf - - | ${TAR} xUCf ${DOCSDIR} - + @ cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR} .if !defined(BATCH) @ ${CAT} ${PKGMESSAGE} diff --git a/www/phpbb3/pkg-plist b/www/phpbb3/pkg-plist index cbcbc44971a0..e30be145efed 100644 --- a/www/phpbb3/pkg-plist +++ b/www/phpbb3/pkg-plist @@ -910,7 +910,7 @@ %%PHPBBDIR%%/viewtopic.php @exec [ -f %D/%%PHPBBDIR%%/config.php ] || touch %D/%%PHPBBDIR%%/config.php @exec chown -R %%WWWOWN%%:%%WWWGRP%% %B -@unexec if [ -f %D/%%PHPBBDIR%%/config.php ]; then if [ `stat -f %%z %D/%%PHPBBDIR%%/config.php` = "0" ] ; then rm -f %D/%%PHPBBDIR%%/config.php; fi; fi +@unexec [ -s %D/%%PHPBBDIR%%/config.php ] || rm -f %D/%%PHPBBDIR%%/config.php @dirrm %%PHPBBDIR%%/styles/subsilver2/theme/images @dirrm %%PHPBBDIR%%/styles/subsilver2/theme @dirrm %%PHPBBDIR%%/styles/subsilver2/template |