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/'
|
2012-06-12 04:30:25 +00:00
|
|
|
url 'http://skipfish.googlecode.com/files/skipfish-2.07b.tgz'
|
2012-06-12 04:45:45 +00:00
|
|
|
sha1 'eb8811137dd474adc02a657d371c4427b28f8d97'
|
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
|
|
|
|
|
|
|
chmod 0755, "config.h" # Not writeable in the tgz. Lame.
|
2010-03-19 22:06:23 +00:00
|
|
|
inreplace "config.h",
|
|
|
|
"#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'
|
|
|
|
libexec.install %w(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
|
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
|