homebrew-core/Formula/trafficserver.rb
2013-09-21 21:05:10 -05:00

34 lines
919 B
Ruby

require 'formula'
class Trafficserver < Formula
homepage 'http://trafficserver.apache.org/'
url 'http://www.apache.org/dyn/closer.cgi?path=trafficserver/trafficserver-3.2.0.tar.bz2'
sha1 '0d7461f0711387b1049e50522e61281be6f5cf38'
head do
url 'http://svn.apache.org/repos/asf/trafficserver/traffic/trunk/'
depends_on :automake
depends_on :libtool
end
depends_on 'pcre'
def install
system "autoreconf -i" if build.head?
# 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}",
"--mandir=#{man}",
"--with-user=#{ENV['USER']}",
"--with-group=admin"
system "make install"
end
def test
system "#{bin}/trafficserver", "status"
end
end