Skip to content

Instantly share code, notes, and snippets.

@hannestyden
Created May 5, 2010 14:45
Show Gist options
  • Save hannestyden/390862 to your computer and use it in GitHub Desktop.
Save hannestyden/390862 to your computer and use it in GitHub Desktop.
# This is a modification of:
# http://github.com/antifuchs/homebrew/raw/0fa5fbd851f378166367c12eac5e3d3cf784a491/Library/Formula/varnish.rb
require 'formula'
class Varnish < Formula
url 'http://downloads.sourceforge.net/project/varnish/varnish/2.1/varnish-2.1.tar.gz'
homepage 'http://varnish.projects.linpro.no/'
md5 '91d92ea69f7dce470e55ef4721ef9b7d'
def skip_clean?(path)
# Do not strip varnish binaries: Otherwise, the magic string end pointer isn't found.
true
end
def install
system "./configure", "--prefix=#{prefix}", "--localstatedir=#{var}", "--disable-debug", "--disable-dependency-tracking"
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