httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pier Fumagalli <p...@betaversion.org>
Subject Re: [PATCH] Remove compiled-in directory names from MPM...
Date Wed, 03 Apr 2002 11:23:15 GMT
"Sander Striker" <striker@apache.org> wrote:

>> From: Pier Fumagalli [mailto:pier@betaversion.org]
>> Sent: 03 April 2002 13:09
> 
>> There are a bunch of hard-coded "logs/..." file names in HTTPD's MPM
>> directory (grep "logs/" server/mpm/*/*).
>> 
>> This patch adds a new header file (ap_config_layout.h), which contains
>> .../configure-specified layout information, and makes all those #define(s) in
>> MPM to inherit default values from what has been specified in ./configure
>> rather than hard coded server-root relative paths...
> 
> +1 for this change.  It would be nice to have all the layout specific
> stuff in one place.

Thanks Sander :) BTW, forgot a little apachectl.in patch as well...

Index: apachectl.in
===================================================================
RCS file: /home/cvspublic/httpd-2.0/support/apachectl.in,v
retrieving revision 1.10
diff -U3 -r1.10 apachectl.in
--- apachectl.in        13 Mar 2002 20:48:05 -0000      1.10
+++ apachectl.in        3 Apr 2002 11:21:18 -0000
@@ -26,14 +26,14 @@
 # --------------------                              --------------------
 # 
 # the path to your PID file
-PIDFILE=@prefix@/logs/@progname@.pid
+PIDFILE=@exp_runtimedir@/@progname@.pid
 #
 # the path to your httpd binary, including options if necessary
-HTTPD='@prefix@/bin/@progname@'
+HTTPD='@exp_bindir@/@progname@'
 #
 # pick up any necessary environment variables
-if test -f @prefix@/bin/envvars; then
-  . @prefix@/bin/envvars
+if test -f @exp_bindir@/envvars; then
+  . @exp_bindir@/envvars
 fi
 #
 # a command that outputs a formatted text version of the HTML at the


I'm rebuilding Apache 2.0 with a totally non-standard directory layout
(bundle installation on MacOS/X, all paths are screwed up! :), if I catch
something else, will let you know...

    Pier


Mime
View raw message