From owner-svn-src-head@freebsd.org Sat May 20 09:47:34 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 4BA69D7417E; Sat, 20 May 2017 09:47:34 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1E77B1758; Sat, 20 May 2017 09:47:34 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1235) id 50ED95208; Sat, 20 May 2017 09:47:33 +0000 (UTC) Date: Sat, 20 May 2017 11:47:33 +0200 From: Baptiste Daroussin To: John Baldwin Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: pkgbase and conf files (was Re: svn commit: r318441 - in head/etc: . cron.d) Message-ID: <20170520094732.4qzvcbp2nt5cz7yb@ivaldir.net> References: <201705180625.v4I6Pd9j062495@repo.freebsd.org> <9570430.uB7Ojud3DG@ralph.baldwin.cx> <20170519163355.rs5w3hr6dltdx7kv@ivaldir.net> <3548472.irpQCNYL7x@ralph.baldwin.cx> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uzzwgxho2hksozcd" Content-Disposition: inline In-Reply-To: <3548472.irpQCNYL7x@ralph.baldwin.cx> User-Agent: NeoMutt/20170428 (1.8.2) 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: Sat, 20 May 2017 09:47:34 -0000 --uzzwgxho2hksozcd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 w= arns 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). > >=20 > > 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. >=20 > One nice "feature" to have in pkg for pkgbase would be a way to ask pkg t= o restore > a stock configuration file (perhaps with an option to restore it to an al= ternate > directory or filename?) This would imply that packages would need to kee= p 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 --uzzwgxho2hksozcd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEgOTj3suS2urGXVU3Y4mL3PG3PloFAlkgELQACgkQY4mL3PG3 PlrWVg//UD9qBFMOpPSdPda44oy9M/3nDHlU5Xh/4ificVpNz1g7qqIjNm2Fk7us 6QMLLBk+STba8yz0S25ISfGbLwObhvbh0cJOXsldOhw9jq1Ku+6K/trAwkiDebV1 /7XAdl3Xb9rPTua3XItYG2InfITKVKWY3l/p5hfMFagn8IfVItFtB9cHCXNUxt0T 4PebY5RPWiAQRBju6piPP86iiGaR9GtNBGgTPZR9eAdV5f0d6y/U8cZ4iX3pg9R6 NDHzqoHpGiR/zWqVrVqH/hdVbJ5txSfhwEYrCnnjCqKaN+akryLPVWS/Xj9Q9I5d zcmUwc+8y6KAp8o1PKujhmrsyjGfPSJg5jvAPXFs7FrUfcBjUmInTh5JqxPq+lK1 NI2B84CwjerntR6ckLZH63XE9bHxW1HP6ZlHfyxvyP66DW/tg1L2E4VRUJo7m32H 9e8UuKv3c1oh8camDC65/U7uFOgxLG+T0zP/hT63Nz4+ZlL4XBXz397GdIblmXjp Zv96BcSY3rBApToeQXmDUr0HbqImHV4TOAo7Jv2XRzXS1RIJ40iIyFJ4tnGR7Hrr D4cmuvIu6KC84niJxLWucn7KqFT4J20PdZQpfw7WR9ACKh5T7OOMGEuJ1kFZT1Oj GFl0TVm8n75me0Eqtyo1MRlV0w93GnFxn9H9J4ZPABNgf5pS0t0= =nkTU -----END PGP SIGNATURE----- --uzzwgxho2hksozcd--