version 1.1, 2002/01/29 10:32:44
|
version 1.9, 2002/05/12 19:02:18
|
Line 1
|
Line 1
|
|
<!DOCTYPE piml PUBLIC "-//TUX/DTD piml 1.0 Final//EN" |
|
"http://lpml.sourceforge.net/DTD/piml.dtd"> |
<!-- webserver.piml --> |
<!-- webserver.piml --> |
<!-- Scott Harrison --> |
<!-- Scott Harrison --> |
|
|
Line 37 http://www.lon-capa.org/
|
Line 39 http://www.lon-capa.org/
|
|
|
<piml> |
<piml> |
<targetroot>/</targetroot> |
<targetroot>/</targetroot> |
|
<specialnotices> |
|
<specialnotice> |
|
</specialnotice> |
|
</specialnotices> |
<files> |
<files> |
<file> |
<file> |
<target dist='default'>/etc/httpd/conf/httpd.conf</target> |
<target dist='default'>/etc/httpd/conf/httpd.conf</target> |
Line 50 unless (-e "<TARGET />") {
|
Line 56 unless (-e "<TARGET />") {
|
'software package'; |
'software package'; |
} |
} |
else { |
else { |
|
$flag=0; |
|
open IN, "<<TARGET />"; |
|
while (<IN>) { if (/^\s*Include\s+conf\/srm.conf/) { $flag=1; } } |
|
close IN; |
|
unless ($flag==1) { |
open OUT,">><TARGET />"; |
open OUT,">><TARGET />"; |
print OUT 'Include srm.conf'."\n"; |
print OUT 'Include conf/srm.conf'."\n"; |
print OUT 'Include access.conf'."\n"; |
|
close OUT; |
close OUT; |
|
} |
|
$flag=0; |
|
open IN, "<<TARGET />"; |
|
while (<IN>) { if (/^\s*Include\s+conf\/access.conf/) { $flag=1; } } |
|
close IN; |
|
unless ($flag==1) { |
|
open OUT,">><TARGET />"; |
|
print OUT 'Include conf/access.conf'."\n"; |
|
close OUT; |
|
} |
|
my $eflag=0; |
|
$flag=0; |
|
open IN, "<<TARGET />"; |
|
while (<IN>) { |
|
if (/^\s*Include\s+conf\/loncapa_apache.conf/) { |
|
$flag=1; |
|
} |
|
} |
|
close IN; |
|
unless ($flag==1) { |
|
open OUT,">><TARGET />"; |
|
print OUT 'Include conf/loncapa_apache.conf'."\n"; |
|
close OUT; |
|
} |
|
$flag=0; |
|
open IN, "<<TARGET />"; |
|
while (<IN>) { |
|
if (/^\s*Include\s+conf\/loncapa.conf/) { |
|
$flag=1; |
|
} |
|
} |
|
close IN; |
|
unless ($flag==1) { |
|
open OUT,">><TARGET />"; |
|
print OUT 'Include conf/loncapa.conf'."\n"; |
|
close OUT; |
|
} |
} |
} |
</perlscript> |
</perlscript> |
</file> |
</file> |
Line 61 else {
|
Line 108 else {
|
<target dist='default'>/etc/httpd/conf/access.conf</target> |
<target dist='default'>/etc/httpd/conf/access.conf</target> |
<note>This may or may not exist on a system depending on the version of |
<note>This may or may not exist on a system depending on the version of |
Apache</note> |
Apache</note> |
<status>unverified</status> |
|
<dependencies dist='default'> |
<dependencies dist='default'> |
/etc/httpd/conf/access.conf |
/etc/httpd/conf/access.conf |
</dependencies> |
</dependencies> |
<perlscript mode='fg'> |
<perlscript mode='fg'> |
|
unless (-e "<TARGET />") { |
|
print <<END; |
|
WARNING! access.conf is not currently present on your system. |
|
This is either due to |
|
* you are missing the Apache software package, |
|
* you have a newer version of Apache that does not |
|
ordinarily install an access.conf |
|
* configuration files are installed in a directory location |
|
different than for <TARGET /> |
|
For backwards compatibility, |
|
<TARGET /> is being generated. |
|
END |
|
} |
|
my $flag=0; |
|
open IN, "<<TARGET />"; |
|
while (<IN>) { if (/^\s*Include\s+conf\/loncapa_apache.conf/) |
|
{ $flag=1; } } |
|
close IN; |
|
unless ($flag==1) { |
open OUT,">><TARGET />"; |
open OUT,">><TARGET />"; |
print OUT 'Include loncapa.conf'."\n"; |
print OUT 'Include conf/loncapa_apache.conf'."\n"; |
close OUT; |
close OUT; |
|
$flag=0; |
|
open IN, "<<TARGET />"; |
|
while (<IN>) { if (/^\s*Include\s+conf\/loncapa.conf/) { $flag=1; } } |
|
close IN; |
|
unless ($flag==1) { |
|
open OUT,">><TARGET />"; |
|
print OUT 'Include conf/loncapa.conf'."\n"; |
|
close OUT; |
|
} |
</perlscript> |
</perlscript> |
</file> |
</file> |
<file> |
<file> |
<target dist='default'>/etc/httpd/conf/srm.conf</target> |
<target dist='default'>/etc/httpd/conf/srm.conf</target> |
<note>This may or may not exist on a system depending on the version of |
<note>This may or may not exist on a system depending on the version of |
Apache</note> |
Apache</note> |
<status>unverified</status> |
|
<dependencies dist='default'> |
<dependencies dist='default'> |
/etc/httpd/conf/srm.conf |
/etc/httpd/conf/srm.conf |
</dependencies> |
</dependencies> |
<perlscript mode='fg'> |
<perlscript mode='fg'> |
|
unless (-e "<TARGET />") { |
|
print <<END; |
|
WARNING! srm.conf is not currently present on your system. |
|
This is either due to |
|
* you are missing the Apache software package, |
|
* you have a newer version of Apache that does not |
|
ordinarily install an srm.conf |
|
* configuration files are installed in a directory location |
|
different than for <TARGET /> |
|
For backwards compatibility, |
|
<TARGET /> is being generated. |
|
END |
|
} |
|
my $flag=0; |
|
open IN, "<<TARGET />"; |
|
while (<IN>) { if (/^\s*Include\s+conf\/loncapa_apache.conf/) |
|
{ $flag=1; } } |
|
close IN; |
|
unless ($flag==1) { |
|
open OUT,">><TARGET />"; |
|
print OUT 'Include conf/loncapa_apache.conf'."\n"; |
|
close OUT; |
|
$flag=0; |
|
open IN, "<<TARGET />"; |
|
while (<IN>) { if (/^\s*Include\s+conf\/loncapa.conf/) { $flag=1; } } |
|
close IN; |
|
unless ($flag==1) { |
open OUT,">><TARGET />"; |
open OUT,">><TARGET />"; |
print OUT 'Include loncapa.conf'."\n"; |
print OUT 'Include conf/loncapa.conf'."\n"; |
close OUT; |
close OUT; |
|
} |
</perlscript> |
</perlscript> |
</file> |
</file> |
</files> |
</files> |