2011-03-10 05:11:03 +00:00
|
|
|
class Clamav < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Anti-virus software"
|
2014-04-26 23:58:08 +00:00
|
|
|
homepage "http://www.clamav.net/"
|
2015-06-15 11:30:39 +00:00
|
|
|
url "https://downloads.sourceforge.net/clamav/clamav-0.98.7.tar.gz"
|
|
|
|
sha1 "c9793d67c041e2b944116d912f8681c8bd6e4432"
|
2013-04-24 19:26:45 +00:00
|
|
|
|
2014-06-25 03:47:52 +00:00
|
|
|
bottle do
|
2015-06-15 14:02:47 +00:00
|
|
|
sha256 "3c8049f743c8968556ff116b22dfaa23e328210d66f2d53a4623ddc9d03c3b9e" => :yosemite
|
|
|
|
sha256 "ccf874073326be643f6bc2fafcd12e2ea2cb020b633396ee9dea914e7a89f022" => :mavericks
|
|
|
|
sha256 "accfae39dbcda36377f7a604d6c865769dd4e193238c2c71b46a07d560c72232" => :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
|