aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorTamas Nepusz2015-02-18 17:23:56 +0100
committerMike McQuaid2015-02-19 09:30:55 +0000
commit3242ee8ad619a651f14b7bb6e51272ccd412fec3 (patch)
treef02888554517fb548e426bfa8a6a1ac00042e949 /Library/Formula
parentc86df1583cf9001a8d82ce208c7416cf5680ce2a (diff)
downloadhomebrew-3242ee8ad619a651f14b7bb6e51272ccd412fec3.tar.bz2
sstp-client 1.0.9
Closes #36937. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/sstp-client.rb33
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