diff options
| author | Viktor Szakáts | 2015-01-06 13:54:54 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-06 15:52:42 +0000 |
| commit | 7c44f9bf8bfaecce7c9063040284b960705af0c4 (patch) | |
| tree | 708073298264ae873d5aad952b9209b34c184039 /Library | |
| parent | 23ceee9b9b1021efac881a172deb597957af8eb2 (diff) | |
| download | homebrew-7c44f9bf8bfaecce7c9063040284b960705af0c4.tar.bz2 | |
thc-pptp-bruter: general cleanup.
Use https, test added, openssl dependency, modernizing.
Closes #35603.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/thc-pptp-bruter.rb | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/Library/Formula/thc-pptp-bruter.rb b/Library/Formula/thc-pptp-bruter.rb index 400ab64fd..ed8b57a9a 100644 --- a/Library/Formula/thc-pptp-bruter.rb +++ b/Library/Formula/thc-pptp-bruter.rb @@ -1,17 +1,21 @@ -require 'formula' - class ThcPptpBruter < Formula - homepage 'http://thc.org' - url 'http://freeworld.thc.org/releases/thc-pptp-bruter-0.1.4.tar.gz' - sha1 '88a797ed0dcfb79aba92b319e29d1c5d8c1b14a4' + homepage "https://thc.org" + url "https://freeworld.thc.org/releases/thc-pptp-bruter-0.1.4.tar.gz" + sha1 "88a797ed0dcfb79aba92b319e29d1c5d8c1b14a4" + + depends_on "openssl" def install # The function openpty() is defined in pty.h on Linux, but in util.h on OS X. - # See http://groups.google.com/group/sage-devel/msg/97916255b631e3e5 - inreplace 'src/pptp_bruter.c', 'pty.h', 'util.h' + # 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" + system "make", "install" + end + + test do + system "#{bin}/thc-pptp-bruter" end end |
