homebrew-cask/Casks/s/santa.rb

36 lines
1.0 KiB
Ruby

cask "santa" do
version "2024.2"
sha256 "0aba3281b6914f30dc3fd95ee489c6d9070a802020f15c9c304ab87fc62ae77a"
url "https://github.com/google/santa/releases/download/#{version}/santa-#{version}.dmg"
name "Santa"
desc "Binary authorization system"
homepage "https://github.com/google/santa"
livecheck do
url :url
strategy :github_latest
end
pkg "santa-#{version}.pkg"
uninstall launchctl: [
"com.google.santa",
"com.google.santa.bundleservice",
"com.google.santa.metricservice",
"com.google.santa.syncservice",
"com.google.santad",
],
kext: "com.google.santa-driver",
pkgutil: "com.google.santa",
delete: [
"/Applications/Santa.app",
"/usr/local/bin/santactl",
]
# No zap stanza required
caveats "For #{token} to use EndpointSecurity, it must be granted Full Disk Access under " \
"System Preferences → Security & Privacy → Privacy"
end