homebrew-core/Formula/ipcalc.rb

15 lines
392 B
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Ipcalc < Formula
desc "Calculate various network masks, etc. from a given IP address"
homepage "http://jodies.de/ipcalc"
url "http://jodies.de/ipcalc-archive/ipcalc-0.41.tar.gz"
sha256 "dda9c571ce3369e5b6b06e92790434b54bec1f2b03f1c9df054c0988aa4e2e8a"
2009-10-30 10:44:07 +00:00
def install
2010-07-09 20:03:00 +00:00
bin.install "ipcalc"
2009-10-30 10:44:07 +00:00
end
test do
system "#{bin}/ipcalc", "--nobinary", "192.168.0.1/24"
end
2009-10-30 10:44:07 +00:00
end