class Sersniff < Formula desc "Program to tunnel/sniff between 2 serial ports" homepage "https://www.earth.li/projectpurple/progs/sersniff.html" url "https://www.earth.li/projectpurple/files/sersniff-0.0.5.tar.gz" sha256 "8aa93f3b81030bcc6ff3935a48c1fd58baab8f964b1d5e24f0aaecbd78347209" head "git://the.earth.li/sersniff" bottle do cellar :any_skip_relocation revision 1 sha256 "abde8af644fecfa883abf597486fd269b379001ae29161fbd21777d0506edc86" => :el_capitan sha256 "c0c00897dd19dc6f8dff05b57e961079c8f783ba9afc345cac9f064dd2ae6630" => :yosemite sha256 "cd8d98e4360a068975fa25f1816e1a79533b46e5da65e455a0498d334daa1761" => :mavericks end def install system "make" bin.install "sersniff" man8.install "sersniff.8" end test do assert_match(/sersniff v#{version}/, shell_output("#{bin}/sersniff -h 2>&1", 1)) end end