Don't clobber configuration files if reinstalled.

No PORTREVISION bump, because otherwise many will blindly update and possibly
lose everything.  Hopefully people will read UPDATING before the next update!

PR:		ports/173238
PR:		ports/173233
Submitted by:	crees
Approved by:	kevlo (maintainer)
Feature safe:	yes
This commit is contained in:
Chris Rees 2012-12-02 19:32:48 +00:00
parent 0ba0f1db67
commit dd07918e80
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=308115
2 changed files with 24 additions and 4 deletions

View File

@ -5,6 +5,24 @@ they are unavoidable.
You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades.
20121202:
AFFECTS: Users of www/owncloud
AUTHOR: crees@FreeBSD.org
www/owncloud includes the entire WWWDIR directory structure in pkg-plist.
This means that if you upgrade it, your config files are added to pkg-plist,
and are then removed on the next deinstall.
This issue has been fixed, but you must back up your install of owncloud and
reinstall to avoid data loss;
# cd /usr/ports/www/owncloud
# tar cfC /tmp/owncloud.tar `make -VWWWDIR` .
# make deinstall
# tar xfC /tmp/owncloud.tar `make -VWWWDIR`
# make install clean && rm /tmp/owncloud.tar
20121201:
AFFECTS: Users of www/typo3
AUTHOR: Helmut Ritter <freebsd-ports@charlieroot.de>

View File

@ -30,9 +30,11 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
@${FIND} -s -d ${WWWDIR} -type f -print | \
${SED} -e "s#${PREFIX}/##g" >> ${TMPPLIST}
@${FIND} -s -d ${WWWDIR} -type d -print | \
${SED} -E -e "s#${PREFIX}/#@dirrm #g" >> ${TMPPLIST}
@cd ${WRKSRC} && \
${FIND} -s -d . -type f -print | \
${SED} -e "s#^\.#${WWWDIR_REL}#" >> ${TMPPLIST}
@cd ${WRKSRC} && \
${FIND} -s -d . -type d -print | \
${SED} -e "s#^\.#@dirrm ${WWWDIR_REL}#" >> ${TMPPLIST}
.include <bsd.port.mk>