2010-02-05 00:45:58 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Varnish < Formula
|
2011-06-17 07:43:34 +00:00
|
|
|
url 'http://repo.varnish-cache.org/source/varnish-3.0.0.tar.gz'
|
2010-12-06 14:54:57 +00:00
|
|
|
homepage 'http://www.varnish-cache.org/'
|
2011-05-25 16:38:32 +00:00
|
|
|
|
2011-06-17 07:43:34 +00:00
|
|
|
md5 '38387bf31a1574f5cd8dec4f0b7caf20'
|
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
|