public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Search Repo:
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
Installer: check for OpenSSL support in Ruby.
Hongli Lai (Phusion) (author)
Thu Apr 03 05:04:24 -0700 2008
commit  3dd968d7eff557447de197b509e4907c94a55a3b
tree    d26792832914a844d4c33567b753084e25f640e4
parent  67c896b56da45752c1715e3d7be2823d51462a06
...
22
23
24
 
25
26
27
...
22
23
24
25
26
27
28
0
@@ -22,6 +22,7 @@ class Installer
0
   REQUIRED_DEPENDENCIES = [
0
     Dependencies::GCC,
0
     Dependencies::Ruby_DevHeaders,
0
+ Dependencies::Ruby_OpenSSL,
0
     Dependencies::RubyGems,
0
     Dependencies::Rake,
0
     Dependencies::Apache2,
...
126
127
128
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
130
131
...
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
0
@@ -126,6 +126,28 @@ module Dependencies # :nodoc: all
0
     dep.install_instructions = "Please reinstall Ruby by downloading it from <bold>#{dep.website}</b>"
0
   end
0
   
0
+ Ruby_OpenSSL = Dependency.new do |dep|
0
+ dep.name = "OpenSSL support for Ruby"
0
+ dep.define_checker do |result|
0
+ begin
0
+ require 'openssl'
0
+ result.found
0
+ rescue LoadError
0
+ result.not_found
0
+ end
0
+ end
0
+ if RUBY_PLATFORM =~ /linux/
0
+ case LINUX_DISTRO
0
+ when :ubuntu, :debian
0
+ dep.install_command = "apt-get install libopenssl-ruby"
0
+ end
0
+ else
0
+ dep.website = "http://www.ruby-lang.org/"
0
+ dep.install_instructions = "Please (re)install Ruby with OpenSSL " <<
0
+ "support by downloading it from <bold>#{dep.website}</bold>."
0
+ end
0
+ end
0
+
0
   RubyGems = Dependency.new do |dep|
0
     dep.name = "RubyGems"
0
     dep.define_checker do |result|

Comments

    No one has commented yet.