Skip to content

Instantly share code, notes, and snippets.

@gregneagle
Created June 23, 2014 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregneagle/e87911110029c4e8f12e to your computer and use it in GitHub Desktop.
Save gregneagle/e87911110029c4e8f12e to your computer and use it in GitHub Desktop.
<?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>Description</key>
<string>Downloads and imports Munki 2 tools. Gets the latest build from https://munkibuilds.org/munkitools2-latest.pkg</string>
<key>Identifier</key>
<string>com.foo.autopkg.munki.munkitools2</string>
<key>Input</key>
<dict>
<key>NAME</key>
<string>munkitools2</string>
<key>DOWNLOAD_URL</key>
<string>https://munkibuilds.org/munkitools2-latest.pkg</string>
<key>MUNKI_CATALOG</key>
<string>munki2</string>
<key>MUNKI_REPO_SUBDIR</key>
<string>munkitools</string>
<!-- -->
<key>MUNKITOOLS_CORE_NAME</key>
<string>munkitools_core</string>
<key>MUNKITOOLS_CORE_DISPLAYNAME</key>
<string>Managed Software Center core tools</string>
<key>MUNKITOOLS_CORE_DESCRIPTION</key>
<string>Core command-line tools used by Managed Software Center.</string>
<!-- -->
<key>MUNKITOOLS_ADMIN_NAME</key>
<string>munkitools_admin</string>
<key>MUNKITOOLS_ADMIN_DISPLAYNAME</key>
<string>Managed Software Center admin tools</string>
<key>MUNKITOOLS_ADMIN_DESCRIPTION</key>
<string>Command-line Managed Software Center admin tools.</string>
<!-- -->
<key>MUNKITOOLS_APP_NAME</key>
<string>munkitools</string>
<key>MUNKITOOLS_APP_DISPLAYNAME</key>
<string>Managed Software Center</string>
<key>MUNKITOOLS_APP_DESCRIPTION</key>
<string>Managed Software Center application.</string>
<!-- -->
<key>MUNKITOOLS_LAUNCHD_NAME</key>
<string>munkitools_launchd</string>
<key>MUNKITOOLS_LAUNCHD_DISPLAYNAME</key>
<string>Managed Software Center launchd files</string>
<key>MUNKITOOLS_LAUNCHD_DESCRIPTION</key>
<string>launchd configuration files for use by Managed Software Center</string>
</dict>
<key>MinimumVersion</key>
<string>0.2.4</string>
<key>Process</key>
<array>
<dict>
<key>Processor</key>
<string>URLDownloader</string>
<key>Arguments</key>
<dict>
<key>url</key>
<string>%DOWNLOAD_URL%</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>EndOfCheckPhase</string>
</dict>
<dict>
<key>Processor</key>
<string>FlatPkgUnpacker</string>
<key>Arguments</key>
<dict>
<key>flat_pkg_path</key>
<string>%pathname%</string>
<key>destination_path</key>
<string>%RECIPE_CACHE_DIR%/unpack</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>PkgRootCreator</string>
<key>Arguments</key>
<dict>
<key>pkgroot</key>
<string>%RECIPE_CACHE_DIR%/repack</string>
<key>pkgdirs</key>
<dict/>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>FileFinder</string>
<key>Arguments</key>
<dict>
<key>pattern</key>
<string>%RECIPE_CACHE_DIR%/unpack/munkitools_core*</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>FlatPkgPacker</string>
<key>Arguments</key>
<dict>
<key>source_flatpkg_dir</key>
<string>%found_filename%</string>
<key>destination_pkg</key>
<string>%RECIPE_CACHE_DIR%/repack/munkitools_core.pkg</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>FileFinder</string>
<key>Arguments</key>
<dict>
<key>pattern</key>
<string>%RECIPE_CACHE_DIR%/unpack/munkitools_admin*</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>FlatPkgPacker</string>
<key>Arguments</key>
<dict>
<key>source_flatpkg_dir</key>
<string>%found_filename%</string>
<key>destination_pkg</key>
<string>%RECIPE_CACHE_DIR%/repack/munkitools_admin.pkg</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>FileFinder</string>
<key>Arguments</key>
<dict>
<key>pattern</key>
<string>%RECIPE_CACHE_DIR%/unpack/munkitools_app*</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>FlatPkgPacker</string>
<key>Arguments</key>
<dict>
<key>source_flatpkg_dir</key>
<string>%found_filename%</string>
<key>destination_pkg</key>
<string>%RECIPE_CACHE_DIR%/repack/munkitools_app.pkg</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>FileFinder</string>
<key>Arguments</key>
<dict>
<key>pattern</key>
<string>%RECIPE_CACHE_DIR%/unpack/munkitools_launchd*</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>FlatPkgPacker</string>
<key>Arguments</key>
<dict>
<key>source_flatpkg_dir</key>
<string>%found_filename%</string>
<key>destination_pkg</key>
<string>%RECIPE_CACHE_DIR%/repack/munkitools_launchd.pkg</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>MunkiImporter</string>
<key>Arguments</key>
<dict>
<key>repo_subdirectory</key>
<string>%MUNKI_REPO_SUBDIR%</string>
<key>pkg_path</key>
<string>%RECIPE_CACHE_DIR%/repack/munkitools_core.pkg</string>
<key>pkginfo</key>
<dict>
<key>catalogs</key>
<array>
<string>%MUNKI_CATALOG%</string>
</array>
<key>description</key>
<string>%MUNKITOOLS_CORE_DESCRIPTION%</string>
<key>display_name</key>
<string>%MUNKITOOLS_CORE_DISPLAYNAME%</string>
<key>name</key>
<string>%MUNKITOOLS_CORE_NAME%</string>
<key>requires</key>
<array>
<string>%MUNKITOOLS_LAUNCHD_NAME%</string>
</array>
<key>unattended_install</key>
<true/>
</dict>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>MunkiImporter</string>
<key>Arguments</key>
<dict>
<key>repo_subdirectory</key>
<string>%MUNKI_REPO_SUBDIR%</string>
<key>pkg_path</key>
<string>%RECIPE_CACHE_DIR%/repack/munkitools_admin.pkg</string>
<key>pkginfo</key>
<dict>
<key>catalogs</key>
<array>
<string>%MUNKI_CATALOG%</string>
</array>
<key>description</key>
<string>%MUNKITOOLS_ADMIN_DESCRIPTION%</string>
<key>display_name</key>
<string>%MUNKITOOLS_ADMIN_DISPLAYNAME%</string>
<key>name</key>
<string>%MUNKITOOLS_ADMIN_NAME%</string>
<key>unattended_install</key>
<true/>
<key>update_for</key>
<array>
<string>%MUNKITOOLS_CORE_NAME%</string>
</array>
</dict>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>MunkiImporter</string>
<key>Arguments</key>
<dict>
<key>repo_subdirectory</key>
<string>%MUNKI_REPO_SUBDIR%</string>
<key>pkg_path</key>
<string>%RECIPE_CACHE_DIR%/repack/munkitools_app.pkg</string>
<key>pkginfo</key>
<dict>
<key>catalogs</key>
<array>
<string>%MUNKI_CATALOG%</string>
</array>
<key>description</key>
<string>%MUNKITOOLS_APP_DESCRIPTION%</string>
<key>display_name</key>
<string>%MUNKITOOLS_APP_DISPLAYNAME%</string>
<key>name</key>
<string>%MUNKITOOLS_APP_NAME%</string>
<key>requires</key>
<array>
<string>%MUNKITOOLS_CORE_NAME%</string>
<string>%MUNKITOOLS_LAUNCHD_NAME%</string>
</array>
<key>unattended_install</key>
<true/>
</dict>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>MunkiImporter</string>
<key>Arguments</key>
<dict>
<key>repo_subdirectory</key>
<string>%MUNKI_REPO_SUBDIR%</string>
<key>pkg_path</key>
<string>%RECIPE_CACHE_DIR%/repack/munkitools_launchd.pkg</string>
<key>pkginfo</key>
<dict>
<key>catalogs</key>
<array>
<string>%MUNKI_CATALOG%</string>
</array>
<key>description</key>
<string>%MUNKITOOLS_LAUNCHD_DESCRIPTION%</string>
<key>display_name</key>
<string>%MUNKITOOLS_LAUNCHD_DISPLAYNAME%</string>
<key>name</key>
<string>%MUNKITOOLS_LAUNCHD_NAME%</string>
</dict>
</dict>
</dict>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment