Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 May 2017 10:43:30 -0700
From:      John Baldwin <jhb@freebsd.org>
To:        Baptiste Daroussin <bapt@freebsd.org>, svn-src-head@freebsd.org
Cc:        svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   pkgbase and conf files (was Re: svn commit: r318441 - in head/etc: . cron.d)
Message-ID:  <3548472.irpQCNYL7x@ralph.baldwin.cx>
In-Reply-To: <20170519163355.rs5w3hr6dltdx7kv@ivaldir.net>
References:  <201705180625.v4I6Pd9j062495@repo.freebsd.org> <9570430.uB7Ojud3DG@ralph.baldwin.cx> <20170519163355.rs5w3hr6dltdx7kv@ivaldir.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday, May 19, 2017 06:33:55 PM Baptiste Daroussin wrote:
> On Fri, May 19, 2017 at 09:17:23AM -0700, John Baldwin wrote:
> > On Thursday, May 18, 2017 11:24:29 PM Baptiste Daroussin wrote:
> > I think an upgrade won't bring the file back necessarily (etcupdate warns you
> > that a removed file changed, but it doesn't bring it back, I think a similar
> > strategy might be sensible for pkg as well).
> 
> I need to check, I do not remember what I did here and I will certainly add a
> regression test for that to ensure this behaviour is always working as expected.

One nice "feature" to have in pkg for pkgbase would be a way to ask pkg to restore
a stock configuration file (perhaps with an option to restore it to an alternate
directory or filename?)  This would imply that packages would need to keep the
"pristine" conf files around somewhere.  This would also let you do 'pkg confdiff'
or the like (as a replacement for 'etcupdate diff')

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3548472.irpQCNYL7x>