pkgbase and conf files (was Re: svn commit: r318441 - in head/etc: . cron.d)

John Baldwin jhb at freebsd.org
Fri May 19 17:43:51 UTC 2017


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


More information about the svn-src-head mailing list