aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/thc-pptp-bruter.rb
blob: 219ee2e04ca74c71d8f6fb6f6646836cd4d43a17 (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
26
27
28
class ThcPptpBruter < Formula
  homepage "https://thc.org"
  url "https://freeworld.thc.org/releases/thc-pptp-bruter-0.1.4.tar.gz"
  sha1 "88a797ed0dcfb79aba92b319e29d1c5d8c1b14a4"

  bottle do
    cellar :any
    sha1 "1693dcceb59ea85f265be800af5615d75dd217b0" => :yosemite
    sha1 "e75d5e3c5eb439522a3896956918ad0f1f676907" => :mavericks
    sha1 "febbca57781732342980f6e52c3dad393cc43b30" => :mountain_lion
  end

  depends_on "openssl"

  def install
    # The function openpty() is defined in pty.h on Linux, but in util.h on OS X.
    # See https://groups.google.com/group/sage-devel/msg/97916255b631e3e5
    inreplace "src/pptp_bruter.c", "pty.h", "util.h"

    system "./configure", "--prefix=#{prefix}"
    system "make"
    system "make", "install"
  end

  test do
    system "#{bin}/thc-pptp-bruter"
  end
end