2013-02-27 16:24:14 +00:00
|
|
|
class Pgpdump < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "PGP packet visualizer"
|
2015-03-28 21:07:14 +00:00
|
|
|
homepage "http://www.mew.org/~kazu/proj/pgpdump/en/"
|
|
|
|
url "http://www.mew.org/~kazu/proj/pgpdump/pgpdump-0.29.tar.gz"
|
|
|
|
sha256 "6215d9af806399fec73d81735cf20ce91033a7a89a82c4318c4d1659083ff663"
|
2013-02-27 16:24:14 +00:00
|
|
|
|
2015-04-17 20:10:48 +00:00
|
|
|
head "https://github.com/kazu-yamamoto/pgpdump.git"
|
|
|
|
|
2015-04-17 21:06:01 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "6498e4961fca95045a658fd53f8259e5ef4f1fa29cbf6e98c400ba7936fe423b" => :yosemite
|
|
|
|
sha256 "776f42e2b4f27dfdfb1ef2700428bd32b4ad12cb2408537a32b3b488aea6f273" => :mavericks
|
|
|
|
sha256 "8a4a87acaa4bd684365fdf9cef4cf58fcef591ba5230c5ff7f02db4ca3738d53" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2013-02-27 16:24:14 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2015-03-28 21:07:14 +00:00
|
|
|
system "make", "install"
|
2013-02-27 16:24:14 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-04-17 20:10:48 +00:00
|
|
|
(testpath/"sig.pgp").write <<-EOS.undent
|
|
|
|
-----BEGIN PGP MESSAGE-----
|
|
|
|
Version: GnuPG v1.2.6 (NetBSD)
|
|
|
|
Comment: For info see http://www.gnupg.org
|
|
|
|
|
|
|
|
owGbwMvMwCSYq3dE6sEMJU7GNYZJLGmZOanWn4xaQzIyixWAKFEhN7W4ODE9VaEk
|
|
|
|
XyEpVaE4Mz0vNUUhqVIhwD1Aj6vDnpmVAaQeZogg060chvkFjPMr2CZNmPnwyebF
|
|
|
|
fJP+td+b6biAYb779N1eL3gcHUyNsjliW1ekbZk6wRwA
|
|
|
|
=+jUx
|
|
|
|
-----END PGP MESSAGE-----
|
|
|
|
EOS
|
|
|
|
|
|
|
|
assert_match(/Key ID - 0x6D2EC41AE0982209/,
|
|
|
|
shell_output("#{bin}/pgpdump sig.pgp"))
|
2013-02-27 16:24:14 +00:00
|
|
|
end
|
|
|
|
end
|