Skip to content

Instantly share code, notes, and snippets.

@Congee
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Congee/b0b357a6597d6e328ccb to your computer and use it in GitHub Desktop.
Save Congee/b0b357a6597d6e328ccb to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment