homebrew-core/Formula/varnish.rb
Berk D. Demir 07b96430e4 varnish 3.0.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-09-02 09:59:37 -07:00

22 lines
603 B
Ruby

require 'formula'
class Varnish < Formula
url 'http://repo.varnish-cache.org/source/varnish-3.0.1.tar.gz'
homepage 'http://www.varnish-cache.org/'
sha1 'f56457c8b7276ed954c5170dac17ba7abd144eb6'
depends_on 'pkg-config' => :build
depends_on 'pcre'
# Do not strip varnish binaries: Otherwise, the magic string end pointer isn't found.
skip_clean :all
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--localstatedir=#{var}"
system "make install"
(var+'varnish').mkpath
end
end