2010-03-17 15:48:11 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Clamav < Formula
|
2010-04-02 17:11:36 +00:00
|
|
|
homepage 'http://www.clamav.net/'
|
2013-09-22 00:08:59 +00:00
|
|
|
url 'http://downloads.sourceforge.net/clamav/0.98/clamav-0.98.tar.gz'
|
|
|
|
sha1 '1e6a7284721387646c713a8d32fa8b5a897985db'
|
2013-04-24 19:26:45 +00:00
|
|
|
|
|
|
|
skip_clean 'share'
|
2010-03-17 15:48:11 +00:00
|
|
|
|
|
|
|
def install
|
2013-04-24 19:26:45 +00:00
|
|
|
(share/'clamav').mkpath
|
|
|
|
|
2012-08-31 19:24:38 +00:00
|
|
|
args = %W{--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
2012-09-03 03:12:49 +00:00
|
|
|
--disable-zlib-vcheck
|
2013-04-24 19:26:45 +00:00
|
|
|
--libdir=#{lib}
|
|
|
|
--sysconfdir=#{etc}}
|
2012-08-31 19:24:38 +00:00
|
|
|
args << "--with-zlib=#{MacOS.sdk_path}/usr" unless MacOS::CLT.installed?
|
|
|
|
|
|
|
|
system "./configure", *args
|
2010-03-17 15:48:11 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|