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

Annotation of /rpms/smeserver-ocsinventory/contribs8/smeserver-ocsinventory-0.1-modPerl2.patch

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


Revision 1.1 - (hide annotations) (download)
Fri May 24 21:02:00 2013 UTC (11 years, 6 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-ocsinventory-0_1-11_el5_sme, smeserver-ocsinventory-0_1-14_el5_sme, smeserver-ocsinventory-0_1-12_el5_sme, smeserver-ocsinventory-0_1-13_el5_sme, HEAD
Initial import

1 unnilennium 1.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