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:
parent
0ba0f1db67
commit
dd07918e80
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=308115
18
UPDATING
18
UPDATING
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user