2 thoughts on “Homebrew formula for Apache Traffic Server 3.0.2

  1. Pingback: Homebrew support for Apache Traffic Server development releases « Marc Abramowitz

  2. This is more updated trafficserver.rb config. Bug fixes :
    – Updates URL of latest package
    – Compiles on Mountain Lion (CC and CXX parameters)

    require ‘formula’

    class Trafficserver < Formula
    homepage 'http://trafficserver.apache.org/&#039;
    url 'http://www.apache.org/dyn/closer.cgi?path=trafficserver/trafficserver-3.2.4.tar.bz2&#039;
    sha1 '05b9ee455f6cdb83486132183e04443efa057c00'

    head 'http://svn.apache.org/repos/asf/trafficserver/traffic/trunk/&#039;

    depends_on 'pcre'
    # depends_on 'openssl'

    if build.head?
    depends_on :automake
    depends_on :libtool
    end

    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",
    "CC=clang",
    "CXX=clang++"
    system "make install"
    end

    def test
    system "#{bin}/trafficserver", "status"
    end
    end

Leave a Reply

Your email address will not be published.