2014-04-26 23:58:08 +00:00
|
|
|
require "formula"
|
2010-03-17 15:48:11 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Clamav < Formula
|
2014-04-26 23:58:08 +00:00
|
|
|
homepage "http://www.clamav.net/"
|
2014-06-25 03:37:04 +00:00
|
|
|
head "https://github.com/vrtadmin/clamav-devel"
|
2014-06-20 09:38:10 +00:00
|
|
|
url "https://downloads.sourceforge.net/clamav/clamav-0.98.4.tar.gz"
|
|
|
|
sha1 "f1003d04f34efb0aede05395d3c7cc22c944e4ef"
|
2013-04-24 19:26:45 +00:00
|
|
|
|
2014-06-25 03:47:52 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "4ed3b47b0b8e41861ef6d96966e9c562dd2a4a40" => :mavericks
|
|
|
|
sha1 "e100c4726571fa7b03b6e62188bb0c8ccd06394e" => :mountain_lion
|
|
|
|
sha1 "4d2596ed31086455d7e87bade419589da46a3ef3" => :lion
|
|
|
|
end
|
|
|
|
|
2014-07-20 21:39:43 +00:00
|
|
|
skip_clean "share/clamav"
|
2010-03-17 15:48:11 +00:00
|
|
|
|
|
|
|
def install
|
2014-04-26 23:58:08 +00:00
|
|
|
(share/"clamav").mkpath
|
2014-05-20 04:53:12 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--libdir=#{lib}",
|
|
|
|
"--sysconfdir=#{etc}",
|
|
|
|
"--disable-zlib-vcheck",
|
|
|
|
"--with-zlib=#{MacOS.sdk_path}/usr"
|
2014-04-26 23:58:08 +00:00
|
|
|
system "make", "install"
|
2010-03-17 15:48:11 +00:00
|
|
|
end
|
|
|
|
end
|