pagespeed-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject [15/50] [abbrv] incubator-pagespeed-cpanel git commit: Fixed ## Mod_version checking while using Apache 2.4
Date Sat, 30 Dec 2017 04:41:26 GMT
Fixed ## Mod_version checking while using Apache 2.4

Project: http://git-wip-us.apache.org/repos/asf/incubator-pagespeed-cpanel/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-pagespeed-cpanel/commit/c39e513c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-pagespeed-cpanel/tree/c39e513c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-pagespeed-cpanel/diff/c39e513c

Branch: refs/heads/master
Commit: c39e513cf14bb92b59a7fd9297ae35868f27febc
Parents: 468b4f1
Author: Prajith <prajithpalakkuda@gmail.com>
Authored: Tue Oct 8 13:06:45 2013 +0530
Committer: Prajith <prajithpalakkuda@gmail.com>
Committed: Tue Oct 8 13:06:45 2013 +0530

----------------------------------------------------------------------
 Easy/Speed.pm | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-pagespeed-cpanel/blob/c39e513c/Easy/Speed.pm
----------------------------------------------------------------------
diff --git a/Easy/Speed.pm b/Easy/Speed.pm
index 138a592..4c2d762 100755
--- a/Easy/Speed.pm
+++ b/Easy/Speed.pm
@@ -24,6 +24,16 @@ our $easyconfig = {
     );
   },
 
+  'modself' => sub {
+   # we do not need to use 'reverse' when selecting mod_version in
+   # Apache 2.4 because cPanel use './configure --enable-modules=none'.
+    my ( $easy, $self_hr, $profile_hr ) = @_;
+    if ( $profile_hr->{'Apache'}{'version'} eq '2_4' ) {
+       $self_hr->{'implies'} = { 'Cpanel::Easy::Apache::Deflate' => 1, 'Cpanel::Easy::Apache::Version'
=> 1, };
+       $self_hr->{'depends'} = { 'optmods' => { 'Cpanel::Easy::Apache::Deflate' =>
1, 'Cpanel::Easy::Apache::Version' => 1, }, },
+    }
+  },
+
   'step' => {
 
     '0' => {


Mime
View raw message