diff options
Diffstat (limited to 'Library/Formula/haproxy.rb')
| -rw-r--r-- | Library/Formula/haproxy.rb | 25 | 
1 files changed, 14 insertions, 11 deletions
| diff --git a/Library/Formula/haproxy.rb b/Library/Formula/haproxy.rb index 1671ee6f9..80af11283 100644 --- a/Library/Formula/haproxy.rb +++ b/Library/Formula/haproxy.rb @@ -1,9 +1,7 @@ -require "formula" -  class Haproxy < Formula    homepage "http://haproxy.1wt.eu" -  url "http://www.haproxy.org/download/1.5/src/haproxy-1.5.9.tar.gz" -  sha1 "62620311db4b18f10464ffcbcc0398161f5c8a6b" +  url "http://www.haproxy.org/download/1.5/src/haproxy-1.5.10.tar.gz" +  sha1 "2af3b740e84f10cbd0c90a78c30a222a24fb2945"    bottle do      cellar :any @@ -16,13 +14,14 @@ class Haproxy < Formula    depends_on "pcre"    def install -    args = ["TARGET=generic", -            "USE_KQUEUE=1", -            "USE_POLL=1", -            "USE_PCRE=1", -            "USE_OPENSSL=1", -            "USE_ZLIB=1", -            "ADDLIB=-lcrypto", +    args = %w[ +      TARGET=generic +      USE_KQUEUE=1 +      USE_POLL=1 +      USE_PCRE=1 +      USE_OPENSSL=1 +      USE_ZLIB=1 +      ADDLIB=-lcrypto      ]      # We build generic since the Makefile.osx doesn't appear to work @@ -30,4 +29,8 @@ class Haproxy < Formula      man1.install "doc/haproxy.1"      bin.install "haproxy"    end + +  test do +    system bin/"haproxy", "-v" +  end  end | 
