2012-01-29 17:48:24 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Trafficserver < Formula
|
2012-03-26 04:47:43 +00:00
|
|
|
url 'http://www.apache.org/dyn/closer.cgi/trafficserver/trafficserver-3.0.4.tar.bz2'
|
2012-01-29 17:48:24 +00:00
|
|
|
homepage 'http://trafficserver.apache.org/'
|
2012-03-26 04:47:43 +00:00
|
|
|
md5 '90e259fb09cb7439c6908f1f5344c40f'
|
2012-01-29 17:48:24 +00:00
|
|
|
|
2012-02-13 01:49:38 +00:00
|
|
|
head 'http://svn.apache.org/repos/asf/trafficserver/traffic/trunk/'
|
|
|
|
|
2012-02-13 01:29:15 +00:00
|
|
|
devel do
|
|
|
|
url 'http://www.apache.org/dyn/closer.cgi/trafficserver/trafficserver-3.1.2-unstable.tar.bz2'
|
|
|
|
md5 '2208cb9a0d0b7cea07770d51b1cf7df2'
|
|
|
|
end
|
|
|
|
|
2012-01-29 17:48:24 +00:00
|
|
|
depends_on 'pcre'
|
|
|
|
|
2012-02-29 01:44:13 +00:00
|
|
|
if ARGV.build_head? and MacOS.xcode_version >= "4.3"
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
end
|
|
|
|
|
2012-01-29 17:48:24 +00:00
|
|
|
def install
|
2012-02-13 01:49:38 +00:00
|
|
|
system "autoreconf -i" if ARGV.build_head?
|
|
|
|
|
2012-01-29 17:48:24 +00:00
|
|
|
# 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
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/trafficserver", "status"
|
2012-01-29 17:48:24 +00:00
|
|
|
end
|
|
|
|
end
|