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

Adjust Monit recipes to use new pkg download #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

homebysix
Copy link
Member

This PR adjusts the Monit recipes to use the new pkg download, which contains a Universal version of the Monit binary.

Verbose download/pkg/munki recipe run output:

% autopkg run -vvq Monit.{download,pkg,munki}.recipe
Processing Monit.download.recipe...
WARNING: Monit.download.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
URLTextSearcher
{'Input': {'re_pattern': 'href="(dist/binary/[\\d\\.]+/monit-[\\d\\.]+-macos-x64\\.pkg)"',
           'url': 'https://mmonit.com/monit/'}}
URLTextSearcher: No value supplied for result_output_var_name, setting default value of: match
URLTextSearcher: Found matching text (match): dist/binary/5.34.3/monit-5.34.3-macos-x64.pkg
{'Output': {'match': 'dist/binary/5.34.3/monit-5.34.3-macos-x64.pkg'}}
URLDownloader
{'Input': {'url': 'https://mmonit.com/monit/dist/binary/5.34.3/monit-5.34.3-macos-x64.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: Storing new Last-Modified header: Tue, 10 Dec 2024 17:16:08 GMT
URLDownloader: Storing new ETag header: "1a62e9d-3814dc-628eda3145710"
URLDownloader: Downloaded ~/Library/AutoPkg/Cache/com.github.jleggat.download.Monit/downloads/monit-5.34.3-macos-x64.pkg
{'Output': {'download_changed': True,
            'etag': '"1a62e9d-3814dc-628eda3145710"',
            'last_modified': 'Tue, 10 Dec 2024 17:16:08 GMT',
            'pathname': '~/Library/AutoPkg/Cache/com.github.jleggat.download.Monit/downloads/monit-5.34.3-macos-x64.pkg',
            'url_downloader_summary_result': {'data': {'download_path': '~/Library/AutoPkg/Cache/com.github.jleggat.download.Monit/downloads/monit-5.34.3-macos-x64.pkg'},
                                              'summary_text': 'The following '
                                                              'new items were '
                                                              'downloaded:'}}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'expected_authority_names': ['Developer ID Installer: Tildeslash '
                                        '(Z7D8RDKK69)',
                                        'Developer ID Certification Authority',
                                        'Apple Root CA'],
           'input_path': '~/Library/AutoPkg/Cache/com.github.jleggat.download.Monit/downloads/monit-5.34.3-macos-x64.pkg'}}
CodeSignatureVerifier: Verifying installer package signature...
CodeSignatureVerifier: Package "monit-5.34.3-macos-x64.pkg":
CodeSignatureVerifier:    Status: signed by a developer certificate issued by Apple for distribution
CodeSignatureVerifier:    Notarization: trusted by the Apple notary service
CodeSignatureVerifier:    Signed with a trusted timestamp on: 2024-12-10 16:37:40 +0000
CodeSignatureVerifier:    Certificate Chain:
CodeSignatureVerifier:     1. Developer ID Installer: Tildeslash (Z7D8RDKK69)
CodeSignatureVerifier:        Expires: 2025-11-15 16:20:43 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            01 80 D1 CA 2A 63 73 CF 73 F9 3E 51 E2 87 A0 CB 63 04 CA 62 36 16
CodeSignatureVerifier:            E2 25 58 1E 2C 8C 45 A4 B9 0A
CodeSignatureVerifier:        ------------------------------------------------------------------------
CodeSignatureVerifier:     2. Developer ID Certification Authority
CodeSignatureVerifier:        Expires: 2027-02-01 22:12:15 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            7A FC 9D 01 A6 2F 03 A2 DE 96 37 93 6D 4A FE 68 09 0D 2D E1 8D 03
CodeSignatureVerifier:            F2 9C 88 CF B0 B1 BA 63 58 7F
CodeSignatureVerifier:        ------------------------------------------------------------------------
CodeSignatureVerifier:     3. Apple Root CA
CodeSignatureVerifier:        Expires: 2035-02-09 21:40:36 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            B0 B1 73 0E CB C7 FF 45 05 14 2C 49 F1 29 5E 6E DA 6B CA ED 7E 2C
CodeSignatureVerifier:            68 C5 BE 91 B5 A1 10 01 F0 24
CodeSignatureVerifier:
CodeSignatureVerifier: Signature is valid
CodeSignatureVerifier: Authority name chain is valid
{'Output': {}}
Receipt written to ~/Library/AutoPkg/Cache/com.github.jleggat.download.Monit/receipts/Monit.download-receipt-20241226-195157.plist
Processing Monit.pkg.recipe...
WARNING: Monit.pkg.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
URLTextSearcher
{'Input': {'re_pattern': 'href="(dist/binary/[\\d\\.]+/monit-[\\d\\.]+-macos-x64\\.pkg)"',
           'url': 'https://mmonit.com/monit/'}}
URLTextSearcher: No value supplied for result_output_var_name, setting default value of: match
URLTextSearcher: Found matching text (match): dist/binary/5.34.3/monit-5.34.3-macos-x64.pkg
{'Output': {'match': 'dist/binary/5.34.3/monit-5.34.3-macos-x64.pkg'}}
URLDownloader
{'Input': {'url': 'https://mmonit.com/monit/dist/binary/5.34.3/monit-5.34.3-macos-x64.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: Storing new Last-Modified header: Tue, 10 Dec 2024 17:16:08 GMT
URLDownloader: Storing new ETag header: "1a62e9d-3814dc-628eda3145710"
URLDownloader: Downloaded ~/Library/AutoPkg/Cache/com.github.jleggat.pkg.Monit/downloads/monit-5.34.3-macos-x64.pkg
{'Output': {'download_changed': True,
            'etag': '"1a62e9d-3814dc-628eda3145710"',
            'last_modified': 'Tue, 10 Dec 2024 17:16:08 GMT',
            'pathname': '~/Library/AutoPkg/Cache/com.github.jleggat.pkg.Monit/downloads/monit-5.34.3-macos-x64.pkg',
            'url_downloader_summary_result': {'data': {'download_path': '~/Library/AutoPkg/Cache/com.github.jleggat.pkg.Monit/downloads/monit-5.34.3-macos-x64.pkg'},
                                              'summary_text': 'The following '
                                                              'new items were '
                                                              'downloaded:'}}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'expected_authority_names': ['Developer ID Installer: Tildeslash '
                                        '(Z7D8RDKK69)',
                                        'Developer ID Certification Authority',
                                        'Apple Root CA'],
           'input_path': '~/Library/AutoPkg/Cache/com.github.jleggat.pkg.Monit/downloads/monit-5.34.3-macos-x64.pkg'}}
CodeSignatureVerifier: Verifying installer package signature...
CodeSignatureVerifier: Package "monit-5.34.3-macos-x64.pkg":
CodeSignatureVerifier:    Status: signed by a developer certificate issued by Apple for distribution
CodeSignatureVerifier:    Notarization: trusted by the Apple notary service
CodeSignatureVerifier:    Signed with a trusted timestamp on: 2024-12-10 16:37:40 +0000
CodeSignatureVerifier:    Certificate Chain:
CodeSignatureVerifier:     1. Developer ID Installer: Tildeslash (Z7D8RDKK69)
CodeSignatureVerifier:        Expires: 2025-11-15 16:20:43 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            01 80 D1 CA 2A 63 73 CF 73 F9 3E 51 E2 87 A0 CB 63 04 CA 62 36 16
CodeSignatureVerifier:            E2 25 58 1E 2C 8C 45 A4 B9 0A
CodeSignatureVerifier:        ------------------------------------------------------------------------
CodeSignatureVerifier:     2. Developer ID Certification Authority
CodeSignatureVerifier:        Expires: 2027-02-01 22:12:15 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            7A FC 9D 01 A6 2F 03 A2 DE 96 37 93 6D 4A FE 68 09 0D 2D E1 8D 03
CodeSignatureVerifier:            F2 9C 88 CF B0 B1 BA 63 58 7F
CodeSignatureVerifier:        ------------------------------------------------------------------------
CodeSignatureVerifier:     3. Apple Root CA
CodeSignatureVerifier:        Expires: 2035-02-09 21:40:36 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            B0 B1 73 0E CB C7 FF 45 05 14 2C 49 F1 29 5E 6E DA 6B CA ED 7E 2C
CodeSignatureVerifier:            68 C5 BE 91 B5 A1 10 01 F0 24
CodeSignatureVerifier:
CodeSignatureVerifier: Signature is valid
CodeSignatureVerifier: Authority name chain is valid
{'Output': {}}
PkgCopier
{'Input': {'source_pkg': '~/Library/AutoPkg/Cache/com.github.jleggat.pkg.Monit/downloads/monit-5.34.3-macos-x64.pkg'}}
PkgCopier: Copied ~/Library/AutoPkg/Cache/com.github.jleggat.pkg.Monit/downloads/monit-5.34.3-macos-x64.pkg to ~/Library/AutoPkg/Cache/com.github.jleggat.pkg.Monit/monit-5.34.3-macos-x64.pkg
{'Output': {'pkg_copier_summary_result': {'data': {'pkg_path': '~/Library/AutoPkg/Cache/com.github.jleggat.pkg.Monit/monit-5.34.3-macos-x64.pkg'},
                                          'summary_text': 'The following '
                                                          'packages were '
                                                          'copied:'},
            'pkg_path': '~/Library/AutoPkg/Cache/com.github.jleggat.pkg.Monit/monit-5.34.3-macos-x64.pkg'}}
Receipt written to ~/Library/AutoPkg/Cache/com.github.jleggat.pkg.Monit/receipts/Monit.pkg-receipt-20241226-195159.plist
Processing Monit.munki.recipe...
WARNING: Monit.munki.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
URLTextSearcher
{'Input': {'re_pattern': 'href="(dist/binary/[\\d\\.]+/monit-[\\d\\.]+-macos-x64\\.pkg)"',
           'url': 'https://mmonit.com/monit/'}}
URLTextSearcher: No value supplied for result_output_var_name, setting default value of: match
URLTextSearcher: Found matching text (match): dist/binary/5.34.3/monit-5.34.3-macos-x64.pkg
{'Output': {'match': 'dist/binary/5.34.3/monit-5.34.3-macos-x64.pkg'}}
URLDownloader
{'Input': {'url': 'https://mmonit.com/monit/dist/binary/5.34.3/monit-5.34.3-macos-x64.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: Storing new Last-Modified header: Tue, 10 Dec 2024 17:16:08 GMT
URLDownloader: Storing new ETag header: "1a62e9d-3814dc-628eda3145710"
URLDownloader: Downloaded ~/Library/AutoPkg/Cache/com.github.jleggat.munki.Monit/downloads/monit-5.34.3-macos-x64.pkg
{'Output': {'download_changed': True,
            'etag': '"1a62e9d-3814dc-628eda3145710"',
            'last_modified': 'Tue, 10 Dec 2024 17:16:08 GMT',
            'pathname': '~/Library/AutoPkg/Cache/com.github.jleggat.munki.Monit/downloads/monit-5.34.3-macos-x64.pkg',
            'url_downloader_summary_result': {'data': {'download_path': '~/Library/AutoPkg/Cache/com.github.jleggat.munki.Monit/downloads/monit-5.34.3-macos-x64.pkg'},
                                              'summary_text': 'The following '
                                                              'new items were '
                                                              'downloaded:'}}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'expected_authority_names': ['Developer ID Installer: Tildeslash '
                                        '(Z7D8RDKK69)',
                                        'Developer ID Certification Authority',
                                        'Apple Root CA'],
           'input_path': '~/Library/AutoPkg/Cache/com.github.jleggat.munki.Monit/downloads/monit-5.34.3-macos-x64.pkg'}}
CodeSignatureVerifier: Verifying installer package signature...
CodeSignatureVerifier: Package "monit-5.34.3-macos-x64.pkg":
CodeSignatureVerifier:    Status: signed by a developer certificate issued by Apple for distribution
CodeSignatureVerifier:    Notarization: trusted by the Apple notary service
CodeSignatureVerifier:    Signed with a trusted timestamp on: 2024-12-10 16:37:40 +0000
CodeSignatureVerifier:    Certificate Chain:
CodeSignatureVerifier:     1. Developer ID Installer: Tildeslash (Z7D8RDKK69)
CodeSignatureVerifier:        Expires: 2025-11-15 16:20:43 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            01 80 D1 CA 2A 63 73 CF 73 F9 3E 51 E2 87 A0 CB 63 04 CA 62 36 16
CodeSignatureVerifier:            E2 25 58 1E 2C 8C 45 A4 B9 0A
CodeSignatureVerifier:        ------------------------------------------------------------------------
CodeSignatureVerifier:     2. Developer ID Certification Authority
CodeSignatureVerifier:        Expires: 2027-02-01 22:12:15 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            7A FC 9D 01 A6 2F 03 A2 DE 96 37 93 6D 4A FE 68 09 0D 2D E1 8D 03
CodeSignatureVerifier:            F2 9C 88 CF B0 B1 BA 63 58 7F
CodeSignatureVerifier:        ------------------------------------------------------------------------
CodeSignatureVerifier:     3. Apple Root CA
CodeSignatureVerifier:        Expires: 2035-02-09 21:40:36 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            B0 B1 73 0E CB C7 FF 45 05 14 2C 49 F1 29 5E 6E DA 6B CA ED 7E 2C
CodeSignatureVerifier:            68 C5 BE 91 B5 A1 10 01 F0 24
CodeSignatureVerifier:
CodeSignatureVerifier: Signature is valid
CodeSignatureVerifier: Authority name chain is valid
{'Output': {}}
PkgCopier
{'Input': {'source_pkg': '~/Library/AutoPkg/Cache/com.github.jleggat.munki.Monit/downloads/monit-5.34.3-macos-x64.pkg'}}
PkgCopier: Copied ~/Library/AutoPkg/Cache/com.github.jleggat.munki.Monit/downloads/monit-5.34.3-macos-x64.pkg to ~/Library/AutoPkg/Cache/com.github.jleggat.munki.Monit/monit-5.34.3-macos-x64.pkg
{'Output': {'pkg_copier_summary_result': {'data': {'pkg_path': '~/Library/AutoPkg/Cache/com.github.jleggat.munki.Monit/monit-5.34.3-macos-x64.pkg'},
                                          'summary_text': 'The following '
                                                          'packages were '
                                                          'copied:'},
            'pkg_path': '~/Library/AutoPkg/Cache/com.github.jleggat.munki.Monit/monit-5.34.3-macos-x64.pkg'}}
MunkiImporter
{'Input': {'MUNKI_REPO': '/Users/Shared/munki_repo',
           'pkg_path': '~/Library/AutoPkg/Cache/com.github.jleggat.munki.Monit/downloads/monit-5.34.3-macos-x64.pkg',
           'pkginfo': {'catalogs': ['testing'],
                       'category': 'System Utilities',
                       'description': 'Monit is an open source utility for '
                                      'managing and monitoring, processes, '
                                      'programs, files, directories and '
                                      'filesystems on a UNIX system. Monit '
                                      'conducts automatic maintenance and '
                                      'repair and can execute meaningful '
                                      'causal actions in error situations.',
                       'developer': 'Tildeslash Ltd',
                       'display_name': 'Monit - Unix Systems Management',
                       'name': 'Monit',
                       'preuninstall_script': '#!/bin/sh\n'
                                              '## stop Monit\n'
                                              '/bin/launchctl unload -w '
                                              '/Library/LaunchDaemons/com.mmonit.monit.plist\n'
                                              'exit 0',
                       'unattended_install': True,
                       'unattended_uninstall': True,
                       'uninstall_method': 'removepackages',
                       'uninstallable': True},
           'repo_subdirectory': 'support/Monit'}}
MunkiImporter: No value supplied for MUNKI_REPO_PLUGIN, setting default value of: FileRepo
MunkiImporter: No value supplied for MUNKILIB_DIR, setting default value of: /usr/local/munki
MunkiImporter: No value supplied for force_munki_repo_lib, setting default value of: False
MunkiImporter: Using repo lib: AutoPkgLib
MunkiImporter:         plugin: FileRepo
MunkiImporter:           repo: /Users/Shared/munki_repo
MunkiImporter: Copied pkginfo to: /Users/Shared/munki_repo/pkgsinfo/support/Monit/Monit-5.34.3.plist
MunkiImporter:            pkg to: /Users/Shared/munki_repo/pkgs/support/Monit/monit-5.34.3-macos-x64-5.34.3.pkg
{'Output': {'munki_importer_summary_result': {'data': {'catalogs': 'testing',
                                                       'icon_repo_path': '',
                                                       'name': 'Monit',
                                                       'pkg_repo_path': 'support/Monit/monit-5.34.3-macos-x64-5.34.3.pkg',
                                                       'pkginfo_path': 'support/Monit/Monit-5.34.3.plist',
                                                       'version': '5.34.3'},
                                              'report_fields': ['name',
                                                                'version',
                                                                'catalogs',
                                                                'pkginfo_path',
                                                                'pkg_repo_path',
                                                                'icon_repo_path'],
                                              'summary_text': 'The following '
                                                              'new items were '
                                                              'imported into '
                                                              'Munki:'},
            'munki_info': {'_metadata': {'created_by': 'testuser',
                                         'creation_date': datetime.datetime(2024, 12, 27, 3, 52, 2),
                                         'munki_version': '6.6.3.4704',
                                         'os_version': '15.2'},
                           'autoremove': False,
                           'catalogs': ['testing'],
                           'category': 'System Utilities',
                           'description': 'Monit is an open source utility for '
                                          'managing and monitoring, processes, '
                                          'programs, files, directories and '
                                          'filesystems on a UNIX system. Monit '
                                          'conducts automatic maintenance and '
                                          'repair and can execute meaningful '
                                          'causal actions in error situations.',
                           'developer': 'Tildeslash Ltd',
                           'display_name': 'Monit - Unix Systems Management',
                           'installed_size': 8712,
                           'installer_item_hash': '1177fabb57e42d5c50d8da3e8c767551a8f1133fb1055c30929fdf6c2e1d776e',
                           'installer_item_location': 'support/Monit/monit-5.34.3-macos-x64-5.34.3.pkg',
                           'installer_item_size': 3589,
                           'minimum_os_version': '10.5.0',
                           'name': 'Monit',
                           'preuninstall_script': '#!/bin/sh\n'
                                                  '## stop Monit\n'
                                                  '/bin/launchctl unload -w '
                                                  '/Library/LaunchDaemons/com.mmonit.monit.plist\n'
                                                  'exit 0',
                           'receipts': [{'installed_size': 8712,
                                         'packageid': 'com.tildeslash.monit',
                                         'version': '5.34.3'}],
                           'unattended_install': True,
                           'unattended_uninstall': True,
                           'uninstall_method': 'removepackages',
                           'uninstallable': True,
                           'version': '5.34.3'},
            'munki_repo_changed': True,
            'pkg_repo_path': '/Users/Shared/munki_repo/pkgs/support/Monit/monit-5.34.3-macos-x64-5.34.3.pkg',
            'pkginfo_repo_path': '/Users/Shared/munki_repo/pkgsinfo/support/Monit/Monit-5.34.3.plist'}}
Receipt written to ~/Library/AutoPkg/Cache/com.github.jleggat.munki.Monit/receipts/Monit.munki-receipt-20241226-195202.plist

The following new items were downloaded:
    Download Path
    -------------
    ~/Library/AutoPkg/Cache/com.github.jleggat.download.Monit/downloads/monit-5.34.3-macos-x64.pkg
    ~/Library/AutoPkg/Cache/com.github.jleggat.pkg.Monit/downloads/monit-5.34.3-macos-x64.pkg
    ~/Library/AutoPkg/Cache/com.github.jleggat.munki.Monit/downloads/monit-5.34.3-macos-x64.pkg

The following packages were copied:
    Pkg Path
    --------
    ~/Library/AutoPkg/Cache/com.github.jleggat.pkg.Monit/monit-5.34.3-macos-x64.pkg
    ~/Library/AutoPkg/Cache/com.github.jleggat.munki.Monit/monit-5.34.3-macos-x64.pkg

The following new items were imported into Munki:
    Name   Version  Catalogs  Pkginfo Path                      Pkg Repo Path                                    Icon Repo Path
    ----   -------  --------  ------------                      -------------                                    --------------
    Monit  5.34.3   testing   support/Monit/Monit-5.34.3.plist  support/Monit/monit-5.34.3-macos-x64-5.34.3.pkg

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

Successfully merging this pull request may close these issues.

1 participant