Lines 1-6
Link Here
|
1 |
--- Makefile.tmpl.orig Thu Jan 7 05:50:45 1999 |
1 |
--- Makefile.tmpl.orig Mon Mar 15 18:38:46 1999 |
2 |
+++ Makefile.tmpl Fri Jan 22 22:24:16 1999 |
2 |
+++ Makefile.tmpl Sat Apr 3 15:25:47 1999 |
3 |
@@ -110,6 +110,7 @@ |
3 |
@@ -113,13 +113,14 @@ |
|
|
4 |
sysconfdir = @sysconfdir@ |
5 |
datadir = @datadir@ |
6 |
iconsdir = $(datadir)/icons |
7 |
-htdocsdir = $(datadir)/htdocs |
8 |
+htdocsdir = $(datadir)/data |
9 |
cgidir = $(datadir)/cgi-bin |
10 |
includedir = @includedir@ |
11 |
localstatedir = @localstatedir@ |
4 |
runtimedir = @runtimedir@ |
12 |
runtimedir = @runtimedir@ |
5 |
logfiledir = @logfiledir@ |
13 |
logfiledir = @logfiledir@ |
6 |
proxycachedir = @proxycachedir@ |
14 |
proxycachedir = @proxycachedir@ |
Lines 8-34
Link Here
|
8 |
|
16 |
|
9 |
libexecdir_relative = @libexecdir_relative@ |
17 |
libexecdir_relative = @libexecdir_relative@ |
10 |
|
18 |
|
11 |
@@ -124,6 +125,7 @@ |
19 |
@@ -134,6 +135,7 @@ |
12 |
suexec_safepath = @suexec_safepath@ |
20 |
suexec_safepath = @suexec_safepath@ |
13 |
|
21 |
|
14 |
# some substituted configuration parameters |
22 |
# some substituted configuration parameters |
15 |
+conf_user = @conf_user@ |
23 |
+conf_user = @conf_user@ |
16 |
conf_group = @conf_group@ |
24 |
conf_group = @conf_group@ |
17 |
conf_port = @conf_port@ |
25 |
conf_port = @conf_port@ |
18 |
conf_serveradmin = @conf_serveradmin@ |
26 |
conf_serveradmin = @conf_serveradmin@ |
19 |
@@ -239,9 +241,9 @@ |
27 |
@@ -249,9 +251,9 @@ |
20 |
$(MKDIR) $(root)$(mandir)/man1 |
28 |
$(MKDIR) $(root)$(mandir)/man1 |
21 |
$(MKDIR) $(root)$(mandir)/man8 |
29 |
$(MKDIR) $(root)$(mandir)/man8 |
22 |
$(MKDIR) $(root)$(sysconfdir) |
30 |
$(MKDIR) $(root)$(sysconfdir) |
23 |
- $(MKDIR) $(root)$(datadir)/htdocs |
31 |
- $(MKDIR) $(root)$(htdocsdir) |
24 |
+ $(MKDIR) $(root)$(doc_prefix) |
32 |
+ $(MKDIR) $(root)$(doc_prefix) |
25 |
$(MKDIR) $(root)$(datadir)/icons |
33 |
$(MKDIR) $(root)$(iconsdir) |
26 |
- $(MKDIR) $(root)$(datadir)/cgi-bin |
34 |
- $(MKDIR) $(root)$(cgidir) |
27 |
+ $(MKDIR) $(root)$(datadir)/cgi-bin.default |
35 |
+ $(MKDIR) $(root)$(cgidir).default |
28 |
$(MKDIR) $(root)$(includedir) |
36 |
$(MKDIR) $(root)$(includedir) |
29 |
$(MKDIR) $(root)$(runtimedir) |
37 |
$(MKDIR) $(root)$(runtimedir) |
30 |
$(MKDIR) $(root)$(logfiledir) |
38 |
$(MKDIR) $(root)$(logfiledir) |
31 |
@@ -278,9 +280,11 @@ |
39 |
@@ -294,9 +296,11 @@ |
32 |
file=`echo $${mod} | sed -e 's;^.*/\([^/]*\);\1;'`; \ |
40 |
file=`echo $${mod} | sed -e 's;^.*/\([^/]*\);\1;'`; \ |
33 |
echo "$(INSTALL_DSO) $(TOP)/$(SRC)/$${mod} $(root)$(libexecdir)/$${file}"; \ |
41 |
echo "$(INSTALL_DSO) $(TOP)/$(SRC)/$${mod} $(root)$(libexecdir)/$${file}"; \ |
34 |
$(INSTALL_DSO) $(TOP)/$(SRC)/$${mod} $(root)$(libexecdir)/$${file}; \ |
42 |
$(INSTALL_DSO) $(TOP)/$(SRC)/$${mod} $(root)$(libexecdir)/$${file}; \ |
Lines 43-49
Link Here
|
43 |
done; \ |
51 |
done; \ |
44 |
echo "" >>$(SRC)/.apaci.install.conf; \ |
52 |
echo "" >>$(SRC)/.apaci.install.conf; \ |
45 |
echo "# Reconstruction of the complete module list from all available modules" >>$(SRC)/.apaci.install.conf; \ |
53 |
echo "# Reconstruction of the complete module list from all available modules" >>$(SRC)/.apaci.install.conf; \ |
46 |
@@ -288,6 +292,7 @@ |
54 |
@@ -304,6 +308,7 @@ |
47 |
echo "# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]" >>$(SRC)/.apaci.install.conf; \ |
55 |
echo "# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]" >>$(SRC)/.apaci.install.conf; \ |
48 |
echo "ClearModuleList" >>$(SRC)/.apaci.install.conf; \ |
56 |
echo "ClearModuleList" >>$(SRC)/.apaci.install.conf; \ |
49 |
egrep "^[ ]*(Add|Shared)Module" $(SRC)/Configuration.apaci |\ |
57 |
egrep "^[ ]*(Add|Shared)Module" $(SRC)/Configuration.apaci |\ |
Lines 51-122
Link Here
|
51 |
sed -e 's:SharedModule:AddModule:' \ |
59 |
sed -e 's:SharedModule:AddModule:' \ |
52 |
-e 's:modules/[^/]*/::' \ |
60 |
-e 's:modules/[^/]*/::' \ |
53 |
-e 's:[ ]lib: mod_:' \ |
61 |
-e 's:[ ]lib: mod_:' \ |
54 |
@@ -308,6 +313,7 @@ |
62 |
@@ -324,6 +329,7 @@ |
55 |
echo "$(INSTALL_SCRIPT) $(TOP)/$(SRC)/support/apachectl[*] $(root)$(sbindir)/$${apachectl}"; \ |
63 |
echo "$(INSTALL_SCRIPT) $(TOP)/$(SRC)/support/apachectl[*] $(root)$(sbindir)/$${apachectl}"; \ |
56 |
sed -e 's;PIDFILE=.*;PIDFILE=$(runtimedir)/$(TARGET).pid;' \ |
64 |
sed -e 's;PIDFILE=.*;PIDFILE=$(runtimedir)/$(TARGET).pid;' \ |
57 |
-e 's;HTTPD=.*;HTTPD=$(sbindir)/$(TARGET);' \ |
65 |
-e 's;HTTPD=.*;HTTPD=$(sbindir)/$(TARGET);' \ |
58 |
+ -e 's;LD_LIBRARY_PATH=.*;LD_LIBRARY_PATH=/usr/lib\:$(prefix)/lib;' \ |
66 |
+ -e 's;LD_LIBRARY_PATH=.*;LD_LIBRARY_PATH=/usr/lib\:$(prefix)/lib;' \ |
59 |
< $(TOP)/$(SRC)/support/apachectl > $(TOP)/$(SRC)/.apaci.install.tmp && \ |
67 |
< $(TOP)/$(SRC)/support/apachectl > $(TOP)/$(SRC)/.apaci.install.tmp && \ |
60 |
$(INSTALL_SCRIPT) $(TOP)/$(SRC)/.apaci.install.tmp $(root)$(sbindir)/$${apachectl}; \ |
68 |
$(INSTALL_SCRIPT) $(TOP)/$(SRC)/.apaci.install.tmp $(root)$(sbindir)/$${apachectl}; \ |
61 |
echo "$(INSTALL_DATA) $(TOP)/$(SRC)/support/apachectl.1 $(root)$(mandir)/man1/$${apachectl}.1"; \ |
69 |
echo "$(INSTALL_DATA) $(TOP)/$(SRC)/support/apachectl.8 $(root)$(mandir)/man8/$${apachectl}.8"; \ |
62 |
@@ -363,25 +369,32 @@ |
70 |
@@ -379,25 +385,32 @@ |
63 |
# icons and distributed CGI scripts. |
71 |
# icons and distributed CGI scripts. |
64 |
install-data: |
72 |
install-data: |
65 |
@echo "===> [data: Installing initial data files]" |
73 |
@echo "===> [data: Installing initial data files]" |
66 |
- -@if [ -f $(root)$(datadir)/htdocs/index.html ]; then \ |
74 |
- -@if [ -f $(root)$(htdocsdir)/index.html ]; then \ |
67 |
- echo "[PRESERVING EXISTING DATA SUBDIR: $(root)$(datadir)/htdocs/]"; \ |
75 |
- echo "[PRESERVING EXISTING DATA SUBDIR: $(root)$(htdocsdir)/]"; \ |
68 |
- else \ |
76 |
- else \ |
69 |
- echo "Copying tree $(TOP)/htdocs/ -> $(root)$(datadir)/htdocs/"; \ |
77 |
- echo "Copying tree $(TOP)/htdocs/ -> $(root)$(htdocsdir)/"; \ |
70 |
+# -@if [ -f $(root)$(datadir)/htdocs/index.html ]; then \ |
78 |
+# -@if [ -f $(root)$(htdocsdir)/index.html ]; then \ |
71 |
+# echo "[PRESERVING EXISTING DATA SUBDIR: $(root)$(datadir)/htdocs/]"; \ |
79 |
+# echo "[PRESERVING EXISTING DATA SUBDIR: $(root)$(htdocsdir)/]"; \ |
72 |
+# else \ |
80 |
+# else \ |
73 |
+ echo "Copying tree $(TOP)/htdocs/ -> $(root)$(doc_prefix)/"; \ |
81 |
+ echo "Copying tree $(TOP)/htdocs/ -> $(root)$(doc_prefix)/"; \ |
74 |
(cd $(TOP)/htdocs/ && $(TAR) -hcf - *) |\ |
82 |
(cd $(TOP)/htdocs/ && $(TAR) $(TAROPT) - *) |\ |
75 |
- (cd $(root)$(datadir)/htdocs/ && $(TAR) -xf -); \ |
83 |
- (cd $(root)$(htdocsdir)/ && $(TAR) -xf -); \ |
76 |
- find $(root)$(datadir)/htdocs/ -type d -exec chmod a+rx {} \; ; \ |
84 |
- find $(root)$(htdocsdir)/ -type d -exec chmod a+rx {} \; ; \ |
77 |
- find $(root)$(datadir)/htdocs/ -type f -exec chmod a+r {} \; ; \ |
85 |
- find $(root)$(htdocsdir)/ -type f -exec chmod a+r {} \; ; \ |
78 |
+ (cd $(root)$(doc_prefix) && $(TAR) -xf -); \ |
86 |
+ (cd $(root)$(doc_prefix)/ && $(TAR) -xf -); \ |
79 |
+ find $(root)$(doc_prefix) -type d -exec chmod a+rx {} \; ; \ |
87 |
+ find $(root)$(doc_prefix)/ -type d -exec chmod a+rx {} \; ; \ |
80 |
+ find $(root)$(doc_prefix) -type f -exec chmod a+r {} \; ; \ |
88 |
+ find $(root)$(doc_prefix)/ -type f -exec chmod a+r {} \; ; \ |
81 |
+# fi |
89 |
+# fi |
82 |
+ if [ ! -d $(root)$(datadir)/data ]; then \ |
90 |
+ if [ ! -d $(root)$(htdocsdir) ]; then \ |
83 |
+ $(CP) -rp $(root)$(doc_prefix) $(root)$(datadir)/data; \ |
91 |
+ $(CP) -rp $(root)$(doc_prefix) $(root)$(htdocsdir); \ |
84 |
fi |
92 |
fi |
85 |
- -@if [ -f $(root)$(datadir)/cgi-bin/printenv ]; then \ |
93 |
- -@if [ -f $(root)$(cgidir)/printenv ]; then \ |
86 |
- echo "[PRESERVING EXISTING DATA SUBDIR: $(root)$(datadir)/cgi-bin/]"; \ |
94 |
- echo "[PRESERVING EXISTING DATA SUBDIR: $(root)$(cgidir)/]"; \ |
87 |
- else \ |
95 |
- else \ |
88 |
+ $(LN) -sf $(root)$(doc_prefix) $(root)$(datadir)/data.default |
96 |
+ $(LN) -s $(root)$(doc_prefix) $(root)$(htdocsdir).default |
89 |
+# -@if [ -f $(root)$(datadir)/cgi-bin/printenv ]; then \ |
97 |
+# -@if [ -f $(root)$(cgidir)/printenv ]; then \ |
90 |
+# echo "[PRESERVING EXISTING DATA SUBDIR: $(root)$(datadir)/cgi-bin/]"; \ |
98 |
+# echo "[PRESERVING EXISTING DATA SUBDIR: $(root)$(cgidir)/]"; \ |
91 |
+# else \ |
99 |
+# else \ |
92 |
for script in printenv test-cgi; do \ |
100 |
for script in printenv test-cgi; do \ |
93 |
cat $(TOP)/cgi-bin/$${script} |\ |
101 |
cat $(TOP)/cgi-bin/$${script} |\ |
94 |
sed -e 's;^#!/.*perl;#!$(PERL);' \ |
102 |
sed -e 's;^#!/.*perl;#!$(PERL);' \ |
95 |
> $(TOP)/$(SRC)/.apaci.install.tmp; \ |
103 |
> $(TOP)/$(SRC)/.apaci.install.tmp; \ |
96 |
- echo "$(INSTALL_DATA) $(TOP)/conf/$${script}[*] $(root)$(datadir)/cgi-bin/$${script}"; \ |
104 |
- echo "$(INSTALL_DATA) $(TOP)/conf/$${script}[*] $(root)$(cgidir)/$${script}"; \ |
97 |
- $(INSTALL_DATA) $(TOP)/$(SRC)/.apaci.install.tmp $(root)$(datadir)/cgi-bin/$${script}; \ |
105 |
- $(INSTALL_DATA) $(TOP)/$(SRC)/.apaci.install.tmp $(root)$(cgidir)/$${script}; \ |
98 |
- done; \ |
106 |
+ echo "$(INSTALL_DATA) $(TOP)/conf/$${script}[*] $(root)$(cgidir).default/$${script}"; \ |
99 |
+ echo "$(INSTALL_DATA) $(TOP)/conf/$${script}[*] $(root)$(datadir)/cgi-bin.default/$${script}"; \ |
107 |
+ $(INSTALL_DATA) $(TOP)/$(SRC)/.apaci.install.tmp $(root)$(cgidir).default/$${script}; \ |
100 |
+ $(INSTALL_DATA) $(TOP)/$(SRC)/.apaci.install.tmp $(root)$(datadir)/cgi-bin.default/$${script}; \ |
108 |
done; \ |
101 |
+ done; |
|
|
102 |
+# fi |
109 |
+# fi |
103 |
+ if [ ! -d $(root)$(datadir)/cgi-bin ]; then \ |
110 |
+ if [ ! -d $(root)$(cgidir) ]; then \ |
104 |
+ $(LN) -sf $(root)$(datadir)/cgi-bin.default $(root)$(datadir)/cgi-bin; \ |
111 |
+ $(CP) -rp $(root)$(cgidir).default $(root)$(cgidir); \ |
105 |
fi |
112 |
fi |
106 |
@echo "Copying tree $(TOP)/icons/ -> $(root)$(datadir)/icons/"; \ |
113 |
@echo "Copying tree $(TOP)/icons/ -> $(root)$(iconsdir)/"; \ |
107 |
(cd $(TOP)/icons/ && $(TAR) -hcf - *) |\ |
114 |
(cd $(TOP)/icons/ && $(TAR) $(TAROPT) - *) |\ |
108 |
@@ -411,20 +424,23 @@ |
115 |
@@ -431,17 +444,20 @@ |
109 |
echo ""; \ |
116 |
-e 's;@@ServerRoot@@/icons;$(iconsdir);' \ |
110 |
cat $(TOP)/conf/$${conf}-dist ) |\ |
117 |
-e 's;@@ServerRoot@@/cgi-bin;$(cgidir);' \ |
111 |
sed -e '/# LoadModule/r $(TOP)/$(SRC)/.apaci.install.conf' \ |
|
|
112 |
- -e 's;@@ServerRoot@@/htdocs;$(datadir)/htdocs;' \ |
113 |
+ -e 's;@@ServerRoot@@/htdocs;$(datadir)/data;' \ |
114 |
-e 's;@@ServerRoot@@/icons;$(datadir)/icons;' \ |
115 |
-e 's;@@ServerRoot@@/cgi-bin;$(datadir)/cgi-bin;' \ |
116 |
-e 's;@@ServerRoot@@/proxy;$(proxycachedir);' \ |
118 |
-e 's;@@ServerRoot@@/proxy;$(proxycachedir);' \ |
117 |
+ -e 's;@@ServerRoot@@/srm.conf;$(sysconfdir)/srm.conf;' \ |
119 |
+ -e 's;@@ServerRoot@@/srm.conf;$(sysconfdir)/srm.conf;' \ |
118 |
+ -e 's;@@ServerRoot@@/access.conf;$(sysconfdir)/access.conf;' \ |
120 |
+ -e 's;@@ServerRoot@@/access.conf;$(sysconfdir)/access.conf;' \ |
119 |
-e 's;@@ServerRoot@@;$(prefix);g' \ |
121 |
-e 's;@@ServerRoot@@;$(prefix);g' \ |
|
|
122 |
-e 's;httpd.conf;$(TARGET).conf;' \ |
120 |
-e 's;logs/accept.lock;$(runtimedir)/$(TARGET).lock;' \ |
123 |
-e 's;logs/accept.lock;$(runtimedir)/$(TARGET).lock;' \ |
121 |
-e 's;logs/apache_runtime_status;$(runtimedir)/$(TARGET).scoreboard;' \ |
124 |
-e 's;logs/apache_runtime_status;$(runtimedir)/$(TARGET).scoreboard;' \ |
122 |
-e 's;logs/httpd.pid;$(runtimedir)/$(TARGET).pid;' \ |
125 |
-e 's;logs/httpd.pid;$(runtimedir)/$(TARGET).pid;' \ |