Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create recipes for Aviatrix VPN Client #644

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions Aviatrix/AviatrixVPNClient.download.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Comment</key>
<string>Created with Recipe Robot v2.3.0 (https://github.com/homebysix/recipe-robot)</string>
<key>Description</key>
<string>Downloads the latest version of Aviatrix VPN Client.</string>
<key>Identifier</key>
<string>com.github.homebysix.download.AviatrixVPNClient</string>
<key>Input</key>
<dict>
<key>NAME</key>
<string>AviatrixVPNClient</string>
</dict>
<key>MinimumVersion</key>
<string>2.3</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>filename</key>
<string>%NAME%.pkg</string>
<key>url</key>
<string>https://s3-us-west-2.amazonaws.com/aviatrix-download/AviatrixVPNClient/AVPNC_mac.pkg</string>
</dict>
<key>Processor</key>
<string>URLDownloader</string>
</dict>
<dict>
<key>Processor</key>
<string>EndOfCheckPhase</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>expected_authority_names</key>
<array>
<string>Developer ID Installer: Aviatrix Systems, Inc. (32953Z7NBN)</string>
<string>Developer ID Certification Authority</string>
<string>Apple Root CA</string>
</array>
<key>input_path</key>
<string>%pathname%</string>
</dict>
<key>Processor</key>
<string>CodeSignatureVerifier</string>
</dict>
</array>
</dict>
</plist>
68 changes: 68 additions & 0 deletions Aviatrix/AviatrixVPNClient.munki.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Comment</key>
<string>Created with Recipe Robot v2.3.0 (https://github.com/homebysix/recipe-robot)</string>
<key>Description</key>
<string>Downloads the latest version of Aviatrix VPN Client and imports it into Munki.</string>
<key>Identifier</key>
<string>com.github.homebysix.munki.AviatrixVPNClient</string>
<key>Input</key>
<dict>
<key>MUNKI_REPO_SUBDIR</key>
<string>apps/%NAME%</string>
<key>NAME</key>
<string>AviatrixVPNClient</string>
<key>pkginfo</key>
<dict>
<key>blocking_applications</key>
<array>
<string>Aviatrix VPN Client.app</string>
</array>
<key>catalogs</key>
<array>
<string>testing</string>
</array>
<key>description</key>
<string>Aviatrix VPN Client is a cloud-based virtual private network solution that uses OpenVPN.</string>
<key>developer</key>
<string>Aviatrix Systems</string>
<key>display_name</key>
<string>Aviatrix VPN Client</string>
<key>name</key>
<string>%NAME%</string>
<key>preuninstall_script</key>
<string>#!/bin/bash
# Unload daemon
DAEMON_ID="aviatrix.vpn.client.rp"
if /bin/launchctl print "system/$DAEMON_ID" &amp;&gt;/dev/null; then
/bin/launchctl bootout "system/$DAEMON_ID"
fi
</string>
<key>unattended_install</key>
<true/>
<key>unattended_uninstall</key>
<true/>
</dict>
</dict>
<key>MinimumVersion</key>
<string>2.3</string>
<key>ParentRecipe</key>
<string>com.github.homebysix.download.AviatrixVPNClient</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>pkg_path</key>
<string>%pathname%</string>
<key>repo_subdirectory</key>
<string>%MUNKI_REPO_SUBDIR%</string>
</dict>
<key>Processor</key>
<string>MunkiImporter</string>
</dict>
</array>
</dict>
</plist>
Loading