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
|
2014-09-29 01:46:17 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "3cec3e85844d54a629a735a4cd035475af1a62b4" => :mavericks
|
|
|
|
sha1 "2f7e1f591e956369eae6446e4a5aeb4ee79940e4" => :mountain_lion
|
|
|
|
sha1 "07e9159ecbf0aa90dd56a7ee9d728b7bb77d5b6b" => :lion
|
2014-06-25 03:47:52 +00:00
|
|
|
end
|
|
|
|
|
2014-09-29 01:36:34 +00:00
|
|
|
depends_on "openssl"
|
|
|
|
|
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",
|
2014-09-29 01:36:34 +00:00
|
|
|
"--with-zlib=#{MacOS.sdk_path}/usr",
|
|
|
|
"--with-openssl=#{Formula["openssl"].opt_prefix}"
|
2014-04-26 23:58:08 +00:00
|
|
|
system "make", "install"
|
2010-03-17 15:48:11 +00:00
|
|
|
end
|
|
|
|
end
|