Skip to content

Commit

Permalink
nginx: use inreplace rather than patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Sep 12, 2013
1 parent 719d5cd commit 64155d5
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions Formula/nginx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -48,6 +43,9 @@ def passenger_config_args
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"

Expand Down Expand Up @@ -167,16 +165,3 @@ def plist; <<-EOS.undent
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;

0 comments on commit 64155d5

Please sign in to comment.