This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: The purpose of /etc/default ?


Brian Dessent <brian-Uo+tbPwr0tHR7s880joybQ@public.gmane.org> writes:

> Jari Aalto wrote:
>> Would it be better to reserve whole /etc off limits and make it user's
>> territory. Perhaps the defaults would be better stored under the
>> individual packages, like in
>> 
>>     /share/<package>/defaults
>> 
>> Or along with the documentation? 
>> 
>>     /usr/share/doc/<package>/{examples | defaults}/
>
> Putting them in /usr/share/doc/package-<VER>/ is just clumsy because
> then you have to use scripting to determine the right <VER> which
> changes with each package version.  It's so much simpler for the
> postinstall/preremove 

In a sense, each package install may potentially carry new verion of
the default configuration and keeping it along with package would then
be clean. IT just requires little scripting to determine
/usr/share/doc/package-<VER>/, but it's not tat hard.

> if the location is a constant. /usr/share/package/defaults/file.conf
> would work though.

This would be better alternative than the current /etc

> But, there is already an established precedent for unpacking default
> config files in /etc/defaults -- I count 15 existing packages that use
> this directory.  Since it looks like there is no definitive standard for
> this kind of thing one way or the other, I can't see any real reason for
> redoing all that work and moving them elsewhere other than just to be
> pedantic.
> (FHS) and in the case of examples it's not something the user would
> necessarily care about.  But I still don't see a compelling need to move
> them.

The issue of /etc/defaults has been gone unnoticed, so we can always
refactor the situation. Taking your word on 15 packages doesn't sound
like big transition when it doesn't have to be immediate.

How does Redhat, Suse, Madrive, Slackware treat the /etc ?

Jari



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]