Created
October 20, 2010 08:53
-
-
Save deplorableword/636056 to your computer and use it in GitHub Desktop.
Install varnish 2.0.6 via Brew on Snow Leopard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Varnish <Formula | |
url 'http://downloads.sourceforge.net/project/varnish/varnish/2.0.6/varnish-2.0.6.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