aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/clamav.rb
blob: 7d7c9a29e1b8253b85c0541930d4e1bfa046f6e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require "formula"

class Clamav < Formula
  homepage "http://www.clamav.net/"
  head "https://github.com/vrtadmin/clamav-devel"
  url "https://downloads.sourceforge.net/clamav/clamav-0.98.4.tar.gz"
  sha1 "f1003d04f34efb0aede05395d3c7cc22c944e4ef"

  bottle do
    revision 1
    sha1 "3cec3e85844d54a629a735a4cd035475af1a62b4" => :mavericks
    sha1 "2f7e1f591e956369eae6446e4a5aeb4ee79940e4" => :mountain_lion
    sha1 "07e9159ecbf0aa90dd56a7ee9d728b7bb77d5b6b" => :lion
  end

  depends_on "openssl"

  skip_clean "share/clamav"

  def install
    (share/"clamav").mkpath
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--libdir=#{lib}",
                          "--sysconfdir=#{etc}",
                          "--disable-zlib-vcheck",
                          "--with-zlib=#{MacOS.sdk_path}/usr",
                          "--with-openssl=#{Formula["openssl"].opt_prefix}"
    system "make", "install"
  end
end