2010-02-05 00:45:58 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Varnish <Formula
|
2010-08-12 14:30:13 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/varnish/varnish/2.1.3/varnish-2.1.3.tar.gz'
|
2010-02-05 00:45:58 +00:00
|
|
|
homepage 'http://varnish.projects.linpro.no/'
|
2010-08-12 14:30:13 +00:00
|
|
|
md5 '357d99a760de173d841ac37bf2052be8'
|
2010-02-05 00:45:58 +00:00
|
|
|
|
2010-05-11 18:33:50 +00:00
|
|
|
depends_on 'pkg-config'
|
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
|