From 5cf14a8c3bedba7adb1d7656ed63e56e41f3ea5e Mon Sep 17 00:00:00 2001 From: Rong-En Fan Date: Thu, 19 Jul 2007 10:16:29 +0000 Subject: - Do not remove modified config files on deinstall PR: ports/114624 (use maintainer's version) Submitted by: Dima Panov Approved by: Razor (maintainer) --- www/phpbb-devel/Makefile | 3 ++- www/phpbb-devel/pkg-plist | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'www/phpbb-devel') 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%% -- cgit v1.2.3