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

Baptiste Daroussin bapt at freebsd.org
Sat May 20 09:47:34 UTC 2017


On Fri, May 19, 2017 at 10:43:30AM -0700, John Baldwin wrote:
> 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')

Yes this is in my TODO list

Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20170520/55e5c5de/attachment.sig>


More information about the svn-src-all mailing list