aboutsummaryrefslogtreecommitdiff
path: root/www/phpbb-devel
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2007-07-19 10:16:29 +0000
committerRong-En Fan <rafan@FreeBSD.org>2007-07-19 10:16:29 +0000
commit5cf14a8c3bedba7adb1d7656ed63e56e41f3ea5e (patch)
treec2331dc8f96100b624a43393eb2ffcb88129becc /www/phpbb-devel
parent1b5d8fb0136c92276917aecb19fdf864a12f254a (diff)
downloadports-5cf14a8c3bedba7adb1d7656ed63e56e41f3ea5e.tar.gz
ports-5cf14a8c3bedba7adb1d7656ed63e56e41f3ea5e.zip
Notes
Diffstat (limited to 'www/phpbb-devel')
-rw-r--r--www/phpbb-devel/Makefile3
-rw-r--r--www/phpbb-devel/pkg-plist5
2 files changed, 5 insertions, 3 deletions
diff --git a/www/phpbb-devel/Makefile b/www/phpbb-devel/Makefile
index 6ee1050fcffd..0f840b3ffcfc 100644
--- a/www/phpbb-devel/Makefile
+++ b/www/phpbb-devel/Makefile
@@ -55,7 +55,8 @@ pre-everything::
do-install:
@ ${MKDIR} -m 0775 ${PREFIX}/${PHPBBDIR}
- @ cd ${WRKSRC} && ${FIND} . -print | ${TAR} cTf - - | ${TAR} xUCf ${PREFIX}/${PHPBBDIR} -
+ @ cd ${WRKSRC} && ${FIND} . ! -name config.php ! -name . -print | ${TAR} cTf - - | ${TAR} xUCf ${PREFIX}/${PHPBBDIR} -
+ @ ${TOUCH} ${PREFIX}/${PHPBBDIR}/config.php
@ ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${PHPBBDIR}
post-install:
diff --git a/www/phpbb-devel/pkg-plist b/www/phpbb-devel/pkg-plist
index 32f673338fcf..cbcbc44971a0 100644
--- a/www/phpbb-devel/pkg-plist
+++ b/www/phpbb-devel/pkg-plist
@@ -126,7 +126,6 @@
%%PHPBBDIR%%/cache/.htaccess
%%PHPBBDIR%%/cache/index.htm
%%PHPBBDIR%%/common.php
-%%PHPBBDIR%%/config.php
%%PHPBBDIR%%/cron.php
%%PHPBBDIR%%/docs/AUTHORS
%%PHPBBDIR%%/docs/CHANGELOG.html
@@ -909,7 +908,9 @@
%%PHPBBDIR%%/viewforum.php
%%PHPBBDIR%%/viewonline.php
%%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
@dirrm %%PHPBBDIR%%/styles/subsilver2/theme/images
@dirrm %%PHPBBDIR%%/styles/subsilver2/theme
@dirrm %%PHPBBDIR%%/styles/subsilver2/template
@@ -963,5 +964,5 @@
@dirrm %%PHPBBDIR%%/adm/style
@dirrm %%PHPBBDIR%%/adm/images
@dirrm %%PHPBBDIR%%/adm
-@dirrm %%PHPBBDIR%%
+@dirrmtry %%PHPBBDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%