Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install Varnish-3.0.2 on OSX with homebrew
require 'formula'
class Varnish3 <Formula
url ''
homepage ''
md5 'c8eae0aabbe66b6daabdf3a1f58cd47a'
depends_on 'pkg-config' => :build
depends_on 'pcre' => :build
# needs
skip_clean :all
def install
# system "./"
system "./configure", "--enable-debugging-symbols",
system "make"
system "make install"
(prefix+'org.varnish-cache.varnishd.plist').write startup_plist
(prefix+'org.varnish-cache.varnishd.plist').chmod 0644
def startup_plist; <<-EOPLIST.undent
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
Copy link

wearethefoos commented Feb 23, 2012

Install Varnish 3.0.2 on OSX with the following Brew command:

brew install

You might have to run

sudo brew link varnish3

To symlink the install.

Copy link

freen commented Jun 30, 2014

New URL!
brew install

Copy link

klein0r commented Jun 12, 2015

Thank you! Brew complained about an unsupported md5 checksum. So I've changed your script to sha256 (see fork):

Copy link

bkeroackdsc commented Jul 6, 2017

md5 is now unsupported, so you need to comment it out or replace it with sha256.

Also brew link doesn't symlink varnishd for some reason.

Copy link

dhruvbalhara commented Nov 3, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment