homebrew-core/Formula/ipv6calc.rb

27 lines
1001 B
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/2.2.0.tar.gz"
sha256 "1935352f6171b07f18ce0487ee95ffcc006ea3f653f7cba564d2d8e135f04ca1"
license "GPL-2.0"
bottle do
cellar :any_skip_relocation
sha256 "f38b9f04ac49b301c599a497b2c4cbc562bc2fcfb73db76ba787fa10d185be76" => :catalina
sha256 "df70a9f7bb60eb8c65ed1b7ef6d850f3c2d57321e9be3e814c2480edac3c89df" => :mojave
sha256 "8e1168b64a282ce94ded17806bd16142920411f9515f17cd5bb7ed1eb272635c" => :high_sierra
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