blob: 7e37d88e93a044b5ad4be44a0730a87230d40c08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
class Haproxy < Formula
homepage "http://haproxy.1wt.eu"
url "http://www.haproxy.org/download/1.5/src/haproxy-1.5.10.tar.gz"
sha1 "2af3b740e84f10cbd0c90a78c30a222a24fb2945"
bottle do
cellar :any
sha1 "6c80304f8eace5073797f04646ef197099ce39d4" => :yosemite
sha1 "3fdaeaae9c33cc73e7314cd4844b46b82572706b" => :mavericks
sha1 "c42557822dcf88fdc74d0090e50358d254db7509" => :mountain_lion
end
depends_on "openssl"
depends_on "pcre"
def install
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
system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}", "LDFLAGS=#{ENV.ldflags}", *args
man1.install "doc/haproxy.1"
bin.install "haproxy"
end
test do
system bin/"haproxy", "-v"
end
end
|