diff --git a/Formula/gpscripts.rb b/Formula/gpscripts.rb new file mode 100644 index 0000000..0b2ba16 --- /dev/null +++ b/Formula/gpscripts.rb @@ -0,0 +1,28 @@ +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 \ No newline at end of file