homebrew-core/Formula/sstp-client.rb

40 lines
1.2 KiB
Ruby
Raw Normal View History

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"
2015-02-18 17:09:24 +00:00
bottle do
sha1 "e94c6a28d0e72b8bc9e28de00e2bd7a58238fd7f" => :yosemite
sha1 "20b1b9612c06b3ff4f45a426f6b9cb877e1eb737" => :mavericks
sha1 "a5018ff520b6a00ff735ace4461faa5ec2163d13" => :mountain_lion
end
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