Skip to content

Instantly share code, notes, and snippets.

@hmsk
Created June 15, 2011 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hmsk/1027753 to your computer and use it in GitHub Desktop.
Save hmsk/1027753 to your computer and use it in GitHub Desktop.
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