homebrew-core/Formula/haproxy.rb
2014-12-17 22:29:01 -05:00

33 lines
924 B
Ruby

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"
bottle do
cellar :any
sha1 "6de94b8c47b778d9384a688b1ac035c9cc99cdd8" => :yosemite
sha1 "ac3bd5ee5d46f895bde4fb3d7a236b94dbe9eb21" => :mavericks
sha1 "6b3b5697ebc10921e38db161dcdc59cb3053ae3d" => :mountain_lion
end
depends_on "openssl"
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",
]
# We build generic since the Makefile.osx doesn't appear to work
system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}", "LDFLAGS=#{ENV.ldflags}", *args
man1.install "doc/haproxy.1"
bin.install "haproxy"
end
end