Date: Thu, 3 Jan 2013 13:12:43 +0100 From: Fabian Keil <freebsd-listen@fabiankeil.de> To: freebsd-ports@freebsd.org Cc: Scot Hetzel <swhetzel@gmail.com>, Miroslav Lachman <000.fbsd@quip.cz> Subject: Re: What is policy about auto-editing config files on port install / deinstall? Message-ID: <20130103131243.043c47cf@fabiankeil.de> In-Reply-To: <CACdU%2Bf9WKAsLZHqHMZKtgGoBRL%2BR9do0qfTL0d_c_8_e6Tb4bw@mail.gmail.com> References: <50E49A73.2070008@quip.cz> <CACdU%2Bf9WKAsLZHqHMZKtgGoBRL%2BR9do0qfTL0d_c_8_e6Tb4bw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/9cmteYDjLkejChhtzcAd9JC Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Scot Hetzel <swhetzel@gmail.com> wrote: > On Wed, Jan 2, 2013 at 2:37 PM, Miroslav Lachman <000.fbsd@quip.cz> wrote: > > Is somewhere written policy or portmgr recommendation about ports behav= ior > > on install / deinstall? My impression is that every maintainer has her own undocumented policy although the approaches taken could be grouped into a few categories. > > I am talking about some ports doing "nasty" things. > > > > Some ports are stopping services on deinstall, some not. >=20 > I prefer that when a port is uninstalled, that the service is stopped. As long as it is optional and doesn't happen automatically I could live with that. At least to me "uninstalling a port" (with pkg or pkg_delete) means removing the files it installed and does not necessary imply "also kill whatever process is related to these files". > If it isn't stopped, it could pose a security risk to the system at a > later time. Stopping a service can pose a security risk as well, so I don't think that's a good argument as it depends on the port. > > Some ports are editing "my config files" on deinstall, so even on upgra= de > > procedure I must check if port did some changes before I can restart ta= rget > > daemon. > > > Most ports don't edit the config files as they install the original > config file to a different name. In my opinion ports shouldn't mess with user-modified files unless they properly parse them and can be expected not to break them. And even then I don't think it should be done automatically without user interaction. I believe that's currently up to the maintainer as well, though. Fabian --Sig_/9cmteYDjLkejChhtzcAd9JC Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlDldb4ACgkQBYqIVf93VJ2zogCgs7L1xHC9EeDNgUj5+QUqNUoO lfwAn17V/D7Uh6Yna2Wq7qDIZy3lApfc =gelQ -----END PGP SIGNATURE----- --Sig_/9cmteYDjLkejChhtzcAd9JC--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130103131243.043c47cf>