require 'formula' class Hydra < Formula url 'http://www.thc.org/releases/hydra-6.5-src.tar.gz' homepage 'http://www.thc.org/thc-hydra/' md5 '69a5afbbcbe3b1fdd31f9bf616480336' version "6.5+diff1" # This patch is provided by the original authors of this software def patches { :p0 => "http://www.thc.org/thc-hydra/hydra-6.5-fix.diff" } end def install system "./configure", "--prefix=#{prefix}" bin.mkpath system "make all install" share.install prefix+"man" # Put man pages in correct place end end