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.1 2004/05/19 16:31:07 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: my @phprpms = `rpm -q -a|grep php`;
39: if (@phprpms) {
40: print "WARNING: PHP packages are present on this system.\n".
41: "There are known conflicts between PHP libraries and LON-CAPA.\n".
42: "Use the following command to remove ".
43: "the php packages from your system:\nrpm -e ";
44: foreach (@phprpms) {
45: chomp;
46: print $_.' ';
47: }
48: print "\n";
49: }
50: my @mod_rpms = `rpm -q -a | grep mod`;
51: foreach my $rpm (@mod_rpms) {
52: # next if ($rpm =~ /^mod_perl/);
53: if ($rpm =~ /mod_bandwidth/) {
54: print "WARNING: it appears you have the mod_bandwidth ".
55: "package installed.\n".
56: "mod_bandwidth appears to conflict with LON-CAPA.\n".
57: "Use the following command to remove it:\n".
58: "rpm -e $rpm\n";
59: }
60: if ($rpm =~ /throttle/) {
61: print "WARNING: it appears you have the mod_throttle ".
62: "package installed.\n".
63: "mod_throttle appears to conflict with LON-CAPA.\n".
64: "Use the following command to remove it:\n".
65: "rpm -e $rpm\n";
66: }
67:
68: }
69: </perlscript>
70: </file>
71: </files>
72: </piml>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>