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

[1.1.0] Better error wording regarding pkg_path #176

Open
Marschelloss opened this issue Feb 10, 2020 · 0 comments
Open

[1.1.0] Better error wording regarding pkg_path #176

Marschelloss opened this issue Feb 10, 2020 · 0 comments

Comments

@Marschelloss
Copy link

Correctly configured AutoPKG and JSSImporter throw off misleading error message if used recipe doesn't provide correct pkg_path e.g.: Package upload and object update skipped. If this is a mistake, ensure you have JSS_REPOS configured..

JSSImporter: 1.1.0
python-jss: 2.1.0
Jamf: Cloud Version + CDP

Output of autopkg run -vvvv de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator:

Processing de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator...
{'API_PASSWORD': 'xxxxxx',
 'API_USERNAME': 'user',
 'AUTOPKG_VERSION': '2.0.2',
 'CATEGORY': 'Grafik',
 'GIT_PATH': '/Library/Developer/CommandLineTools/usr/bin/git',
 'GROUP_NAME': 'ColorNavigator',
 'GROUP_TEMPLATE': 'SmartGroupTemplate.xml',
 'JSS_REPOS': [{'type': 'CDP'}],
 'JSS_URL': 'https://xxx.jamfcloud.com',
 'JSS_VERIFY_SSL': True,
 'NAME': 'ColorNavigator',
 'PARENT_RECIPES': ['/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.foigus-recipes/EIZO/ColorNavigator7.pkg.recipe',
                    '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.foigus-recipes/EIZO/ColorNavigator7.download.recipe'],
 'PATCH_NAME': 'ColorNavigator',
 'PATCH_TEMPLATE': 'PatchTemplate.xml',
 'POLICY_CATEGORY': 'Testing',
 'POLICY_TEMPLATE': 'PolicyTemplate.xml',
 'RECIPE_CACHE_DIR': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator',
 'RECIPE_DIR': '/Users/user/Library/AutoPkg/RecipeRepos/de.nbi.gitlab.itsm-public.itsm-recipes/Color '
               'Navigator',
 'RECIPE_OVERRIDE_DIRS': ['~/Library/AutoPkg/RecipeOverrides'],
 'RECIPE_PATH': '/Users/user/Library/AutoPkg/RecipeRepos/de.nbi.gitlab.itsm-public.itsm-recipes/Color '
                'Navigator/ColorNavigator.jss.recipe',
 'RECIPE_REPOS': {'/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.foigus-recipes': {'URL': 'https://github.com/autopkg/foigus-recipes.git'},
                  '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.hjuutilainen-recipes': {'URL': 'https://github.com/autopkg/hjuutilainen-recipes.git'},
                  '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.jss-recipes': {'URL': 'https://github.com/autopkg/jss-recipes.git'},
                  '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.keeleysam-recipes': {'URL': 'https://github.com/autopkg/keeleysam-recipes.git'},
                  '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.scriptingosx-recipes': {'URL': 'https://github.com/autopkg/scriptingosx-recipes.git'},
                  '/Users/user/Library/AutoPkg/RecipeRepos/de.nbi.gitlab.itsm-public.itsm-recipes': {'URL': 'https://gitlab.nbi.de/itsm-public/itsm-recipes.git'}},
 'RECIPE_SEARCH_DIRS': ['.',
                        '~/Library/AutoPkg/Recipes',
                        '/Library/AutoPkg/Recipes',
                        '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.jss-recipes',
                        '/Users/user/Library/AutoPkg/RecipeRepos/de.nbi.gitlab.itsm-public.itsm-recipes',
                        '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.scriptingosx-recipes',
                        '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.keeleysam-recipes',
                        '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.foigus-recipes',
                        '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.hjuutilainen-recipes',
                        '/Users/user/Library/AutoPkg/RecipeRepos/de.nbi.gitlab.itsm-public.itsm-recipes/Color '
                        'Navigator',
                        '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.foigus-recipes/EIZO'],
 'SELF_SERVICE_DESCRIPTION': 'EIZO Color Navigator 7',
 'SELF_SERVICE_ICON': 'ColorNavigator.png',
 'verbose': 4}
URLTextSearcher
{'Input': {'re_pattern': 'https:\\/\\/www\\.eizo\\.co\\.jp\\/update\\/ColorNavigator([\\d]+)DLI.pkg',
           'result_output_var_name': 'shortversion',
           'url': 'https://www.eizo.co.jp/update/cn7-update.json'}}
URLTextSearcher: Curl command: ['/usr/bin/curl', '--compressed', '--location', 'https://www.eizo.co.jp/update/cn7-update.json']
URLTextSearcher: Found matching text (shortversion): 708
{'Output': {'shortversion': '708'}}
URLDownloader
{'Input': {'filename': 'ColorNavigator.pkg',
           'url': 'https://www.eizoglobal.com/support/db/files/software/software/graphics/colornavigator7/ColorNavigator708.pkg'}}
URLDownloader: No value supplied for prefetch_filename, setting default value of: False
URLDownloader: No value supplied for CHECK_FILESIZE_ONLY, setting default value of: False
URLDownloader: Curl command: ['/usr/bin/curl', '--silent', '--show-error', '--no-buffer', '--dump-header', '-', '--speed-time', '30', '--location', '--url', 'https://www.eizoglobal.com/support/db/files/software/software/graphics/colornavigator7/ColorNavigator708.pkg', '--fail', '--output', '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/downloads/tmpjxg1huww', '--header', 'If-None-Match: "1da8007-92207d0-3e9b2200"', '--header', 'If-Modified-Since: Thu, 12 Dec 2019 03:21:44 GMT']
URLDownloader: Item at URL is unchanged.
URLDownloader: Using existing /Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/downloads/ColorNavigator.pkg
{'Output': {'pathname': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/downloads/ColorNavigator.pkg'}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'expected_authority_names': ['Developer ID Installer: EIZO '
                                        'Corporation (FWVNE2DRY7)',
                                        'Developer ID Certification Authority',
                                        'Apple Root CA'],
           'input_path': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/downloads/ColorNavigator.pkg'}}
CodeSignatureVerifier: Verifying installer package signature...
CodeSignatureVerifier: Package "ColorNavigator.pkg":
CodeSignatureVerifier:    Status: signed by a certificate trusted by Mac OS X
CodeSignatureVerifier:    Certificate Chain:
CodeSignatureVerifier:     1. Developer ID Installer: EIZO Corporation (FWVNE2DRY7)
CodeSignatureVerifier:        SHA1 fingerprint: 88 A2 CF A1 35 D1 41 E8 3B 22 31 52 18 68 90 88 F7 F3 58 16
CodeSignatureVerifier:        -----------------------------------------------------------------------------
CodeSignatureVerifier:     2. Developer ID Certification Authority
CodeSignatureVerifier:        SHA1 fingerprint: 3B 16 6C 3B 7D C4 B7 51 C9 FE 2A FA B9 13 56 41 E3 88 E1 86
CodeSignatureVerifier:        -----------------------------------------------------------------------------
CodeSignatureVerifier:     3. Apple Root CA
CodeSignatureVerifier:        SHA1 fingerprint: 61 1E 5B 66 2C 59 3A 08 FF 58 D1 4A E2 24 52 D1 98 DF 6C 60
CodeSignatureVerifier: 
CodeSignatureVerifier: Signature is valid
CodeSignatureVerifier: Authority name chain is valid
{'Output': {}}
FlatPkgUnpacker
{'Input': {'destination_path': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/unpack',
           'flat_pkg_path': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/downloads/ColorNavigator.pkg',
           'purge_destination': True}}
FlatPkgUnpacker: Unpacked /Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/downloads/ColorNavigator.pkg to /Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/unpack
{'Output': {}}
io.github.hjuutilainen.SharedProcessors/ChecksumVerifier
{'Input': {'algorithm': 'MD5',
           'checksum': 'd5af1500ee9fc8f4a46fd85dafbd7250',
           'pathname': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/unpack/ColorNavigator_7.pkg/Scripts/postinstall'}}
ChecksumVerifier: Calculating MD5 checksum for /Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/unpack/ColorNavigator_7.pkg/Scripts/postinstall
ChecksumVerifier: Calculated checksum: d5af1500ee9fc8f4a46fd85dafbd7250
ChecksumVerifier: Expected checksum:   d5af1500ee9fc8f4a46fd85dafbd7250
ChecksumVerifier: Calculated checksum matches the expected checksum.
{'Output': {}}
PathDeleter
{'Input': {'path_list': ['/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/unpack/ColorNavigator_7.pkg/Scripts/postinstall']}}
PathDeleter: Deleted /Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/unpack/ColorNavigator_7.pkg/Scripts/postinstall
{'Output': {}}
FileCreator
{'Input': {'file_content': '#!/bin/sh\n'
                           '##Edit to disable opening the ColorNavigator 7 '
                           'window following installation\n'
                           '\n'
                           '#-------------------------------------------------------------------------------\n'
                           '# Defines\n'
                           '#-------------------------------------------------------------------------------\n'
                           '\n'
                           'readonly PLUGS="./bin/plugs"\n'
                           'readonly SRC_PLUGINS_DIR="./plugins"\n'
                           'readonly KEXT_DIR="./kext"\n'
                           '\n'
                           'readonly APP_DATA_DIR="/Library/Application '
                           'Support/EIZO/ColorNavigator 7"\n'
                           'readonly '
                           'INIT_SETTING_DIR="${APP_DATA_DIR}/_initialsetting"\n'
                           'readonly PLUGINS_DIR="${APP_DATA_DIR}/plugins"\n'
                           '\n'
                           'readonly PKG_DIR=`dirname "${PACKAGE_PATH}"`\n'
                           'readonly '
                           'INST_FLAG_DIR="${HOME}/.com.eizo.cn7.inst"\n'
                           '\n'
                           '# Install plugins\n'
                           'readonly PLUGINS=(\n'
                           '\t"com.eizo.cn7.libs"\n'
                           '\t"com.eizo.cn7.sensorsdk"\n'
                           '\t"com.eizo.framework.databasecontrol"\n'
                           '\t"com.eizo.framework.monitorcontrol"\n'
                           '\t"com.eizo.framework.sensorcontrol"\n'
                           '\t"com.eizo.framework.flour"\n'
                           '\t"com.eizo.framework.milk"\n'
                           '\t"com.eizo.framework.oil"\n'
                           '\t"com.eizo.framework.qualitycontrol"\n'
                           '\t"com.eizo.cn7.data.value"\n'
                           '\t"com.eizo.cn7.capability"\n'
                           '\t"com.eizo.cn7.core"\n'
                           '\t"com.eizo.cn7.help"\n'
                           '\t"com.eizo.cn7.i18n.de"\n'
                           '\t"com.eizo.cn7.i18n.en"\n'
                           '\t"com.eizo.cn7.i18n.ja"\n'
                           '\t"com.eizo.cn7.i18n.zh"\n'
                           '\t"com.eizo.cn7.base"\n'
                           '\t"com.eizo.cn7.data.model"\n'
                           '\t"com.eizo.cn7.common"\n'
                           '\t"com.eizo.cn7.calibration"\n'
                           '\t"com.eizo.cn7.manualAdjustment"\n'
                           '\t"com.eizo.cn7.rgbValidation"\n'
                           '\t"com.eizo.cn7.ui"\n'
                           '\t"com.eizo.cn7.ext.assetinformationmanagement"\n'
                           '\t"com.eizo.cn7.ext.cmykValidation"\n'
                           '\t"com.eizo.cn7.ext.cnnetwork"\n'
                           '\t"com.eizo.cn7.ext.correlation"\n'
                           '\t"com.eizo.cn7.ext.deviceMeasurement"\n'
                           '\t"com.eizo.cn7.ext.iccProfileEmulation"\n'
                           '\t"com.eizo.cn7.ext.lightbooth"\n'
                           '\t"com.eizo.cn7.ext.logViewLutEmulation"\n'
                           '\t"com.eizo.cn7.ext.monitorkeylocksetting"\n'
                           '\t"com.eizo.cn7.ext.monitoroptionsetting"\n'
                           '\t"com.eizo.cn7.ext.profadvsetting"\n'
                           '\t"com.eizo.cn7.ext.syncAdjustmentInformation"\n'
                           '\t"com.eizo.cn7.ext.targetCreationAssist"\n'
                           '\t"com.eizo.cn7.ext.monitorConfigExportImport"\n'
                           ')\n'
                           '\n'
                           '#-------------------------------------------------------------------------------\n'
                           '# Install plugins\n'
                           '#-------------------------------------------------------------------------------\n'
                           '\n'
                           'umask 000\n'
                           'for pluginName in ${PLUGINS[@]}; do\n'
                           '\t"${PLUGS}" "${PLUGINS_DIR}" install '
                           '"${SRC_PLUGINS_DIR}/${pluginName}.zip"\n'
                           '\twait\n'
                           'done\n'
                           'umask 022\n'
                           '\n'
                           '#-------------------------------------------------------------------------------\n'
                           '# Handle installer setting/selection\n'
                           '#-------------------------------------------------------------------------------\n'
                           '\n'
                           'rm -rf "${INIT_SETTING_DIR}"\n'
                           'mkdir "${INIT_SETTING_DIR}"\n'
                           'chmod 777 "${INIT_SETTING_DIR}"\n'
                           '\n'
                           '# Remove CN6\n'
                           'if [ -e "${INST_FLAG_DIR}/remove_cn6" ]; then\n'
                           '\tkillall "ColorNavigator 6"\n'
                           '\t# terminate eacore and dummy\n'
                           "\tfor i in `ps aux -w | grep 'ColorNavigator "
                           "6.app' | grep -v grep | awk '{print $2}'`\n"
                           '\tdo\n'
                           '\t\tkill $i\n'
                           '\tdone\n'
                           '\n'
                           '\trm -rf "/Applications/ColorNavigator 6.app"\n'
                           '\twait\n'
                           'fi\n'
                           '\n'
                           '# Remove CNNX\n'
                           'if [ -e "/Applications/ColorNavigator NX.app" ]; '
                           'then\n'
                           '\tkillall "ColorNavigator NX"\n'
                           '\t# terminate eacore and dummy\n'
                           "\tfor i in `ps aux -w | grep 'ColorNavigator "
                           "NX.app' | grep -v grep | awk '{print $2}'`\n"
                           '\tdo\n'
                           '\t\tkill $i\n'
                           '\tdone\n'
                           '\n'
                           '\trm -rf "/Applications/ColorNavigator NX.app"\n'
                           '\twait\n'
                           'fi\n'
                           '\n'
                           '# Remove CNNetAgent\n'
                           'if [ -e "/Applications/CNNetAgent.app" ]; then\n'
                           '\tkillall "CNNetAgent"\n'
                           '\trm -rf "/Applications/CNNetAgent.app"\n'
                           '\twait\n'
                           'fi\n'
                           '\n'
                           '# Create initSetting files\n'
                           'if [ -e "${INST_FLAG_DIR}/checks_update" ]; then\n'
                           '\tcat /dev/null > '
                           '"${INIT_SETTING_DIR}/checks_update"\n'
                           'fi\n'
                           '\n'
                           '#-------------------------------------------------------------------------------\n'
                           '# Handle installer setting files\n'
                           '#-------------------------------------------------------------------------------\n'
                           '\n'
                           '# Preferences\n'
                           'cp "${PKG_DIR}/preferences.json" '
                           '"${INIT_SETTING_DIR}/"\n'
                           '\n'
                           '# Language packs\n'
                           'for f in `find "${PKG_DIR}" -name '
                           '"com.eizo.cn7.i18n.*.zip"`; do\n'
                           '\tcp "$f" "${INIT_SETTING_DIR}/"\n'
                           'done\n'
                           '\n'
                           '# Setup CNNetwork\n'
                           './bin/set_net_mac.sh -src "${PKG_DIR}" -dst '
                           '"${INIT_SETTING_DIR}"\n'
                           '\n'
                           '#-------------------------------------------------------------------------------\n'
                           '# Copy basICColorDISCUS.kext\n'
                           '#-------------------------------------------------------------------------------\n'
                           '# check OS version is newer than 10.15\n'
                           'CATALINA_OR_LATER=$(sw_vers -productVersion \\\n'
                           '    | awk -F. \'{ print $1 "." $2 }\' \\\n'
                           '    | (read v ; echo "$v >= 10.15"; ) \\\n'
                           '    | bc)\n'
                           '\n'
                           'if [ $(expr $CATALINA_OR_LATER) -eq 1 ]; then\n'
                           '    cp -rf "${KEXT_DIR}/basICColorDISCUS.kext" '
                           '"/Library/Extensions"\n'
                           'else\n'
                           '    cp -rf "${KEXT_DIR}/basICColorDISCUS.kext" '
                           '"/System/Library/Extensions"\n'
                           'fi\n'
                           '\n'
                           '#-------------------------------------------------------------------------------\n'
                           '# Additional Setup\n'
                           '#-------------------------------------------------------------------------------\n'
                           '\n'
                           'ln -sf /usr/local/lib/libftd2xx.1.2.2.dylib '
                           '/usr/local/lib/libftd2xx.dylib\n'
                           '\n'
                           '/sbin/kextload -b '
                           'com.basICColor.driver.basICColorDISCUS\n'
                           '\n'
                           '# db name is changed from v7.0.5. So if db has old '
                           'name, it need to update.\n'
                           'if [ -d "${APP_DATA_DIR}/db" -a ! -d '
                           '"${APP_DATA_DIR}/db.0" ]; then\n'
                           '\tmv "${APP_DATA_DIR}/db" "${APP_DATA_DIR}/db.0"\n'
                           'elif [ ! -d "${APP_DATA_DIR}/db.0" ]; then\n'
                           '\tmkdir  "${APP_DATA_DIR}/db.0"\n'
                           'fi\n'
                           '\n'
                           '#-------------------------------------------------------------------------------\n'
                           '# Creanup\n'
                           '#-------------------------------------------------------------------------------\n'
                           '\n'
                           '# Remove installer setting file\n'
                           'if [ -e "${INST_FLAG_DIR}" ]; then\n'
                           '\trm -rf "${INST_FLAG_DIR}"\n'
                           'fi\n'
                           '\n'
                           '# For Permission error by Mac updating\n'
                           'chmod 777 /Library/Application\\ '
                           'Support/EIZO/ColorNavigator\\ 7\n'
                           'chmod 777 /Library/Application\\ '
                           'Support/EIZO/ColorNavigator\\ 7/db.0\n'
                           'chmod 777 /Library/Application\\ Support/EIZO/db\n'
                           'chmod u+w ~/\n'
                           'chmod a+rx /usr/local/lib\n'
                           '\n'
                           '\n'
                           '# Launch Application\n'
                           "##Don't open the ColorNavigator window, it causes "
                           'the installation to fail\n'
                           '##su ${USER} -c "open '
                           '/Applications/ColorNavigator\\ 7.app"\n',
           'file_mode': '0755',
           'file_path': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/unpack/ColorNavigator_7.pkg/Scripts/postinstall'}}
FileCreator: Created file at /Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/unpack/ColorNavigator_7.pkg/Scripts/postinstall
{'Output': {}}
PkgRootCreator
{'Input': {'pkgdirs': {},
           'pkgroot': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/payload/root'}}
PkgRootCreator: Created /Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/payload/root
{'Output': {}}
PkgPayloadUnpacker
{'Input': {'destination_path': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/payload/root',
           'pkg_payload_path': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/unpack/ColorNavigator_7.pkg/Payload',
           'purge_destination': True}}
PkgPayloadUnpacker: Unpacked /Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/unpack/ColorNavigator_7.pkg/Payload to /Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/payload/root
{'Output': {}}
Versioner
{'Input': {'input_plist_path': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/payload/root/Applications/ColorNavigator '
                               '7.app/Contents/Info.plist'}}
Versioner: No value supplied for plist_version_key, setting default value of: CFBundleShortVersionString
Versioner: Found version 7.0.8 in file /Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/payload/root/Applications/ColorNavigator 7.app/Contents/Info.plist
{'Output': {'version': '7.0.8'}}
PkgRootCreator
{'Input': {'pkgdirs': {},
           'pkgroot': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/repack'}}
PkgRootCreator: Created /Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/repack
{'Output': {}}
FlatPkgPacker
{'Input': {'destination_pkg': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/repack/ColorNavigator7-7.0.8.pkg',
           'source_flatpkg_dir': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/unpack'}}
FlatPkgPacker: Flattened /Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/unpack to /Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/repack/ColorNavigator7-7.0.8.pkg
{'Output': {}}
JSSImporter
{'Input': {'API_PASSWORD': 'xxxxxx',
           'API_USERNAME': 'user',
           'JSS_REPOS': [{'type': 'CDP'}],
           'JSS_URL': 'https://xxx.jamfcloud.com',
           'JSS_VERIFY_SSL': True,
           'category': 'Grafik',
           'groups': [{'name': 'ColorNavigator',
                       'smart': True,
                       'template_path': 'SmartGroupTemplate.xml'}],
           'policy_category': 'Testing',
           'policy_template': 'PolicyTemplate.xml',
           'prod_name': 'ColorNavigator',
           'self_service_description': 'EIZO Color Navigator 7',
           'self_service_icon': 'ColorNavigator.png',
           'version': '7.0.8'}}
JSSImporter: No value supplied for pkg_path, setting default value of: 
JSSImporter: No value supplied for JSS_SUPPRESS_WARNINGS, setting default value of: True
JSSImporter: No value supplied for force_policy_state, setting default value of: True
JSSImporter: No value supplied for os_requirements, setting default value of: 
JSSImporter: No value supplied for package_info, setting default value of: 
JSSImporter: No value supplied for package_notes, setting default value of: 
JSSImporter: No value supplied for package_priority, setting default value of: 10
JSSImporter: No value supplied for package_reboot, setting default value of: False
JSSImporter: No value supplied for package_boot_volume_required, setting default value of: True
JSSImporter: No value supplied for policy_action_type, setting default value of: Install
JSSImporter: No value supplied for STOP_IF_NO_JSS_UPLOAD, setting default value of: True
JSSImporter: No value supplied for skip_scope, setting default value of: False
JSSImporter: No value supplied for skip_scripts, setting default value of: False
JSSImporter: python-jss version: 2.1.
JSSImporter: JSSImporter version: 1.1.0.
GET https://xxx.jamfcloud.com/JSSResource/jssuser: Success.
Retrieving data from JSS...
GET https://xxx.jamfcloud.com/JSSResource/jssuser: Success.
JSSImporter: Jamf Pro version: '10.18.0-t1576686828'
GET https://xxx.jamfcloud.com/JSSResource/categories/name/Grafik: Success.
JSSImporter: Category, type 'category', name 'Grafik', already exists on the Jamf Pro server, moving on...
GET https://xxx.jamfcloud.com/JSSResource/categories/name/Testing: Success.
JSSImporter: Category, type 'policy_category', name 'Testing', already exists on the Jamf Pro server, moving on...
JSSImporter: Checking if DP already mounted...
JSSImporter: Package upload and object update skipped. If this is a mistake, ensure you have JSS_REPOS configured.
JSSImporter: Unmounting DP...
{'Output': {'jss_changed_objects': {'jss_category_added': [],
                                    'jss_extension_attribute_added': [],
                                    'jss_extension_attribute_updated': [],
                                    'jss_group_added': [],
                                    'jss_group_updated': [],
                                    'jss_icon_uploaded': [],
                                    'jss_package_added': [],
                                    'jss_package_updated': [],
                                    'jss_policy_added': [],
                                    'jss_policy_updated': [],
                                    'jss_repo_updated': [],
                                    'jss_script_added': [],
                                    'jss_script_updated': []}}}
{'API_PASSWORD': 'xxxxxx',
 'API_USERNAME': 'user',
 'AUTOPKG_VERSION': '2.0.2',
 'CATEGORY': 'Grafik',
 'CHECK_FILESIZE_ONLY': False,
 'GIT_PATH': '/Library/Developer/CommandLineTools/usr/bin/git',
 'GROUP_NAME': 'ColorNavigator',
 'GROUP_TEMPLATE': 'SmartGroupTemplate.xml',
 'JSS_REPOS': [{'type': 'CDP'}],
 'JSS_SUPPRESS_WARNINGS': True,
 'JSS_URL': 'https://xxx.jamfcloud.com',
 'JSS_VERIFY_SSL': True,
 'NAME': 'ColorNavigator',
 'PARENT_RECIPES': ['/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.foigus-recipes/EIZO/ColorNavigator7.pkg.recipe',
                    '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.foigus-recipes/EIZO/ColorNavigator7.download.recipe'],
 'PATCH_NAME': 'ColorNavigator',
 'PATCH_TEMPLATE': 'PatchTemplate.xml',
 'POLICY_CATEGORY': 'Testing',
 'POLICY_TEMPLATE': 'PolicyTemplate.xml',
 'RECIPE_CACHE_DIR': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator',
 'RECIPE_DIR': '/Users/user/Library/AutoPkg/RecipeRepos/de.nbi.gitlab.itsm-public.itsm-recipes/Color '
               'Navigator',
 'RECIPE_OVERRIDE_DIRS': ['~/Library/AutoPkg/RecipeOverrides'],
 'RECIPE_PATH': '/Users/user/Library/AutoPkg/RecipeRepos/de.nbi.gitlab.itsm-public.itsm-recipes/Color '
                'Navigator/ColorNavigator.jss.recipe',
 'RECIPE_REPOS': {'/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.foigus-recipes': {'URL': 'https://github.com/autopkg/foigus-recipes.git'},
                  '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.hjuutilainen-recipes': {'URL': 'https://github.com/autopkg/hjuutilainen-recipes.git'},
                  '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.jss-recipes': {'URL': 'https://github.com/autopkg/jss-recipes.git'},
                  '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.keeleysam-recipes': {'URL': 'https://github.com/autopkg/keeleysam-recipes.git'},
                  '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.scriptingosx-recipes': {'URL': 'https://github.com/autopkg/scriptingosx-recipes.git'},
                  '/Users/user/Library/AutoPkg/RecipeRepos/de.nbi.gitlab.itsm-public.itsm-recipes': {'URL': 'https://gitlab.nbi.de/itsm-public/itsm-recipes.git'}},
 'RECIPE_SEARCH_DIRS': ['.',
                        '~/Library/AutoPkg/Recipes',
                        '/Library/AutoPkg/Recipes',
                        '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.jss-recipes',
                        '/Users/user/Library/AutoPkg/RecipeRepos/de.nbi.gitlab.itsm-public.itsm-recipes',
                        '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.scriptingosx-recipes',
                        '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.keeleysam-recipes',
                        '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.foigus-recipes',
                        '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.hjuutilainen-recipes',
                        '/Users/user/Library/AutoPkg/RecipeRepos/de.nbi.gitlab.itsm-public.itsm-recipes/Color '
                        'Navigator',
                        '/Users/user/Library/AutoPkg/RecipeRepos/com.github.autopkg.foigus-recipes/EIZO'],
 'SELF_SERVICE_DESCRIPTION': 'EIZO Color Navigator 7',
 'SELF_SERVICE_ICON': 'ColorNavigator.png',
 'STOP_IF_NO_JSS_UPLOAD': True,
 'algorithm': 'MD5',
 'category': 'Grafik',
 'checksum': 'd5af1500ee9fc8f4a46fd85dafbd7250',
 'destination_path': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/payload/root',
 'destination_pkg': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/repack/ColorNavigator7-7.0.8.pkg',
 'download_changed': False,
 'etag': '',
 'expected_authority_names': ['Developer ID Installer: EIZO Corporation '
                              '(FWVNE2DRY7)',
                              'Developer ID Certification Authority',
                              'Apple Root CA'],
 'file_content': '#!/bin/sh\n'
                 '##Edit to disable opening the ColorNavigator 7 window '
                 'following installation\n'
                 '\n'
                 '#-------------------------------------------------------------------------------\n'
                 '# Defines\n'
                 '#-------------------------------------------------------------------------------\n'
                 '\n'
                 'readonly PLUGS="./bin/plugs"\n'
                 'readonly SRC_PLUGINS_DIR="./plugins"\n'
                 'readonly KEXT_DIR="./kext"\n'
                 '\n'
                 'readonly APP_DATA_DIR="/Library/Application '
                 'Support/EIZO/ColorNavigator 7"\n'
                 'readonly INIT_SETTING_DIR="${APP_DATA_DIR}/_initialsetting"\n'
                 'readonly PLUGINS_DIR="${APP_DATA_DIR}/plugins"\n'
                 '\n'
                 'readonly PKG_DIR=`dirname "${PACKAGE_PATH}"`\n'
                 'readonly INST_FLAG_DIR="${HOME}/.com.eizo.cn7.inst"\n'
                 '\n'
                 '# Install plugins\n'
                 'readonly PLUGINS=(\n'
                 '\t"com.eizo.cn7.libs"\n'
                 '\t"com.eizo.cn7.sensorsdk"\n'
                 '\t"com.eizo.framework.databasecontrol"\n'
                 '\t"com.eizo.framework.monitorcontrol"\n'
                 '\t"com.eizo.framework.sensorcontrol"\n'
                 '\t"com.eizo.framework.flour"\n'
                 '\t"com.eizo.framework.milk"\n'
                 '\t"com.eizo.framework.oil"\n'
                 '\t"com.eizo.framework.qualitycontrol"\n'
                 '\t"com.eizo.cn7.data.value"\n'
                 '\t"com.eizo.cn7.capability"\n'
                 '\t"com.eizo.cn7.core"\n'
                 '\t"com.eizo.cn7.help"\n'
                 '\t"com.eizo.cn7.i18n.de"\n'
                 '\t"com.eizo.cn7.i18n.en"\n'
                 '\t"com.eizo.cn7.i18n.ja"\n'
                 '\t"com.eizo.cn7.i18n.zh"\n'
                 '\t"com.eizo.cn7.base"\n'
                 '\t"com.eizo.cn7.data.model"\n'
                 '\t"com.eizo.cn7.common"\n'
                 '\t"com.eizo.cn7.calibration"\n'
                 '\t"com.eizo.cn7.manualAdjustment"\n'
                 '\t"com.eizo.cn7.rgbValidation"\n'
                 '\t"com.eizo.cn7.ui"\n'
                 '\t"com.eizo.cn7.ext.assetinformationmanagement"\n'
                 '\t"com.eizo.cn7.ext.cmykValidation"\n'
                 '\t"com.eizo.cn7.ext.cnnetwork"\n'
                 '\t"com.eizo.cn7.ext.correlation"\n'
                 '\t"com.eizo.cn7.ext.deviceMeasurement"\n'
                 '\t"com.eizo.cn7.ext.iccProfileEmulation"\n'
                 '\t"com.eizo.cn7.ext.lightbooth"\n'
                 '\t"com.eizo.cn7.ext.logViewLutEmulation"\n'
                 '\t"com.eizo.cn7.ext.monitorkeylocksetting"\n'
                 '\t"com.eizo.cn7.ext.monitoroptionsetting"\n'
                 '\t"com.eizo.cn7.ext.profadvsetting"\n'
                 '\t"com.eizo.cn7.ext.syncAdjustmentInformation"\n'
                 '\t"com.eizo.cn7.ext.targetCreationAssist"\n'
                 '\t"com.eizo.cn7.ext.monitorConfigExportImport"\n'
                 ')\n'
                 '\n'
                 '#-------------------------------------------------------------------------------\n'
                 '# Install plugins\n'
                 '#-------------------------------------------------------------------------------\n'
                 '\n'
                 'umask 000\n'
                 'for pluginName in ${PLUGINS[@]}; do\n'
                 '\t"${PLUGS}" "${PLUGINS_DIR}" install '
                 '"${SRC_PLUGINS_DIR}/${pluginName}.zip"\n'
                 '\twait\n'
                 'done\n'
                 'umask 022\n'
                 '\n'
                 '#-------------------------------------------------------------------------------\n'
                 '# Handle installer setting/selection\n'
                 '#-------------------------------------------------------------------------------\n'
                 '\n'
                 'rm -rf "${INIT_SETTING_DIR}"\n'
                 'mkdir "${INIT_SETTING_DIR}"\n'
                 'chmod 777 "${INIT_SETTING_DIR}"\n'
                 '\n'
                 '# Remove CN6\n'
                 'if [ -e "${INST_FLAG_DIR}/remove_cn6" ]; then\n'
                 '\tkillall "ColorNavigator 6"\n'
                 '\t# terminate eacore and dummy\n'
                 "\tfor i in `ps aux -w | grep 'ColorNavigator 6.app' | grep "
                 "-v grep | awk '{print $2}'`\n"
                 '\tdo\n'
                 '\t\tkill $i\n'
                 '\tdone\n'
                 '\n'
                 '\trm -rf "/Applications/ColorNavigator 6.app"\n'
                 '\twait\n'
                 'fi\n'
                 '\n'
                 '# Remove CNNX\n'
                 'if [ -e "/Applications/ColorNavigator NX.app" ]; then\n'
                 '\tkillall "ColorNavigator NX"\n'
                 '\t# terminate eacore and dummy\n'
                 "\tfor i in `ps aux -w | grep 'ColorNavigator NX.app' | grep "
                 "-v grep | awk '{print $2}'`\n"
                 '\tdo\n'
                 '\t\tkill $i\n'
                 '\tdone\n'
                 '\n'
                 '\trm -rf "/Applications/ColorNavigator NX.app"\n'
                 '\twait\n'
                 'fi\n'
                 '\n'
                 '# Remove CNNetAgent\n'
                 'if [ -e "/Applications/CNNetAgent.app" ]; then\n'
                 '\tkillall "CNNetAgent"\n'
                 '\trm -rf "/Applications/CNNetAgent.app"\n'
                 '\twait\n'
                 'fi\n'
                 '\n'
                 '# Create initSetting files\n'
                 'if [ -e "${INST_FLAG_DIR}/checks_update" ]; then\n'
                 '\tcat /dev/null > "${INIT_SETTING_DIR}/checks_update"\n'
                 'fi\n'
                 '\n'
                 '#-------------------------------------------------------------------------------\n'
                 '# Handle installer setting files\n'
                 '#-------------------------------------------------------------------------------\n'
                 '\n'
                 '# Preferences\n'
                 'cp "${PKG_DIR}/preferences.json" "${INIT_SETTING_DIR}/"\n'
                 '\n'
                 '# Language packs\n'
                 'for f in `find "${PKG_DIR}" -name '
                 '"com.eizo.cn7.i18n.*.zip"`; do\n'
                 '\tcp "$f" "${INIT_SETTING_DIR}/"\n'
                 'done\n'
                 '\n'
                 '# Setup CNNetwork\n'
                 './bin/set_net_mac.sh -src "${PKG_DIR}" -dst '
                 '"${INIT_SETTING_DIR}"\n'
                 '\n'
                 '#-------------------------------------------------------------------------------\n'
                 '# Copy basICColorDISCUS.kext\n'
                 '#-------------------------------------------------------------------------------\n'
                 '# check OS version is newer than 10.15\n'
                 'CATALINA_OR_LATER=$(sw_vers -productVersion \\\n'
                 '    | awk -F. \'{ print $1 "." $2 }\' \\\n'
                 '    | (read v ; echo "$v >= 10.15"; ) \\\n'
                 '    | bc)\n'
                 '\n'
                 'if [ $(expr $CATALINA_OR_LATER) -eq 1 ]; then\n'
                 '    cp -rf "${KEXT_DIR}/basICColorDISCUS.kext" '
                 '"/Library/Extensions"\n'
                 'else\n'
                 '    cp -rf "${KEXT_DIR}/basICColorDISCUS.kext" '
                 '"/System/Library/Extensions"\n'
                 'fi\n'
                 '\n'
                 '#-------------------------------------------------------------------------------\n'
                 '# Additional Setup\n'
                 '#-------------------------------------------------------------------------------\n'
                 '\n'
                 'ln -sf /usr/local/lib/libftd2xx.1.2.2.dylib '
                 '/usr/local/lib/libftd2xx.dylib\n'
                 '\n'
                 '/sbin/kextload -b com.basICColor.driver.basICColorDISCUS\n'
                 '\n'
                 '# db name is changed from v7.0.5. So if db has old name, it '
                 'need to update.\n'
                 'if [ -d "${APP_DATA_DIR}/db" -a ! -d "${APP_DATA_DIR}/db.0" '
                 ']; then\n'
                 '\tmv "${APP_DATA_DIR}/db" "${APP_DATA_DIR}/db.0"\n'
                 'elif [ ! -d "${APP_DATA_DIR}/db.0" ]; then\n'
                 '\tmkdir  "${APP_DATA_DIR}/db.0"\n'
                 'fi\n'
                 '\n'
                 '#-------------------------------------------------------------------------------\n'
                 '# Creanup\n'
                 '#-------------------------------------------------------------------------------\n'
                 '\n'
                 '# Remove installer setting file\n'
                 'if [ -e "${INST_FLAG_DIR}" ]; then\n'
                 '\trm -rf "${INST_FLAG_DIR}"\n'
                 'fi\n'
                 '\n'
                 '# For Permission error by Mac updating\n'
                 'chmod 777 /Library/Application\\ '
                 'Support/EIZO/ColorNavigator\\ 7\n'
                 'chmod 777 /Library/Application\\ '
                 'Support/EIZO/ColorNavigator\\ 7/db.0\n'
                 'chmod 777 /Library/Application\\ Support/EIZO/db\n'
                 'chmod u+w ~/\n'
                 'chmod a+rx /usr/local/lib\n'
                 '\n'
                 '\n'
                 '# Launch Application\n'
                 "##Don't open the ColorNavigator window, it causes the "
                 'installation to fail\n'
                 '##su ${USER} -c "open /Applications/ColorNavigator\\ '
                 '7.app"\n',
 'file_mode': '0755',
 'file_path': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/unpack/ColorNavigator_7.pkg/Scripts/postinstall',
 'filename': 'ColorNavigator.pkg',
 'flat_pkg_path': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/downloads/ColorNavigator.pkg',
 'force_policy_state': True,
 'groups': [{'name': 'ColorNavigator',
             'smart': True,
             'template_path': 'SmartGroupTemplate.xml'}],
 'input_path': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/downloads/ColorNavigator.pkg',
 'input_plist_path': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/payload/root/Applications/ColorNavigator '
                     '7.app/Contents/Info.plist',
 'jss_changed_objects': {'jss_category_added': [],
                         'jss_extension_attribute_added': [],
                         'jss_extension_attribute_updated': [],
                         'jss_group_added': [],
                         'jss_group_updated': [],
                         'jss_icon_uploaded': [],
                         'jss_package_added': [],
                         'jss_package_updated': [],
                         'jss_policy_added': [],
                         'jss_policy_updated': [],
                         'jss_repo_updated': [],
                         'jss_script_added': [],
                         'jss_script_updated': []},
 'last_modified': '',
 'os_requirements': '',
 'package_boot_volume_required': 'True',
 'package_info': '',
 'package_notes': '',
 'package_priority': '10',
 'package_reboot': 'False',
 'path_list': ['/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/unpack/ColorNavigator_7.pkg/Scripts/postinstall'],
 'pathname': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/unpack/ColorNavigator_7.pkg/Scripts/postinstall',
 'pkg_path': '',
 'pkg_payload_path': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/unpack/ColorNavigator_7.pkg/Payload',
 'pkgdirs': {},
 'pkgroot': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/repack',
 'plist_version_key': 'CFBundleShortVersionString',
 'policy_action_type': 'Install',
 'policy_category': 'Testing',
 'policy_template': 'PolicyTemplate.xml',
 'prefetch_filename': False,
 'prod_name': 'ColorNavigator',
 'purge_destination': True,
 're_pattern': 'https:\\/\\/www\\.eizo\\.co\\.jp\\/update\\/ColorNavigator([\\d]+)DLI.pkg',
 'result_output_var_name': 'shortversion',
 'self_service_description': 'EIZO Color Navigator 7',
 'self_service_icon': 'ColorNavigator.png',
 'shortversion': '708',
 'skip_scope': False,
 'skip_scripts': False,
 'source_flatpkg_dir': '/Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/unpack',
 'url': 'https://www.eizoglobal.com/support/db/files/software/software/graphics/colornavigator7/ColorNavigator708.pkg',
 'verbose': 4,
 'version': '7.0.8'}
Receipt written to /Users/user/Library/AutoPkg/Cache/de.nbi.gitlab.itsm.itsm-recipes.jss.ColorNavigator/receipts/de.nbi.gitlab.itsm.itsm-recipes.jss-receipt-20200210-193830.plist

Nothing downloaded, packaged or imported.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant