Diff for /doc/loncapafiles/rpmcheck.piml between versions 1.5 and 1.9

version 1.5, 2004/05/28 12:45:18 version 1.9, 2004/12/10 20:40:08
Line 39  http://www.lon-capa.org/ Line 39  http://www.lon-capa.org/
 # Look for php packages that should not be installed  # Look for php packages that should not be installed
 my @phprpms = `rpm -q -a|grep php`;  my @phprpms = `rpm -q -a|grep php`;
 if (@phprpms) {  if (@phprpms) {
     print "WARNING: PHP packages are present on this system.\n".      print "**** WARNING: PHP packages are present on this system.\n".
         "There are known conflicts between PHP libraries and LON-CAPA.\n".          "There are known conflicts between PHP libraries and LON-CAPA.\n".
         "Use the following command to remove ".          "Use the following command to remove ".
         "the php packages from your system:\nrpm -e ";          "the php packages from your system:\nrpm -e ";
Line 54  if (@phprpms) { Line 54  if (@phprpms) {
 my @mod_rpms = `rpm -q -a | grep mod`;  my @mod_rpms = `rpm -q -a | grep mod`;
 foreach my $rpm (@mod_rpms) {  foreach my $rpm (@mod_rpms) {
     if ($rpm =~ /mod_bandwidth/) {      if ($rpm =~ /mod_bandwidth/) {
         print "WARNING: it appears you have the mod_bandwidth ".          print "**** WARNING: it appears you have the mod_bandwidth ".
         "package installed.\n".          "package installed.\n".
         "mod_bandwidth appears to conflict with LON-CAPA.\n".          "mod_bandwidth appears to conflict with LON-CAPA.\n".
         "Use the following command to remove it:\n".          "Use the following command to remove it:\n".
         "rpm -e $rpm\n";          "rpm -e $rpm\n";
     }      }
     if ($rpm =~ /mod_throttle/) {      if ($rpm =~ /mod_throttle/) {
         print "WARNING: it appears you have the mod_throttle ".          print "**** WARNING: it appears you have the mod_throttle ".
         "package installed.\n".          "package installed.\n".
         "mod_throttle appears to conflict with LON-CAPA.\n".          "mod_throttle appears to conflict with LON-CAPA.\n".
         "Use the following command to remove it:\n".          "Use the following command to remove it:\n".
Line 69  foreach my $rpm (@mod_rpms) { Line 69  foreach my $rpm (@mod_rpms) {
     }      }
                   
 }  }
   </perlscript>
   <perlscript dist="redhat7" mode="fg">
 #  #
 # Look for packages which we need to be present  # Look for packages which we need to be present
 my @RPMS = `rpm -q -a`;  my @RPMS = `rpm -q -a`;
 foreach my $rpm ('psutils','openssl-devel','perl-suidperl',  foreach my $rpm ('gnuplot-3.7.1-5','LON-CAPA-systemperl') {
                  'gnuplot-3.7.1-5','apache-1.3','mod_perl.1',  
                  '^gzip','^zip-','^bzip2-libs','^unzip','^bzip2','^tar-') {  
     my @matching_rpms = grep(/$rpm/,@RPMS);      my @matching_rpms = grep(/$rpm/,@RPMS);
     if (! @matching_rpms) {      if (! @matching_rpms) {
         print "WARNING: ".$rpm." does not appear to be installed.\n";          print "**** WARNING: ".$rpm." does not appear to be installed.\n";
     }      }
 }  }
   </perlscript>
   <perlscript dist="fedora1 fedora2 fedora3" mode="fg">
   my @RPMS = `rpm -q -a`;
   foreach my $rpm ('LONCAPA-prerequisites') {
       my @matching_rpms = grep(/$rpm/,@RPMS);
       if (! @matching_rpms) {
           print "**** WARNING: ".$rpm." does not appear to be installed.\n";
       }
   }
   </perlscript>
   <perlscript dist="debian gentoo sles suse">
   print &lt;&lt;END;
   **** WARNING: We don't know much about your distribution.
       Check with the loncapa development team for help satisfying 
       the many dependencies of LON-CAPA.
   END
   </perlscript>
   <perlscript mode="fg">
 #  #
 # Look for files which we need to be present  # Look for files which we need to be present
 foreach my $file ('/usr/bin/pstops') {  foreach my $file ('/usr/bin/pstops') {
     if (! -e $file) {      if (! -e $file) {
         print "WARNING: ".$file." does not appear to be installed.\n";          print "**** WARNING: ".$file." does not appear to be installed.\n";
     }      }
 }  }
 </perlscript>  </perlscript>

Removed from v.1.5  
changed lines
  Added in v.1.9


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