Date: Tue, 24 Feb 2004 15:23:16 +0000 From: Eivind Eklund <eivind@FreeBSD.org> To: Oliver Eikemeier <eikemeier@fillmore-labs.com> Cc: freebsd-arch@FreeBSD.org Subject: Re: rc.d and ports Message-ID: <20040224152316.GB3364@FreeBSD.org> In-Reply-To: <403B403C.7040701@fillmore-labs.com> References: <20040223084146.GA4202@mobile.acs-et.com> <4039D9FF.40208@fillmore-labs.com> <20040224072401.GB1125@mobile.acs-et.com> <403B206B.7000101@fillmore-labs.com> <20040224103932.GA20467@mobile.acs-et.com> <403B403C.7040701@fillmore-labs.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 24, 2004 at 01:14:52PM +0100, Oliver Eikemeier wrote: > Mike Makonnen wrote: > >>them > >>to go away with the port. Nobody (and especially not ports) should edit > >>whatever/defaults/rc.conf, and how would I otherwise cope with the > >>situation > >>that default flags may change? > > > >Then the ports can use /usr/local/etc/rc.conf.d. When the port is deleted > >it can just delete the appropriate conf file in that directory without the > >need to edit any files. > > ${PREFIX}/etc/rc.conf.d files may be edited by the user, so you can't simply > delete them. Yes, we can. These are defaults *as supplied from FreeBSD*, and editing them is an error. I think that we might want a more telling name (${PREFIX}/etc/defaults/rc.conf.d/ or ${PREFIX}/etc/rc.conf.defaults/ - I prefer the former). If we want to be really friendly, we might also want to allow per-port override files, make sure the defaults are suitably labelled inside each file, and set them schg so the user have to work really hard to shoot himself in the foot. But if we use default files, we definately can and should delete them when we wipe the port. The other alternative is to use a full merge system for port config files. I've put up a draft of a design for extending etcmerge to support this at http://people.freebsd.org/~eivind/etcmerge.ports However, having parts of the system come and go at will is a really hard job for any config file manager. Eivind.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040224152316.GB3364>