2010-09-20 20:04:35 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Sleuthkit < Formula
|
2010-09-20 20:04:35 +00:00
|
|
|
homepage 'http://www.sleuthkit.org/'
|
2012-06-30 00:38:08 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/sleuthkit/sleuthkit/3.2.3/sleuthkit-3.2.3.tar.gz'
|
|
|
|
sha1 '85d100ffde54f051916a4ea9452563ff85fad4ac'
|
|
|
|
|
|
|
|
head 'https://github.com/sleuthkit/sleuthkit.git'
|
2010-09-20 20:04:35 +00:00
|
|
|
|
2012-08-23 22:17:39 +00:00
|
|
|
if build.head?
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on :autoconf
|
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
|
|
|
end
|
|
|
|
|
2010-09-20 20:04:35 +00:00
|
|
|
depends_on 'afflib' => :optional
|
|
|
|
depends_on 'libewf' => :optional
|
|
|
|
|
2012-06-08 02:00:08 +00:00
|
|
|
def patches
|
|
|
|
# required for new-ish libewf releases (API change)
|
|
|
|
# fixed in the upcoming sleuthkit 4.x
|
2012-08-23 22:17:39 +00:00
|
|
|
if build.stable?
|
2012-06-30 00:38:08 +00:00
|
|
|
"http://downloads.sourceforge.net/project/libewf/patches%20for%203rd%20party%20software/sleuthkit/tsk3.2.3-libewf.patch"
|
|
|
|
end
|
2012-06-08 02:00:08 +00:00
|
|
|
end
|
|
|
|
|
2010-09-20 20:04:35 +00:00
|
|
|
def install
|
2012-08-23 22:17:39 +00:00
|
|
|
system "./bootstrap" if build.head?
|
2010-09-20 20:04:35 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|