diff options
| author | Tamas Nepusz | 2015-02-18 17:23:56 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-19 09:30:55 +0000 |
| commit | 3242ee8ad619a651f14b7bb6e51272ccd412fec3 (patch) | |
| tree | f02888554517fb548e426bfa8a6a1ac00042e949 /Library | |
| parent | c86df1583cf9001a8d82ce208c7416cf5680ce2a (diff) | |
| download | homebrew-3242ee8ad619a651f14b7bb6e51272ccd412fec3.tar.bz2 | |
sstp-client 1.0.9
Closes #36937.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/sstp-client.rb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Library/Formula/sstp-client.rb b/Library/Formula/sstp-client.rb new file mode 100644 index 000000000..726230af2 --- /dev/null +++ b/Library/Formula/sstp-client.rb @@ -0,0 +1,33 @@ +class SstpClient < Formula + homepage "http://sstp-client.sourceforge.net" + url "https://downloads.sourceforge.net/project/sstp-client/sstp-client/1.0.9/sstp-client-1.0.9.tar.gz" + sha1 "b56c60fc6ecd8b1686d6c319a8adb3f988bcabbd" + + depends_on "libevent" + depends_on "openssl" + + def install + system "./configure", "--disable-dependency-tracking", + "--disable-silent-rules", + "--disable-ppp-plugin", + "--prefix=#{prefix}" + system "make", "install" + + # Create a directory needed by sstpc for privilege separation + mkdir_p "var/run/sstpc" + end + + def caveats; <<-EOS.undent + sstpc reads PPP configuration options from /etc/ppp/options. If this file + does not exist yet, type the following command to create it: + + sudo touch /etc/ppp/options + EOS + end + + test do + # I know it's a bad test, but I have no idea how to test a VPN client + # more thoroughly without trying to connect to an actual VPN server + system "#{sbin}/sstpc", "--version" + end +end |
