blob: 67c5cf5bcd526f98329eb890ae2a77bf97b4743c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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
|