2010-02-05 00:45:58 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Varnish < Formula
|
2011-09-02 07:01:22 +00:00
|
|
|
url 'http://repo.varnish-cache.org/source/varnish-3.0.1.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-09-02 07:01:22 +00:00
|
|
|
sha1 'f56457c8b7276ed954c5170dac17ba7abd144eb6'
|
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
|