openvpn 2.4.7

Closes #39028.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Thierry Moisan 2019-04-17 21:45:23 -04:00 committed by FX Coudert
parent 9f6529e3b9
commit b909e76503

View file

@ -1,9 +1,9 @@
class Openvpn < Formula
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.6.tar.xz"
mirror "https://build.openvpn.net/downloads/releases/openvpn-2.4.6.tar.xz"
sha256 "4f6434fa541cc9e363434ea71a16a62cf2615fb2f16af5b38f43ab5939998c26"
url "https://swupdate.openvpn.org/community/releases/openvpn-2.4.7.tar.xz"
mirror "https://build.openvpn.net/downloads/releases/openvpn-2.4.7.tar.xz"
sha256 "a42f53570f669eaf10af68e98d65b531015ff9e12be7a62d9269ea684652f648"
bottle do
sha256 "66f2838be95b48d8198f41d083d2400653bbc3d9f4d26235cc77ac79eb1d4e20" => :mojave
@ -20,27 +20,9 @@ class Openvpn < Formula
depends_on :macos => :yosemite
depends_on "openssl"
resource "pkcs11-helper" do
url "https://github.com/OpenSC/pkcs11-helper/releases/download/pkcs11-helper-1.22/pkcs11-helper-1.22.tar.bz2"
sha256 "fbc15f5ffd5af0200ff2f756cb4388494e0fb00b4f2b186712dce6c48484a942"
end
depends_on "pkcs11-helper"
def install
vendor = buildpath/"brew_vendor"
resource("pkcs11-helper").stage do
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{vendor}/pkcs11-helper",
"--disable-threading",
"--disable-slotevent",
"--disable-shared"
system "make", "install"
end
ENV.prepend_path "PKG_CONFIG_PATH", vendor/"pkcs11-helper/lib/pkgconfig"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",