Congee
9/13/2014 - 7:59 AM

nbtscan.rb

require "formula"

class Nbtscan < Formula
  homepage "http://www.inetcat.net/software/nbtscan.html"
	url "http://distcache.freebsd.org/ports-distfiles/nbtscan-1.5.1.tar.gz"
  mirror "http://www.sourcefiles.org/Networking/Tools/Miscellanenous/nbtscan-1.5.1.tar.gz"
  sha1 "4041d8f6b592fa310b8d3c79c56a2d3263dba82f"

  patch :p1 do
    url "https://gist.githubusercontent.com/congee/76693bd4b61b862b2333/raw/341b46d867120dc9b3e89a23b49f17e82be39d58/debian-patches-04_fix_compiler_warnings.diff"
    sha1 "9998bdbab1265bd84050f7f75dc5efa6ceddd91e"
  end

  patch :p1 do
    url "https://gist.githubusercontent.com/congee/ff6b5b07614c51167f79/raw/98d8507fb6c378a87d449118f05aa6a41ddd6603/debian-patches-05_fix_off_by_one.diff"
    sha1 "7c3d371274d6997e6223c17753c20ba00fd717ef"
  end

  def install
    system "./configure", "--prefix=#{prefix}"
    system "make"
    bin.install 'nbtscan'
  end

  test do
    system "false"
  end
end