Skip to content

Instantly share code, notes, and snippets.

Forked from wearethefoos/varnish3.rb
Last active September 6, 2017 04:39
What would you like to do?
Install Varnish-3.0.2 on OSX with homebrew
# Install Varnish 3.0.2 on OSX with the following Brew command:
# $> brew install
# You also might have to run:
# $> sudo brew link varnish3
# To symlink the install.
require 'formula'
class Varnish3 <Formula
url ''
homepage ''
sha256 '973f60625e9690e0989e1bbc73c37ea53fc6291b8f7b03d617b76f8084a4a243'
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">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment