22 lines
531 B
Ruby
22 lines
531 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"
|
|
|
|
livecheck do
|
|
url "http://jodies.de/ipcalc-archive/"
|
|
regex(/href=.*?ipcalc[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle :unneeded
|
|
|
|
def install
|
|
bin.install "ipcalc"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/ipcalc", "--nobinary", "192.168.0.1/24"
|
|
end
|
|
end
|