homebrew-cask/Casks/duo-connect.rb

23 lines
618 B
Ruby
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

cask "duo-connect" do
version "1.1.1"
sha256 "ba54b65d5a4f8c0a79702f6d370e76fb14cb50148bc3f83b8ff29a4ac9997e78"
url "https://dl.duosecurity.com/DuoConnect-#{version}.pkg",
verified: "dl.duosecurity.com/"
name "DuoConnect"
desc "Access your organizations SSH servers"
homepage "https://guide.duo.com/duoconnect"
livecheck do
url "https://duo.com/docs/checksums#duoconnect-for-macos"
strategy :page_match
regex(%r{href=.*?/DuoConnect-(\d+(?:\.\d+)+)\.pkg}i)
end
depends_on macos: ">= :yosemite"
pkg "DuoConnect-#{version}.pkg"
uninstall pkgutil: "com.duo.connect.bin"
end