diff options
| author | Mark A. Matienzo | 2011-01-09 00:20:13 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2011-02-05 14:22:10 -0800 |
| commit | fbc17db6b56eb42511cff38478527c9363260f75 (patch) | |
| tree | d400d15e7d55ed79b25f955f748d450b708e5990 /Library | |
| parent | 90d006f509cec5aee7fea9cb869d9a6e52e379de (diff) | |
| download | homebrew-fbc17db6b56eb42511cff38478527c9363260f75.tar.bz2 | |
New formula: fiwalk
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/fiwalk.rb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Library/Formula/fiwalk.rb b/Library/Formula/fiwalk.rb new file mode 100644 index 000000000..6d899b84f --- /dev/null +++ b/Library/Formula/fiwalk.rb @@ -0,0 +1,46 @@ +require 'formula' + +class Fiwalk <Formula + url 'http://afflib.org/downloads/fiwalk-0.6.3.tar.gz' + homepage 'http://afflib.org/software/fiwalk' + md5 '9ef1b7cc3ddafdc4febadd6e96221a10' + + depends_on 'sleuthkit' + depends_on 'afflib' + + def install + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make install" + (share+name).mkpath + + cd 'plugins' do + # For some reason make install does not create the Java plugins JAR file even though it + # builds other things in the plugins directory. + system "make plugins.jar" + libexec.install 'plugins.jar' => 'fiwalk-plugins.jar' + + # Install Python script-based plugins. + bin.install Dir['*.py'] + + # Fix paths in fiwalk's config file + inreplace 'ficonfig.txt' do |s| + s.gsub! 'dgi ../plugins/jpeg_extract', "dgi #{prefix}/jpeg_extract" + s.gsub! '../plugins/plugins.jar', "#{libexec}/fiwalk-plugins.jar" + end + (share+name).install 'ficonfig.txt' + end + + # Install Python bindings and extra scripts. + (share+name+'python').install Dir['python/*.py'] + end + + def caveats; <<-EOS.undent + fiwalk's config file is located at: + #{share+name}/ficonfig.txt + + You may need to add the directory containing the Python bindings to your PYTHONPATH: + #{share+name}/python + EOS + end +end
\ No newline at end of file |
