diff options
| author | Mark A. Matienzo | 2011-03-27 14:53:31 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2011-04-11 09:16:18 -0700 |
| commit | ca8c2646d0c6e36f148b5507f9fc7267b69efc28 (patch) | |
| tree | a630be25ec6004fea4da8970304a545afe8f8e80 /Library/Formula | |
| parent | 88e1eaf31234e7a5d488acb67c53279313ddef52 (diff) | |
| download | homebrew-ca8c2646d0c6e36f148b5507f9fc7267b69efc28.tar.bz2 | |
New formula: autopsy
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/autopsy.rb | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/Library/Formula/autopsy.rb b/Library/Formula/autopsy.rb new file mode 100644 index 000000000..779728beb --- /dev/null +++ b/Library/Formula/autopsy.rb @@ -0,0 +1,82 @@ +require 'formula' + +class Autopsy < Formula + url 'http://downloads.sourceforge.net/project/autopsy/autopsy/2.24/autopsy-2.24.tar.gz' + homepage 'http://www.sleuthkit.org/autopsy/index.php' + md5 '4ed18aa9f79453d74957b5db220d0d59' + + depends_on 'sleuthkit' + depends_on 'afflib' => :optional + depends_on 'libewf' => :optional + + def autcfg; <<-EOS.undent + # Autopsy configuration settings + + # when set to 1, the server will stop after it receives no + # connections for STIMEOUT seconds. + $USE_STIMEOUT = 0; + $STIMEOUT = 3600; + + # number of seconds that child waits for input from client + $CTIMEOUT = 15; + + # set to 1 to save the cookie value in a file (for scripting) + $SAVE_COOKIE = 1; + + $INSTALLDIR = '#{prefix}'; + + + # System Utilities + $GREP_EXE = '/usr/bin/grep'; + $FILE_EXE = '/usr/bin/file'; + $MD5_EXE = '/sbin/md5'; + $SHA1_EXE = '/usr/bin/shasum'; + + + # Directories + $TSKDIR = '/usr/local/bin/'; + + # Homebrew users can install NSRL database and change this variable later + $NSRLDB = ''; + + # Evidence locker location + $LOCKDIR = '#{var}/lib/autopsy'; + EOS + end + + def patches + # fixes weird configure script that wouldn't work nicely with homebrew + DATA + end + + def install + (var+"lib/autopsy").mkpath + mv 'lib', 'libexec' + prefix.install %w{ COPYING global.css help libexec pict } + prefix.install Dir['*.txt'] + (prefix+"conf.pl").write autcfg + inreplace 'base/autopsy.base', '/tmp/autopsy', prefix + inreplace 'base/autopsy.base', 'lib/define.pl', "#{libexec}/define.pl" + bin.install 'base/autopsy.base' => 'autopsy' + end + + def caveats; <<-EOS.undent + To start autopsy: + autopsy + By default, the evidence locker is in #{var}/lib/autopsy + EOS + end +end + +__END__ +diff --git a/base/autopsy.base b/base/autopsy.base +index 3b3bbdc..a0d2632 100644 +--- a/base/autopsy.base ++++ b/base/autopsy.base +@@ -1,3 +1,6 @@ ++#!/usr/bin/perl -wT ++use lib '/tmp/autopsy/'; ++use lib '/tmp/autopsy/libexec/'; + # + # autopsy gui server + # Autopsy Forensic Browser |
