blob: 5eb481b10e33f76c4fd0a8304b08a4a168caab99 (
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.2.tar.gz'
sha1 '906f1536cb7e728d18d9425677907ae723943df7'
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
|