2010-03-19 22:06:23 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Skipfish <Formula
|
2010-08-23 19:20:55 +00:00
|
|
|
url 'http://skipfish.googlecode.com/files/skipfish-1.58b.tgz'
|
2010-03-19 22:06:23 +00:00
|
|
|
homepage 'http://code.google.com/p/skipfish/'
|
2010-08-23 19:20:55 +00:00
|
|
|
md5 '3f1e377c269e9a22fe5bf0113900451b'
|
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"
|
|
|
|
inreplace "config.h",
|
|
|
|
"#define ASSETS_DIR \"assets\"",
|
2010-03-30 20:02:31 +00:00
|
|
|
"#define ASSETS_DIR \"#{libexec}/assets\""
|
2010-03-19 22:06:23 +00:00
|
|
|
system "make"
|
|
|
|
bin.install "skipfish"
|
2010-04-07 05:58:35 +00:00
|
|
|
libexec.install ["dictionaries", "assets"]
|
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
|
2010-03-30 20:02:31 +00:00
|
|
|
you have specified a dictionary for it to use.
|
2010-03-19 22:06:23 +00:00
|
|
|
|
2010-03-30 20:02:31 +00:00
|
|
|
Please read #{libexec}/dictionaries/README-FIRST
|
|
|
|
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
|
|
|
|
2010-03-30 20:02:31 +00:00
|
|
|
"skipfish -h" prints out usage information.
|
2010-03-19 22:06:23 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|