2010-03-19 22:06:23 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Skipfish < Formula
|
2011-08-09 08:41:24 +00:00
|
|
|
url 'http://skipfish.googlecode.com/files/skipfish-2.03b.tgz'
|
2010-03-19 22:06:23 +00:00
|
|
|
homepage 'http://code.google.com/p/skipfish/'
|
2011-08-09 08:41:24 +00:00
|
|
|
md5 'ff860b840ec7e579e9fac08e4fd8f4e2'
|
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"
|
2012-02-10 06:34:51 +00:00
|
|
|
libexec.install "assets", "dictionaries"
|
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
|