New formula: trafficserver-3.0.2 (http://trafficserver.apache.org/)

Closes Homebrew/homebrew#9513.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Marc Abramowitz 2012-01-29 17:48:24 +00:00 committed by Mike McQuaid
parent 7bd16daaf0
commit f4386fb2a2

22
Formula/trafficserver.rb Normal file
View file

@ -0,0 +1,22 @@
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