2011-03-10 05:11:03 +00:00
|
|
|
class Ipcalc < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Calculate various network masks, etc. from a given IP address"
|
2015-04-05 16:32:00 +00:00
|
|
|
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
|
2015-04-05 16:32:00 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/ipcalc", "--nobinary", "192.168.0.1/24"
|
|
|
|
end
|
2009-10-30 10:44:07 +00:00
|
|
|
end
|