blob: eae7109afbc5c5b7676d465ccd6444e9921e9a6e (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
 | require 'formula'
class Sleuthkit < Formula
  homepage 'http://www.sleuthkit.org/'
  stable do
    url "https://downloads.sourceforge.net/project/sleuthkit/sleuthkit/4.1.3/sleuthkit-4.1.3.tar.gz"
    sha1 "9350bb59bb5fbe41d6e29a8d0494460b937749ef"
    # Upstream fix for https://github.com/sleuthkit/sleuthkit/issues/345
    patch do
      url "https://github.com/sleuthkit/sleuthkit/commit/39c62d6d169f8723c821ca7decdb8e124e126782.diff"
      sha1 "9da053e839ef8c4a454ac2f4f80b368884ff959c"
    end
  end
  head do
    url "https://github.com/sleuthkit/sleuthkit.git"
    depends_on "autoconf" => :build
    depends_on "automake" => :build
    depends_on "libtool" => :build
  end
  conflicts_with 'irods', :because => 'both install `ils`'
  option 'with-jni', "Build Sleuthkit with JNI bindings"
  depends_on :ant => :build
  depends_on 'afflib' => :optional
  depends_on 'libewf' => :optional
  conflicts_with 'ffind',
    :because => "both install a 'ffind' executable."
  def install
    system "./bootstrap" if build.head?
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make"
    system "make install"
    if build.with? 'jni'
      cd 'bindings/java' do
        system 'ant'
      end
      prefix.install 'bindings'
    end
  end
end
 |