2016-12-28 21:49:46 +00:00
|
|
|
=================================
|
|
|
|
Building Native Packages on macOS
|
|
|
|
=================================
|
2015-06-10 03:27:11 +00:00
|
|
|
|
2016-12-28 21:49:46 +00:00
|
|
|
Salt runs well on the macOS, but does have some limitations.
|
2015-06-10 03:27:11 +00:00
|
|
|
|
2016-12-28 21:49:46 +00:00
|
|
|
In this directory you will find scripts and collateral to build a macOS
|
|
|
|
.pkg-style package that uses a custom-built Python. This process has been
|
|
|
|
tested on macOS Lion (10.7) and later.
|
2015-06-10 03:27:11 +00:00
|
|
|
|
2016-12-28 21:49:46 +00:00
|
|
|
In addition, because of changes in launchd from version to version of the OS, a
|
|
|
|
simpler approach is taken for the launchd plist files.
|
2015-06-10 03:27:11 +00:00
|
|
|
|
2016-12-28 21:49:46 +00:00
|
|
|
This approach enables Salt users to potentially add items to their Salt install
|
|
|
|
via 'pip install' without interfering with the rest of their system's Python
|
|
|
|
packages.
|
2015-06-10 03:27:11 +00:00
|
|
|
|
|
|
|
To build a native package you will need the following installed:
|
|
|
|
|
2016-06-02 04:32:23 +00:00
|
|
|
- Xcode, or the Xcode Command Line Tools
|
2015-06-10 03:27:11 +00:00
|
|
|
- git
|
|
|
|
|
2016-12-28 21:49:46 +00:00
|
|
|
The native package will install package files into /opt/salt. Configuration
|
|
|
|
files will be installed to /etc, but will have '.dist' appended to them.
|
2015-06-10 03:27:11 +00:00
|
|
|
|
2016-12-28 21:49:46 +00:00
|
|
|
Launchd plists will be placed in /Library/LaunchDaemons. By default salt-minion
|
|
|
|
will NOT be enabled or started.
|
2015-06-10 03:27:11 +00:00
|
|
|
|
2016-12-28 21:49:46 +00:00
|
|
|
The process has been automated via the ``build.sh`` script in the directory with
|
|
|
|
this README file. Checkout the Salt repo from GitHub, chdir into the base repo
|
|
|
|
directory, and run
|
2015-06-12 20:14:26 +00:00
|
|
|
|
|
|
|
./build.sh
|
|
|
|
|
|
|
|
|
2015-11-24 17:32:20 +00:00
|
|
|
References:
|
|
|
|
|
|
|
|
http://crushbeercrushcode.org/2014/01/using-pkgbuild-and-productbuild-on-os-x-10-7/
|
|
|
|
http://stackoverflow.com/questions/11487596/making-os-x-installer-packages-like-a-pro-xcode-developer-id-ready-pkg
|