homebrew-core/Formula/ipv6calc.rb
2017-03-16 23:37:14 +01:00

29 lines
1.1 KiB
Ruby

class Ipv6calc < Formula
desc "Small utility for manipulating IPv6 addresses"
homepage "https://www.deepspace6.net/projects/ipv6calc.html"
url "https://github.com/pbiering/ipv6calc/archive/0.99.2.tar.gz"
sha256 "f2eeec1b8d8626756f2cb9c461e9d1db20affccf582d43ded439bdb2d12646ef"
bottle do
cellar :any_skip_relocation
sha256 "a67a510d9788019d98836c391811b08af79f0bcbdfa0fc0b7c2ea119b7bc9afd" => :sierra
sha256 "ef399281d676e0f9d65038fa7d43f7abca807e3aaf437366126a8a1a4f6a8bf6" => :el_capitan
sha256 "ad4d9073a25962b4321648ee79658e04517d340025cc6ae346342d301cab3a40" => :yosemite
end
patch do
url "https://github.com/pbiering/ipv6calc/commit/128cb3b178dde1b9bcadc1b7a334c5eebcc529be.patch"
sha256 "3148380d4aba3b50150597ec209a1cf7aca7091d3be5f57a2e517445cb55430c"
end
def install
# This needs --mandir, otherwise it tries to install to /share/man/man8.
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
system "make"
system "make", "install"
end
test do
assert_equal "192.168.251.97", shell_output("#{bin}/ipv6calc -q --action conv6to4 --in ipv6 2002:c0a8:fb61::1 --out ipv4").strip
end
end