homebrew-core/Formula/trafficserver.rb
Marc Abramowitz f4386fb2a2 New formula: trafficserver-3.0.2 (http://trafficserver.apache.org/)
Closes Homebrew/homebrew#9513.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-01-29 17:48:33 +00:00

22 lines
617 B
Ruby

require 'formula'
class Trafficserver < Formula
url 'http://www.apache.org/dyn/closer.cgi/trafficserver/trafficserver-3.0.2.tar.bz2'
homepage 'http://trafficserver.apache.org/'
md5 '0f8e5ce658d28511001c6585d1e1813a'
depends_on 'pcre'
def install
# Needed for correct ./configure detections.
ENV.enable_warnings
# Needed for OpenSSL headers on Lion.
ENV.append_to_cflags "-Wno-deprecated-declarations"
system "./configure", "--prefix=#{prefix}", "--with-user=#{ENV['USER']}", "--with-group=admin"
system "make install"
end
def test
system "trafficserver status"
end
end