/[smecontribs]/rpms/smeserver-ocsinventory/contribs7/smeserver-ocsinventory-0.1-modPerl2.patch
ViewVC logotype

Contents of /rpms/smeserver-ocsinventory/contribs7/smeserver-ocsinventory-0.1-modPerl2.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Mon Mar 2 23:25:57 2009 UTC (15 years, 9 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-ocsinventory-0_1-10_el4_sme, smeserver-ocsinventory-0_1-5_el4_sme, smeserver-ocsinventory-0_1-11_el4_sme, smeserver-ocsinventory-0_1-8_el4_sme, smeserver-ocsinventory-0_1-9_el4_sme, smeserver-ocsinventory-0_1-6_el4_sme, smeserver-ocsinventory-0_1-7_el4_sme, smeserver-ocsinventory-0_1-4_el4_sme, HEAD
Error occurred while calculating annotation data.
Initial import of smeserver-ocsinventory

1 diff -Nur -x '*.orig' -x '*.rej' smeserver-ocsinventory-0.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/97ocs mezzanine_patched_smeserver-ocsinventory-0.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/97ocs
2 --- smeserver-ocsinventory-0.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/97ocs 2008-09-11 14:33:45.000000000 +0200
3 +++ mezzanine_patched_smeserver-ocsinventory-0.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/97ocs 2008-10-15 21:17:39.000000000 +0200
4 @@ -56,7 +56,19 @@
5 # Which version of mod_perl we are using
6 # For mod_perl <= 1.999_21, replace VERSION_MP by 1
7 # For mod_perl > 1.999_21, replace VERSION_MP by 2
8 - PerlSetEnv OCS_MODPERL_VERSION 1
9 + {
10 + my $version = 'unknown';
11 + my $modPerl = `rpm -q mod_perl`;
12 + $modPerl =~ /^mod_perl-(\d*)/;
13 + $version = $1.
14 + if ($version =~ /^1/){
15 + $version = 1;
16 + }
17 + elsif ($version =~ /^2/){
18 + $version = 2;
19 + }
20 + $OUT .= " PerlSetEnv OCS_MODPERL_VERSION $version\n";
21 + }
22
23 # Master Database settings
24 # Replace DATABASE_SERVER by hostname or ip of MySQL server for WRITE

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed