2010-03-19 22:06:23 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Skipfish < Formula
|
2010-12-17 13:00:07 +00:00
|
|
|
url 'http://skipfish.googlecode.com/files/skipfish-1.84b.tgz'
|
2010-03-19 22:06:23 +00:00
|
|
|
homepage 'http://code.google.com/p/skipfish/'
|
2010-12-17 13:00:07 +00:00
|
|
|
md5 '1d29ada290110a2b93d576f1fb9b1213'
|
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"
|
|
|
|
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
|