diff options
author | rafan <rafan@FreeBSD.org> | 2007-07-19 18:16:29 +0800 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2007-07-19 18:16:29 +0800 |
commit | c22fd146525f5a907e7f7302eb85a5cf442e322d (patch) | |
tree | bd2a8d38ab80425dafdc11fec5f9add3fc844749 /www/phpbb-devel | |
parent | ec3f2532a0fab613c61714424f703764f67ba71e (diff) | |
download | freebsd-ports-gnome-c22fd146525f5a907e7f7302eb85a5cf442e322d.tar.gz freebsd-ports-gnome-c22fd146525f5a907e7f7302eb85a5cf442e322d.tar.zst freebsd-ports-gnome-c22fd146525f5a907e7f7302eb85a5cf442e322d.zip |
- Do not remove modified config files on deinstall
PR: ports/114624 (use maintainer's version)
Submitted by: Dima Panov <fluffy at ael.ru>
Approved by: Razor <bg1tpt at gmail.com> (maintainer)
Diffstat (limited to 'www/phpbb-devel')
-rw-r--r-- | www/phpbb-devel/Makefile | 3 | ||||
-rw-r--r-- | www/phpbb-devel/pkg-plist | 5 |
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%% |