Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Varnish-3.0.0-beta2 on OSX with homebrew
require 'formula'
class Varnish3 <Formula
url 'http://repo.varnish-cache.org/source/varnish-3.0.0-beta2.tar.gz'
homepage 'http://www.varnish-cache.org/'
md5 '26b6c5f57b1a2a736503a225a4d911cc'
depends_on 'pkg-config' => :build
depends_on 'pcre' => :build
# needs
skip_clean :all
def install
# http://www.varnish-cache.org/trac/wiki/Installation
# system "./autogen.sh"
system "./configure", "--enable-debugging-symbols",
"--enable-developer-warnings",
"--enable-dependency-tracking",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--localstatedir=#{var}"
system "make"
system "make install"
(var+'varnish3').mkpath
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment