homebrew-core/Formula/ucspi-tcp.rb
Mike Naberezny 7ada678ef7 ucspi-tcp: use full path to executable, fix test failure
Closes Homebrew/homebrew#29477.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2014-05-21 20:40:27 -07:00

27 lines
642 B
Ruby

require 'formula'
class UcspiTcp < Formula
homepage 'http://cr.yp.to/ucspi-tcp.html'
url 'http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz'
sha1 '793b4189795b563085602c030dd8aa0d206ddc0e'
patch do
url "http://www.fefe.de/ucspi/ucspi-tcp-0.88-ipv6.diff19.bz2"
sha1 "c055c7ff33977e595422321600f682b8d8bc9ff2"
end
def install
(buildpath/'conf-home').unlink
(buildpath/'conf-home').write prefix
system "make"
system "make setup check"
share.install prefix/'man'
end
test do
out = `#{bin}/tcpserver 2>&1`
assert out.include?("usage: tcpserver")
assert_equal 100, $?.exitstatus
end
end