ports/96301: [patch] Upgrade instiki to 0.11.0
pav at FreeBSD.org
Wed Apr 26 11:41:53 UTC 2006
Alastair Rankine píše v st 26. 04. 2006 v 21:31 +1000:
> >>> This port leaves one file behind when uninstalled:
> >>> /usr/local/instiki/db/production.db.sqlite3
> >>> should I add it to the pkg-plist?
> >> That is the database file for your wiki.
> >> It's user data, hence deliberately excluded from the pkg-plist.
> > So, what will we do with it? It must not be left behind.
> > I assume there is some kind of empty "default" database in there?
> > That could be safely removed, if it's not modified by the user.
> > Not having it in plist also means, that it will not be installed from
> > package.
> How can the port detect whether the database has been modified by the
> user? Or to put it another way, how would the port block the deletion
> of this file on uninstall, if the database had been modified?
> What's the usual resolution in cases like this?
I would suggest two possible solutions
1) Install an empty database as empty.db and compare with production.db
on deinstall, if the files are identical, delete both
2) Move database into /var/db/instiki where it can be left after
deinstalation without anyone complaining.
Pav Lucistnik <pav at oook.cz>
<pav at FreeBSD.org>
Some programmers are able to write FORTRAN in any language.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 187 bytes
Desc: Toto je digit?ln? podepsan? ??st zpr?vy
More information about the freebsd-ports-bugs