homebrew-core/Formula/ipcalc.rb
2015-10-23 19:53:58 +08:00

16 lines
412 B
Ruby

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"
bottle :unneeded
def install
bin.install "ipcalc"
end
test do
system "#{bin}/ipcalc", "--nobinary", "192.168.0.1/24"
end
end