File:  [LON-CAPA] / doc / loncapafiles / webserver.piml
Revision 1.2: download - view: text, annotated - select for diffs
Sat Feb 2 12:57:10 2002 UTC (22 years, 3 months ago) by harris41
Branches: MAIN
CVS tags: HEAD
adding file testing to the appending

    1: <!-- webserver.piml -->
    2: <!-- Scott Harrison -->
    3: 
    4: <!-- $Id: webserver.piml,v 1.2 2002/02/02 12:57:10 harris41 Exp $ -->
    5: 
    6: <!--
    7: 
    8: Copyright Michigan State University Board of Trustees
    9: 
   10: This file is part of the LearningOnline Network with CAPA (LON-CAPA).
   11: 
   12: LON-CAPA is free software; you can redistribute it and/or modify
   13: it under the terms of the GNU General Public License as published by
   14: the Free Software Foundation; either version 2 of the License, or
   15: (at your option) any later version.
   16: 
   17: LON-CAPA is distributed in the hope that it will be useful,
   18: but WITHOUT ANY WARRANTY; without even the implied warranty of
   19: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   20: GNU General Public License for more details.
   21: 
   22: You should have received a copy of the GNU General Public License
   23: along with LON-CAPA; if not, write to the Free Software
   24: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   25: 
   26: /home/httpd/html/adm/gpl.txt
   27: 
   28: http://www.lon-capa.org/
   29: 
   30: -->
   31: 
   32: <!-- Default values must be defined before specific values. -->
   33: <!-- If no 'dist' attribute is specified, then it is always installed. -->
   34: <!-- If 'dist' attribute is set to  'default', then the specification. -->
   35: <!-- is accepted if an alternative distribution is not requested or not -->
   36: <!-- defined. -->
   37: 
   38: <piml>
   39: <targetroot>/abc/</targetroot>
   40: <specialnotices>
   41: <specialnotice>
   42: </specialnotice>
   43: </specialnotices>
   44: <files>
   45: <file>
   46: <target dist='default'>/etc/httpd/conf/httpd.conf</target>
   47: <note>This is always expected for any version of Apache</note>
   48: <dependencies dist='default'>
   49: /etc/httpd/conf/httpd.conf
   50: </dependencies>
   51: <perlscript mode='fg'>
   52: unless (-e "<TARGET />") {
   53: 	print 'ERROR! httpd.conf should exist! Are you missing the Apache '.
   54: 		'software package';
   55: }
   56: else {
   57: 	open OUT,"&gt;&gt;<TARGET />";
   58: 	print OUT 'Include srm.conf'."\n";
   59: 	print OUT 'Include access.conf'."\n";
   60: 	close OUT;
   61: }
   62: </perlscript>
   63: </file>
   64: <file>
   65: <target dist='default'>/etc/httpd/conf/access.conf</target>
   66: <note>This may or may not exist on a system depending on the version of
   67: Apache</note>
   68: <dependencies dist='default'>
   69: /etc/httpd/conf/access.conf
   70: </dependencies>
   71: <perlscript mode='fg'>
   72: unless (-e "<TARGET />") {
   73: 	print &lt;&lt;;
   74: WARNING! access.conf is not currently present on your system.
   75: This is either due to 
   76: * you are missing the Apache software package,
   77: * you have a newer version of Apache that does not
   78:   ordinarily install an access.conf
   79: * configuration files are installed in a directory location
   80:   different than for <TARGET />
   81: For backwards compatibility,
   82: <TARGET /> is being generated.
   83: END
   84: }
   85: open OUT,"&gt;&gt;<TARGET />";
   86: print OUT 'Include loncapa.conf'."\n";
   87: close OUT;
   88: </perlscript>
   89: </file>
   90: <file>
   91: <target dist='default'>/etc/httpd/conf/srm.conf</target>
   92: <note>This may or may not exist on a system depending on the version of
   93: Apache</note>
   94: <dependencies dist='default'>
   95: /etc/httpd/conf/srm.conf
   96: </dependencies>
   97: <perlscript mode='fg'>
   98: unless (-e "<TARGET />") {
   99: 	print &lt;&lt;;
  100: WARNING! srm.conf is not currently present on your system.
  101: This is either due to 
  102: * you are missing the Apache software package,
  103: * you have a newer version of Apache that does not
  104:   ordinarily install an srm.conf
  105: * configuration files are installed in a directory location
  106:   different than for <TARGET />
  107: For backwards compatibility,
  108: <TARGET /> is being generated.
  109: END
  110: }
  111: open OUT,"&gt;&gt;<TARGET />";
  112: print OUT 'Include loncapa.conf'."\n";
  113: close OUT;
  114: </perlscript>
  115: </file>
  116: </files>
  117: </piml>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>