blob: 2bbfe660a11718012f6912b7ae50864db5c7483a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
require 'formula'
class Varnish < Formula
homepage 'http://www.varnish-cache.org/'
url 'http://repo.varnish-cache.org/source/varnish-3.0.3.tar.gz'
sha1 '6e1535caa30c3f61af00160c59d318e470cd6f57'
depends_on 'pkg-config' => :build
depends_on 'pcre'
# If stripped, 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
|