33 lines
1.4 KiB
Ruby
33 lines
1.4 KiB
Ruby
class Miruo < Formula
|
|
desc "Pretty-print TCP session monitor/analyzer"
|
|
homepage "https://github.com/KLab/miruo/"
|
|
url "https://github.com/KLab/miruo/archive/0.9.6b.tar.gz"
|
|
version "0.9.6b"
|
|
sha256 "0b31a5bde5b0e92a245611a8e671cec3d330686316691daeb1de76360d2fa5f1"
|
|
license "GPL-3.0"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "044456429802d6f6d8ba2a8d00547e0e0695e99edd1cceb1af29e70eb004d13f" => :catalina
|
|
sha256 "a71716a29094f72b62cc6a84284abb509916907c5559b25a2b85196148b86c84" => :mojave
|
|
sha256 "36df62e0454d4b7e5743a002a2ff3293e087a9fb607c369f3d23732d87330e4e" => :high_sierra
|
|
sha256 "dbe92dd3ab515528597eb76aa986f4e9d8dd512504d76ca60b86b5dc5dc70449" => :sierra
|
|
sha256 "8a5402f68bcb73e22f13fb0b049caea5d186520e81bf77889c91a558d9988c59" => :el_capitan
|
|
sha256 "f39aa9336ac2ec07ec0bd25bc7f7d3ae1b7a76c8af8c4d5e1f7e0ffdcfcbc9fe" => :yosemite
|
|
sha256 "3b5a390dae561d3ac554cbd6f16c1af6019677c3846985b116ce8fd1de649bd1" => :mavericks
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}",
|
|
"--disable-dependency-tracking",
|
|
"--with-libpcap=#{MacOS.sdk_path}/usr"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
(testpath/"dummy.pcap").write "\xd4\xc3\xb2\xa1\x02\x00\x04\x00\x00\x00\x00\x00" \
|
|
"\x00\x00\x00\x00\xff\xff\x00\x00\x01\x00\x00\x00"
|
|
system "#{sbin}/miruo", "--file=dummy.pcap"
|
|
end
|
|
end
|