class UcspiTcp < Formula homepage "http://cr.yp.to/ucspi-tcp.html" url "http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz" sha256 "4a0615cab74886f5b4f7e8fd32933a07b955536a3476d74ea087a3ea66a23e9c" patch do url "http://www.fefe.de/ucspi/ucspi-tcp-0.88-ipv6.diff19.bz2" sha256 "35952cd290d714452c840580126004cbae8db65b1632df67ac9c8fad7d1f9ace" end def install (buildpath/"conf-home").unlink (buildpath/"conf-home").write prefix system "make" bin.mkpath system "make", "setup", "check" share.install prefix/"man" end test do assert_match(/usage: tcpserver/, shell_output("#{bin}/tcpserver 2>&1", 100)) end end