File:  [LON-CAPA] / doc / loncapafiles / rpmcheck.piml
Revision 1.3: download - view: text, annotated - select for diffs
Mon May 24 18:08:26 2004 UTC (19 years, 11 months ago) by matthew
Branches: MAIN
CVS tags: HEAD
Updated installed rpm check to ensure gnuplot, apache-1.3, mod_perl-1, and
perl-suidperl are installed.

    1: <!DOCTYPE piml PUBLIC "-//TUX/DTD piml 1.0 Final//EN" 
    2: 	"http://lpml.sourceforge.net/DTD/piml.dtd">
    3: <!-- phpcheck.piml -->
    4: <!-- Matthew Hall -->
    5: 
    6: <!-- $Id: rpmcheck.piml,v 1.3 2004/05/24 18:08:26 matthew Exp $ -->
    7: 
    8: <!--
    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: <piml>
   33: <targetroot>/</targetroot>
   34: <files>
   35: <file>
   36: <target dist="default">/home/httpd/lonUsers</target>
   37: <perlscript mode="fg">
   38: #
   39: # Look for php packages that should not be installed
   40: my @phprpms = `rpm -q -a|grep php`;
   41: if (@phprpms) {
   42:     print "WARNING: PHP packages are present on this system.\n".
   43:         "There are known conflicts between PHP libraries and LON-CAPA.\n".
   44:         "Use the following command to remove ".
   45:         "the php packages from your system:\nrpm -e ";
   46:     foreach (@phprpms) {
   47:         chomp;
   48:         print $_.' ';
   49:     }
   50:     print "\n";
   51: }
   52: #
   53: # Look for mod_* that are thought to conflict with LON-CAPA
   54: my @mod_rpms = `rpm -q -a | grep mod`;
   55: foreach my $rpm (@mod_rpms) {
   56:     if ($rpm =~ /mod_bandwidth/) {
   57:         print "WARNING: it appears you have the mod_bandwidth ".
   58:         "package installed.\n".
   59:         "mod_bandwidth appears to conflict with LON-CAPA.\n".
   60:         "Use the following command to remove it:\n".
   61:         "rpm -e $rpm\n";
   62:     }
   63:     if ($rpm =~ /mod_throttle/) {
   64:         print "WARNING: it appears you have the mod_throttle ".
   65:         "package installed.\n".
   66:         "mod_throttle appears to conflict with LON-CAPA.\n".
   67:         "Use the following command to remove it:\n".
   68:         "rpm -e $rpm\n";
   69:     }
   70:         
   71: }
   72: #
   73: # Look for packages which we need to be present
   74: foreach my $rpm ('psutils','openssl-devel','perl-suidperl',
   75:                  'gnuplot-3.7.1-5','apache-1.3','mod_perl-1') {
   76:     my @RPMs = `rpm -q -a | grep $rpm`;
   77:     if (! @RPMs) {
   78:         print "WARNING: ".$rpm." does not appear to be installed.\n";
   79:     }
   80: }
   81: #
   82: # Look for files which we need to be present
   83: foreach my $file ('/usr/bin/pstops') {
   84:     if (! -e $file) {
   85:         print "WARNING: ".$file." does not appear to be installed.\n";
   86:     }
   87: }
   88: </perlscript>
   89: </file>
   90: </files>
   91: </piml>

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