homebrew-core/Formula/sniffglue.rb

40 lines
1.4 KiB
Ruby

class Sniffglue < Formula
desc "Secure multithreaded packet sniffer"
homepage "https://github.com/kpcyrd/sniffglue"
url "https://github.com/kpcyrd/sniffglue/archive/v0.14.0.tar.gz"
sha256 "9c3347603550349c9686639f81a933eb12bcc76efa6c46c37888cd2aaf785e39"
license "GPL-3.0-or-later"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "b9dff099e2cbd6d5314cde13f133331d590f42d40743ba69981c269957e5e95e"
sha256 cellar: :any_skip_relocation, big_sur: "572f8ca8ce788d8b12b6585ff01ea28c7c88f919b98d9aada7497afe20c9ce58"
sha256 cellar: :any_skip_relocation, catalina: "ff12c1cf459118bac72b2dc0e27a46acdaeaaa2177d9c87ffb0b4950d6a9c5b8"
sha256 cellar: :any_skip_relocation, x86_64_linux: "0a72e4880dc7c5a4017b7c5b05167a88b39ac24d08b286ce6755b92f851a0bcc"
end
depends_on "rust" => :build
uses_from_macos "libpcap"
on_linux do
depends_on "libseccomp"
end
resource "testdata" do
url "https://github.com/kpcyrd/sniffglue/raw/163ca299bab711fb0082de216d07d7089c176de6/pcaps/SkypeIRC.pcap"
sha256 "bac79a9c3413637f871193589d848697af895b7f2700d949022224d59aa6830f"
end
def install
system "cargo", "install", *std_cargo_args
etc.install "sniffglue.conf"
man1.install "docs/sniffglue.1"
end
test do
testpath.install resource("testdata")
system bin/"sniffglue", "-r", "SkypeIRC.pcap"
end
end