2010-03-19 22:06:23 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Skipfish < Formula
|
2010-03-19 22:06:23 +00:00
|
|
|
homepage 'http://code.google.com/p/skipfish/'
|
2013-01-30 23:06:24 +00:00
|
|
|
url 'http://skipfish.googlecode.com/files/skipfish-2.10b.tgz'
|
|
|
|
sha1 '2564162a13d02f8310eef5edcbaf74ed6043be99'
|
2010-10-21 14:54:17 +00:00
|
|
|
|
2010-03-19 22:06:23 +00:00
|
|
|
depends_on 'libidn'
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.append "CFLAGS", "-I#{HOMEBREW_PREFIX}/include"
|
|
|
|
ENV.append "LDFLAGS", "-L#{HOMEBREW_PREFIX}/lib"
|
2012-06-12 14:04:36 +00:00
|
|
|
|
2013-01-30 23:06:24 +00:00
|
|
|
chmod 0755, "src/config.h" # Not writeable in the tgz. Lame.
|
|
|
|
inreplace "src/config.h",
|
2010-03-19 22:06:23 +00:00
|
|
|
"#define ASSETS_DIR \"assets\"",
|
2010-03-30 20:02:31 +00:00
|
|
|
"#define ASSETS_DIR \"#{libexec}/assets\""
|
2012-06-12 14:04:36 +00:00
|
|
|
|
2012-06-12 04:30:25 +00:00
|
|
|
system 'make'
|
|
|
|
bin.install 'skipfish'
|
2013-01-30 23:06:24 +00:00
|
|
|
libexec.install %w(assets dictionaries config signatures)
|
2010-03-19 22:06:23 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
2010-04-07 05:58:35 +00:00
|
|
|
NOTE: Skipfish uses dictionary-based probes and will not run until
|
2012-06-12 14:04:36 +00:00
|
|
|
you have specified a dictionary for it to use. Please read:
|
|
|
|
#{libexec}/dictionaries/README-FIRST
|
2010-03-30 20:02:31 +00:00
|
|
|
carefully to make the right choice. This step has a profound impact
|
|
|
|
on the quality of results later on.
|
2010-03-19 22:06:23 +00:00
|
|
|
|
2012-06-12 04:30:25 +00:00
|
|
|
Use this command to print usage information:
|
|
|
|
skipfish -h
|
2010-03-19 22:06:23 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|