2015-02-18 16:23:56 +00:00
|
|
|
class SstpClient < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "SSTP (Microsofts Remote Access Solution for PPP over SSL) client"
|
2015-02-18 16:23:56 +00:00
|
|
|
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"
|
2015-02-19 10:42:13 +00:00
|
|
|
revision 1
|
2015-02-18 16:23:56 +00:00
|
|
|
|
2015-02-18 17:09:24 +00:00
|
|
|
bottle do
|
2015-02-19 11:01:47 +00:00
|
|
|
cellar :any
|
|
|
|
sha1 "844e03c512067d1f378acd6af678654915882edd" => :yosemite
|
|
|
|
sha1 "d8f68257b54af08c4942a60892c36616a8f03a05" => :mavericks
|
|
|
|
sha1 "0984d3b9beed2cf92a47218bfb43bf4ff3b606b1" => :mountain_lion
|
2015-02-18 17:09:24 +00:00
|
|
|
end
|
|
|
|
|
2015-02-18 16:23:56 +00:00
|
|
|
depends_on "libevent"
|
|
|
|
depends_on "openssl"
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--disable-ppp-plugin",
|
2015-02-19 10:42:13 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-runtime-dir=#{var}/run/sstpc"
|
|
|
|
|
2015-02-18 16:23:56 +00:00
|
|
|
system "make", "install"
|
|
|
|
|
|
|
|
# Create a directory needed by sstpc for privilege separation
|
2015-02-19 10:42:13 +00:00
|
|
|
mkdir_p var/"run/sstpc"
|
2015-02-18 16:23:56 +00:00
|
|
|
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
|