forked from benschwarz/passenger-stack
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working up stack for nginx and apache with some cleanups
- Loading branch information
1 parent
6f74a49
commit bad5223
Showing
6 changed files
with
46 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,24 @@ | ||
package :ruby_enterprise do | ||
description 'Ruby Enterprise Edition' | ||
version '1.8.6-20090421' | ||
|
||
install_path = "/usr/local/ruby-enterprise" | ||
REE_PATH = "/usr/local/ruby-enterprise" | ||
|
||
binaries = %w(erb gem irb rackup rails rake rdoc ree-version ri ruby testrb) | ||
source "http://rubyforge.org/frs/download.php/55511/ruby-enterprise-#{version}.tar.gz" do | ||
custom_install 'sudo ./installer --auto=/usr/local/ruby-enterprise' | ||
|
||
binaries.each {|bin| post :install, "ln -s #{install_path}/bin/#{bin} /usr/local/bin/#{bin}" } | ||
binaries.each {|bin| post :install, "ln -s #{REE_PATH}/bin/#{bin} /usr/local/bin/#{bin}" } | ||
end | ||
|
||
verify do | ||
has_directory install_path | ||
has_executable "#{install_path}/bin/ruby" | ||
binaries.each {|bin| has_symlink "/usr/local/bin/#{bin}", "#{install_path}/bin/#{bin}" } | ||
has_executable "#{REE_PATH}/bin/ruby" | ||
binaries.each {|bin| has_symlink "/usr/local/bin/#{bin}", "#{REE_PATH}/bin/#{bin}" } | ||
end | ||
|
||
requires :ree_dependencies | ||
end | ||
|
||
package :ree_dependencies do | ||
apt %w(zlib1g-dev libreadline5-dev libssl-dev) | ||
# requires :build_essential | ||
end | ||
|
||
package :passenger_binaries do | ||
description "Symlinks passenger binaries" | ||
binaries = %w(passenger-config passenger-install-nginx-module passenger-install-apache2-module passenger-make-enterprisey passenger-memory-stats passenger-spawn-server passenger-status passenger-stress-test) | ||
install_path = "/usr/local/ruby-enterprise" | ||
binaries.each {|bin| post :install, "ln -s #{install_path}/bin/#{bin} /usr/local/bin/#{bin}" } | ||
|
||
verify do | ||
binaries.each {|bin| has_symlink "/usr/local/bin/#{bin}", "#{install_path}/bin/#{bin}" } | ||
end | ||
end | ||
requires :build_essential | ||
end |