Add VPN Tracker 365 21.7.3 (#116016)

* Add VPN Tracker 365 v.21.7.3

* Update VPN Tracker cask

* Add VPN Tracker 365 21.7.3

* Add livecheck, version url

* Rename

* Add zap stanza

* Fix blank line

* sort zap

* Update and rename vpn-tracker.rb to vpn-tracker-365.rb

Co-authored-by: Adrian Thomas <thomas@equinux.com>
Co-authored-by: Bevan Kay <email@bevankay.me>
Co-authored-by: Miccal Matthews <miccal.matthews@gmail.com>
This commit is contained in:
Adrian Thomas 2021-12-22 02:29:01 +01:00 committed by GitHub
parent c8d054ae8f
commit 19d1a6f2cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 40 additions and 0 deletions

40
Casks/vpn-tracker-365.rb Normal file
View File

@ -0,0 +1,40 @@
cask "vpn-tracker-365" do
# NOTE: "365" is not a version number, but an intrinsic part of the product name
version "21.7.3,210743"
sha256 "1ec147294b325eac97c50bb2279d406639ba2caad6115efa35b16f9f005c1f39"
url "https://download.equinux.com/files/other/VPN-Tracker-365-#{version.csv.first}-#{version.csv.second}.zip",
verified: "download.equinux.com/files/other/"
name "VPN Tracker 365"
desc "VPN client: IPsec, L2TP, OpenVPN, PPTP, SSTP, SonicWALL/AnyConnect/Fortinet SSL"
homepage "https://vpntracker.com/"
livecheck do
url "https://www.equinux.com/dlc/?l=/x/products/vpntracker/download.html&cc=com.equinux.VPNTracker&v=365&d"
regex(/VPN[._-]Tracker[._-]365[._-]v?(\d+(?:\.\d+)+)[._-](\d+(?:\.\d+)*)\.zip/i)
strategy :header_match do |headers, regex|
match = headers["location"].match(regex)
next if match.blank?
"#{match[1]},#{match[2]}"
end
end
depends_on macos: ">= :el_capitan"
app "VPN Tracker 365.app"
uninstall delete: [
"/Library/Application Support/VPN Tracker 365",
"/Library/Extensions/com.equinux.VPNTracker365.*",
"/Library/LaunchDaemons/com.equinux.VPNTracker365.agent.plist",
"/Library/Preferences/com.equinux.VPNTracker365.plist",
"/Library/PrivilegedHelperTools/com.equinux.VPNTracker365.agent",
"/Library/PrivilegedHelperTools/com.equinux.VPNTracker365.connectiond",
]
zap trash: [
"~/Library/Application Support/VPN Tracker 365",
"~/Library/Preferences/com.equinux.VPNTracker365.plist",
]
end