aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ucspi-tcp.rb
blob: c5eab0834698f3f4be27da547bd383840b95a4c3 (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
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
    system "tcpserver"
  end
end