aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorsunteya2014-06-23 23:30:10 +0800
committerJack Nagel2014-07-18 16:06:00 -0500
commit1ca64062c5ffb2c09a2904de4a26f5108663ece4 (patch)
tree3da175ab5136ea222de34af73b951622890bdc5c /Library/Formula
parent36268392f0ece569123381f2801a671089c249bf (diff)
downloadhomebrew-1ca64062c5ffb2c09a2904de4a26f5108663ece4.tar.bz2
passenger: add option to build without apache2 module
Closes #30452. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/passenger.rb26
1 files changed, 17 insertions, 9 deletions
diff --git a/Library/Formula/passenger.rb b/Library/Formula/passenger.rb
index 0a693edfc..8d658d7de 100644
--- a/Library/Formula/passenger.rb
+++ b/Library/Formula/passenger.rb
@@ -14,8 +14,10 @@ class Passenger < Formula
depends_on 'pcre'
depends_on :macos => :mountain_lion
+ option 'without-apache2-module', 'Disable Apache2 module'
+
def install
- rake "apache2"
+ rake "apache2" if build.with? "apache2-module"
rake "nginx"
rake "webhelper"
@@ -42,15 +44,21 @@ class Passenger < Formula
mv libexec/'man', share
end
- def caveats; <<-EOS.undent
- To activate Phusion Passenger for Apache, create /etc/apache2/other/passenger.conf:
- LoadModule passenger_module #{opt_libexec}/buildout/apache2/mod_passenger.so
- PassengerRoot #{opt_libexec}/lib/phusion_passenger/locations.ini
- PassengerDefaultRuby /usr/bin/ruby
+ def caveats
+ s = <<-EOS.undent
+ To activate Phusion Passenger for Nginx, run:
+ brew install nginx --with-passenger
+
+ EOS
+
+ s += <<-EOS.undent if build.with? "apache2-module"
+ To activate Phusion Passenger for Apache, create /etc/apache2/other/passenger.conf:
+ LoadModule passenger_module #{opt_libexec}/buildout/apache2/mod_passenger.so
+ PassengerRoot #{opt_libexec}/lib/phusion_passenger/locations.ini
+ PassengerDefaultRuby /usr/bin/ruby
- To activate Phusion Passenger for Nginx, run:
- brew install nginx --with-passenger
- EOS
+ EOS
+ s
end
test do