Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

Commit

Permalink
cook-177, add httpd-devel on centos/redhat so passenger will compile
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimberman committed Aug 25, 2009
1 parent 744d2f1 commit 2ff093d
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions passenger_apache2/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,19 @@
include_recipe "ruby"
include_recipe "apache2"

if platform?("centos","redhat") and dist_only?
# just the gem, we'll install the apache module within apache2
package "rubygem-passenger"

return
end

%w{ apache2-prefork-dev libapr1-dev }.each do |pkg|
package pkg do
action :upgrade
if platform?("centos","redhat")
if dist_only?
# just the gem, we'll install the apache module within apache2
package "rubygem-passenger"
return
else
package "httpd-devel"
end
else
%w{ apache2-prefork-dev libapr1-dev }.each do |pkg|
package pkg do
action :upgrade
end
end
end

Expand Down

0 comments on commit 2ff093d

Please sign in to comment.