2011-03-10 05:11:03 +00:00
|
|
|
class Clamav < Formula
|
2014-04-26 23:58:08 +00:00
|
|
|
homepage "http://www.clamav.net/"
|
2015-02-03 09:31:06 +00:00
|
|
|
url "https://downloads.sourceforge.net/clamav/clamav-0.98.6.tar.gz"
|
|
|
|
sha1 "03cb9a20a08aba9176b1f58d5527d06ec8261f9c"
|
2013-04-24 19:26:45 +00:00
|
|
|
|
2014-06-25 03:47:52 +00:00
|
|
|
bottle do
|
2015-02-03 09:46:10 +00:00
|
|
|
sha1 "b98d88af709fc48b4cad3e07e8bf2b243a64e36b" => :yosemite
|
|
|
|
sha1 "857c84af44eeeb1f8413f5034ff47be8f950075d" => :mavericks
|
|
|
|
sha1 "e0b8f89118ff2c0fe2d8bca37572f4b37d327ce6" => :mountain_lion
|
2014-06-25 03:47:52 +00:00
|
|
|
end
|
|
|
|
|
2014-11-23 19:04:34 +00:00
|
|
|
head do
|
|
|
|
url "https://github.com/vrtadmin/clamav-devel.git"
|
|
|
|
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
end
|
|
|
|
|
2014-09-29 01:36:34 +00:00
|
|
|
depends_on "openssl"
|
2014-11-23 19:04:34 +00:00
|
|
|
depends_on "json-c" => :optional
|
2014-09-29 01:36:34 +00:00
|
|
|
|
2014-07-20 21:39:43 +00:00
|
|
|
skip_clean "share/clamav"
|
2010-03-17 15:48:11 +00:00
|
|
|
|
|
|
|
def install
|
2015-02-03 09:31:06 +00:00
|
|
|
args = [
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--libdir=#{lib}",
|
|
|
|
"--sysconfdir=#{etc}/clamav",
|
|
|
|
"--disable-zlib-vcheck",
|
|
|
|
"--with-zlib=#{MacOS.sdk_path}/usr",
|
|
|
|
"--with-openssl=#{Formula["openssl"].opt_prefix}",
|
2014-11-23 19:04:34 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
args << "--with-libjson=#{Formula["json-c"].opt_prefix}" if build.with? "json-c"
|
|
|
|
|
2014-04-26 23:58:08 +00:00
|
|
|
(share/"clamav").mkpath
|
2014-11-23 19:04:34 +00:00
|
|
|
system "autoreconf", "-i" if build.head?
|
|
|
|
system "./configure", *args
|
2014-04-26 23:58:08 +00:00
|
|
|
system "make", "install"
|
2010-03-17 15:48:11 +00:00
|
|
|
end
|
2014-11-23 19:04:34 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
To finish installation & run clamav you will need to edit
|
|
|
|
the example conf files at #{etc}/clamav/
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/clamav-config", "--version"
|
|
|
|
end
|
2010-03-17 15:48:11 +00:00
|
|
|
end
|