Skip to content

Instantly share code, notes, and snippets.

@jnstq
Created February 29, 2012 18:31
Show Gist options
  • Save jnstq/1943354 to your computer and use it in GitHub Desktop.
Save jnstq/1943354 to your computer and use it in GitHub Desktop.
require 'formula'
class Varnish <Formula
url 'http://repo.varnish-cache.org/source/varnish-2.1.5.tar.gz'
homepage 'http://varnish.projects.linpro.no/'
#md5 'd91dc21c636db61c69b5e8f061c5bb95'
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%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment