Skip to content

Instantly share code, notes, and snippets.

@hjuutilainen
Created September 13, 2013 17:10
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hjuutilainen/6553367 to your computer and use it in GitHub Desktop.
Save hjuutilainen/6553367 to your computer and use it in GitHub Desktop.
Munki pkginfo for Cisco AnyConnect. Some not-so-interesting keys removed...
<?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>display_name</key>
<string>Cisco AnyConnect Secure Mobility Client</string>
<key>installer_choices_xml</key>
<array>
<dict>
<key>attributeSetting</key>
<integer>0</integer>
<key>choiceAttribute</key>
<string>selected</string>
<key>choiceIdentifier</key>
<string>choice_dart</string>
</dict>
<dict>
<key>attributeSetting</key>
<integer>0</integer>
<key>choiceAttribute</key>
<string>selected</string>
<key>choiceIdentifier</key>
<string>choice_posture</string>
</dict>
<dict>
<key>attributeSetting</key>
<integer>1</integer>
<key>choiceAttribute</key>
<string>selected</string>
<key>choiceIdentifier</key>
<string>choice_vpn</string>
</dict>
<dict>
<key>attributeSetting</key>
<integer>0</integer>
<key>choiceAttribute</key>
<string>selected</string>
<key>choiceIdentifier</key>
<string>choice_websecurity</string>
</dict>
</array>
<key>installs</key>
<array>
<dict>
<key>CFBundleIdentifier</key>
<string>com.cisco.Cisco-AnyConnect-Secure-Mobility-Client</string>
<key>CFBundleName</key>
<string>Cisco AnyConnect Secure Mobility Client</string>
<key>CFBundleShortVersionString</key>
<string>3.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>minosversion</key>
<string>10.6</string>
<key>path</key>
<string>/Applications/Cisco/Cisco AnyConnect Secure Mobility Client.app</string>
<key>type</key>
<string>application</string>
<key>version_comparison_key</key>
<string>CFBundleShortVersionString</string>
</dict>
<dict>
<key>CFBundleIdentifier</key>
<string>com.cisco.uninstaller</string>
<key>CFBundleName</key>
<string>Uninstall AnyConnect</string>
<key>CFBundleVersion</key>
<string>3.1.04063</string>
<key>path</key>
<string>/Applications/Cisco/Uninstall AnyConnect.app</string>
<key>type</key>
<string>application</string>
<key>version_comparison_key</key>
<string>CFBundleVersion</string>
</dict>
<dict>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.vpndownloader</string>
<key>CFBundleName</key>
<string>vpndownloader</string>
<key>CFBundleVersion</key>
<string>3.1.04063</string>
<key>path</key>
<string>/opt/cisco/anyconnect/bin/vpndownloader.app</string>
<key>type</key>
<string>application</string>
<key>version_comparison_key</key>
<string>CFBundleVersion</string>
</dict>
</array>
<key>minimum_os_version</key>
<string>10.5.0</string>
<key>name</key>
<string>AnyConnect</string>
<key>postinstall_script</key>
<string>#!/bin/sh
# Hide /opt directory
chflags hidden /opt
exit 0
</string>
<key>receipts</key>
<array>
<dict>
<key>installed_size</key>
<integer>1452</integer>
<key>optional</key>
<true/>
<key>packageid</key>
<string>com.cisco.pkg.anyconnect.dart</string>
<key>version</key>
<string>3.1.04063</string>
</dict>
<dict>
<key>installed_size</key>
<integer>5571</integer>
<key>optional</key>
<true/>
<key>packageid</key>
<string>com.cisco.pkg.anyconnect.posture</string>
<key>version</key>
<string>3.1.04063</string>
</dict>
<dict>
<key>installed_size</key>
<integer>12317</integer>
<key>packageid</key>
<string>com.cisco.pkg.anyconnect.vpn</string>
<key>version</key>
<string>3.1.04063</string>
</dict>
<dict>
<key>installed_size</key>
<integer>3099</integer>
<key>optional</key>
<true/>
<key>packageid</key>
<string>com.cisco.pkg.anyconnect.websecurity</string>
<key>version</key>
<string>3.1.04063</string>
</dict>
</array>
<key>unattended_install</key>
<true/>
<key>unattended_uninstall</key>
<true/>
<key>uninstall_method</key>
<string>uninstall_script</string>
<key>uninstall_script</key>
<string>#!/bin/sh
# Run the Cisco provided uninstall script
/opt/cisco/anyconnect/bin/anyconnect_uninstall.sh
# Remove other traces
rm -rf /opt/cisco/anyconnect
exit 0
</string>
<key>uninstallable</key>
<true/>
<key>version</key>
<string>3.1.04063</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment