On Oct 20, 2012, at 3:41 PM, Fred Gleason <[email protected]> wrote:

> On Oct 20, 2012, at 15:59 06, Gregg Wonderly wrote:
> 
>> It just seems like there are some fairly good heuristics that a shell script 
>> could use to, for example check for the .conf file and conf.d and the conf 
>> file having things that would be on all apache conf files, to them say hey 
>> is this your apache install dir?  And if not to prompt for the path and 
>> install it where specified.
> 
> But then there are those distros (e.g. Slackware) where there is no 'conf.d/' 
> directory at all, but rather One Big Configuration File, into which the 
> necessary configuration changes must be pasted.  And I'm sure there are even 
> weirder setups out there.  I've seen Apache layouts change even across 
> different versions of the same distro.

In those cases, the right heuristic would either find the answer, or stop and 
prompt for the directory.  The fact that "make install" doesn't actually 
install something that is necessary, nor  tell the user what to do, is what 
seems to be a fixable behavior.

> Heuristics are dangerous things; by their very nature, they tend to break in 
> unforeseen ways and at unexpected times.  In the absence of a clear standard 
> such as the LSB, I think the better engineering approach is to tell 
> installers about the issue and let them handle it.  For production 
> environments, this really isn't an issue as any properly crafted package 
> installer will handle it automatically.  (For an example of how this gets 
> done on CentOS, see the spec file in the Rivendell sources).

Yes, but I'm still of the opinion that there are lot of "dependable" things 
which can be used to determine how the apache install is configured for the 
most popular and well known distros.  The odd ones, such as slackware, really 
could just use "uname" and some bits of /etc/ content to see what the 
appropriate actions are.

Sure, there's not a 100% solution, but covering 80% of the need, seems to me, 
to be a big step forward.

Gregg Wonderly

> Cheers!
> 
> 
> |-------------------------------------------------------------------------|
> | Frederick F. Gleason, Jr. |               Chief Developer               |
> |                           |               Paravel Systems               |
> |-------------------------------------------------------------------------|
> | A cynic is a person searching for an honest man, with a stolen lantern. |
> |                                     -- Edgar A. Shoaff                  |
> |-------------------------------------------------------------------------|
> 
> _______________________________________________
> Rivendell-dev mailing list
> [email protected]
> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev

_______________________________________________
Rivendell-dev mailing list
[email protected]
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev

Reply via email to