From owner-svn-src-head@freebsd.org Fri May 19 17:43:51 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6D97DD7410B; Fri, 19 May 2017 17:43:51 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A4B649CB; Fri, 19 May 2017 17:43:50 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id C888F10A87D; Fri, 19 May 2017 13:43:42 -0400 (EDT) From: John Baldwin To: Baptiste Daroussin , 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) Date: Fri, 19 May 2017 10:43:30 -0700 Message-ID: <3548472.irpQCNYL7x@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.0-STABLE; KDE/4.14.10; amd64; ; ) In-Reply-To: <20170519163355.rs5w3hr6dltdx7kv@ivaldir.net> References: <201705180625.v4I6Pd9j062495@repo.freebsd.org> <9570430.uB7Ojud3DG@ralph.baldwin.cx> <20170519163355.rs5w3hr6dltdx7kv@ivaldir.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Fri, 19 May 2017 13:43:42 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 May 2017 17:43:51 -0000 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