Subject: Re: 'make update'
To: Wayne Cuddy <firstname.lastname@example.org>
From: Frederick Bruckman <email@example.com>
Date: 01/25/2002 09:19:08
On Fri, 25 Jan 2002, Wayne Cuddy wrote:
> On Fri, Jan 25, 2002 at 01:44:26PM +0100, Ignatios Souvatzis wrote:
> > On Thu, Jan 24, 2002 at 05:39:27PM -0500, Wayne Cuddy wrote:
> > > I see in the Readme that a 'make update' should upgrade my installed package
> > > but will in turn perform a pkg_delete followed by a pkg_add. Does this mean
> > > that configuration files that I have modified will be destroyed?
> > Depends on the package. Some are wise enough to leave configuration
> > files alone when pkg_deleteing and when pkg_adding.
> If look at the package source how could I tell if the package supports this
You wouldn't see it in the package source, unless the bug is in the
current package, too.
You can look in /var/db/pkg/<package>/+CONTENTS to see if there are any
"@unexec rm -[r]f"'s in the package. You would also see, there, if any
files in "etc" or "/etc" are registered to the package, though that
shouldn't really be a problem because files you've changed won't match
the checksum, and so won't be deleted. It's also not impossible that the
+DEINSTALL script deletes configuration files, but that would be
extremely wierd, and is highly unlikely. The main thing to worry about
is very old packages that "@unexec rm -f" their config files.