28 lines
786 B
Ruby
28 lines
786 B
Ruby
class Gpscripts < Formula
|
|
desc "GlobalProtect Automation Scripts for macOS (gpstatus, gplogin, gpdisconnect, gpupdatepw)"
|
|
homepage "https://github.com/wrenchpilot/gpscripts"
|
|
url "https://github.com/wrenchpilot/gpscripts/archive/refs/heads/master.tar.gz"
|
|
version "0.0.0"
|
|
sha256 :no_check
|
|
|
|
depends_on :macos
|
|
|
|
def install
|
|
bin.install "gpstatus"
|
|
bin.install "gplogin"
|
|
bin.install "gpdisconnect"
|
|
bin.install "gpupdatepw"
|
|
doc.install "README.md" if File.exist?("README.md")
|
|
end
|
|
|
|
def caveats
|
|
<<~EOS
|
|
gpscripts nutzt macOS Keychain für Credentials/Config (GlobalProtect / GlobalProtect-Config).
|
|
Das Setup (Username/Portal/Passwort) ist im Projekt-README beschrieben.
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/gpstatus", "--help"
|
|
end
|
|
end |