From 19b2cd5e1dc58887e0251cd75a1e6957c81af945 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Fri, 12 May 2017 03:01:00 +0100 Subject: [PATCH] openvpn 2.4.2 remove pkcs11-helper option Closes #13498. Signed-off-by: JCount --- Formula/openvpn.rb | 42 ++++++++++++++++++------------------------ 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/Formula/openvpn.rb b/Formula/openvpn.rb index 73a8651e28..89dc13d122 100644 --- a/Formula/openvpn.rb +++ b/Formula/openvpn.rb @@ -1,9 +1,9 @@ class Openvpn < Formula - desc "SSL VPN implementing OSI layer 2 or 3 secure network extension" + desc "SSL/TLS VPN implementing OSI layer 2 or 3 secure network extension" homepage "https://openvpn.net/index.php/download/community-downloads.html" - url "https://swupdate.openvpn.org/community/releases/openvpn-2.4.1.tar.xz" - mirror "https://build.openvpn.net/downloads/releases/openvpn-2.4.1.tar.xz" - sha256 "fde9e22c6df7a335d2d58c6a4d5967be76df173c766a5c51ece57fd044c76ee5" + url "https://swupdate.openvpn.org/community/releases/openvpn-2.4.2.tar.xz" + mirror "https://build.openvpn.net/downloads/releases/openvpn-2.4.2.tar.xz" + sha256 "df5c4f384b7df6b08a2f6fa8a84b9fd382baf59c2cef1836f82e2a7f62f1bff9" bottle do sha256 "9f4d38e20c752064701d6f068af28d90e89614107776b6c8e64ad1d25afedacc" => :sierra @@ -14,32 +14,26 @@ class Openvpn < Formula # Requires tuntap for < 10.10 depends_on :macos => :yosemite + depends_on "pkg-config" => :build depends_on "lzo" depends_on "openssl" - depends_on "pkcs11-helper" => [:optional, "without-threading", "without-slotevent"] - - if build.with? "pkcs11-helper" - depends_on "pkg-config" => :build - depends_on "autoconf" => :build - depends_on "automake" => :build - depends_on "libtool" => :build - end def install - args = %W[ - --disable-debug - --disable-dependency-tracking - --disable-silent-rules - --with-crypto-library=openssl - --prefix=#{prefix} - --enable-password-save - ] - - args << "--enable-pkcs11" if build.with? "pkcs11-helper" - - system "./configure", *args + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--disable-silent-rules", + "--with-crypto-library=openssl", + "--prefix=#{prefix}" system "make", "install" + # Install OpenVPN's new contrib helper allowing the use of + # macOS keychain certificates with OpenVPN. + cd "contrib/keychain-mcd" do + system "make" + sbin.install "keychain-mcd" + man8.install "keychain-mcd.8" + end + inreplace "sample/sample-config-files/openvpn-startup.sh", "/etc/openvpn", "#{etc}/openvpn"