aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-09-12 17:31:24 +0100
committerMike McQuaid2013-09-12 17:32:06 +0100
commit508cb709d1a53f34a28c9fe91378bbfeb8ce2b22 (patch)
treebe58fd0db0fb26be13b816045eb0d22165840b5c /Library
parent9f0ca00fa4742550a765222ac3cb8b33be57497a (diff)
downloadhomebrew-508cb709d1a53f34a28c9fe91378bbfeb8ce2b22.tar.bz2
nginx: use inreplace rather than patch.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/nginx.rb21
1 files changed, 3 insertions, 18 deletions
diff --git a/Library/Formula/nginx.rb b/Library/Formula/nginx.rb
index b59b971fe..c0b9ab526 100644
--- a/Library/Formula/nginx.rb
+++ b/Library/Formula/nginx.rb
@@ -29,11 +29,6 @@ class Nginx < Formula
skip_clean 'logs'
- # Changes default port to 8080
- def patches
- DATA
- end
-
def passenger_config_args
passenger_root = `passenger-config --root`.chomp
@@ -48,6 +43,9 @@ class Nginx < Formula
end
def install
+ # Changes default port to 8080
+ inreplace 'conf/nginx.conf', 'listen 80;', 'listen 8080;'
+
cc_opt = "-I#{HOMEBREW_PREFIX}/include"
ld_opt = "-L#{HOMEBREW_PREFIX}/lib"
@@ -167,16 +165,3 @@ class Nginx < Formula
EOS
end
end
-
-__END__
---- a/conf/nginx.conf
-+++ b/conf/nginx.conf
-@@ -33,7 +33,7 @@
- #gzip on;
-
- server {
-- listen 80;
-+ listen 8080;
- server_name localhost;
-
- #charset koi8-r;