2010-02-05 00:45:58 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Varnish <Formula
|
2010-12-06 14:54:57 +00:00
|
|
|
url 'http://www.varnish-software.com/sites/default/files/varnish-2.1.4.tar.gz'
|
|
|
|
homepage 'http://www.varnish-cache.org/'
|
|
|
|
md5 'e794a37b6fbb786a083c0946103ae103'
|
2010-02-05 00:45:58 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-05-18 22:15:00 +00:00
|
|
|
depends_on 'pcre'
|
2010-05-11 18:33:50 +00:00
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
# Do not strip varnish binaries: Otherwise, the magic string end pointer isn't found.
|
|
|
|
skip_clean :all
|
2010-02-05 00:45:58 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--localstatedir=#{var}"
|
|
|
|
system "make install"
|
|
|
|
(var+'varnish').mkpath
|
|
|
|
end
|
2010-08-12 14:30:13 +00:00
|
|
|
end
|