Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Commit 501085f

Browse files
committed
Merge pull request #1 from erikng/master
2 parents 0619614 + 9434cf3 commit 501085f

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

Makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
USE_PKGBUILD=1
2+
include /usr/local/share/luggage/luggage.make
3+
PACKAGE_VERSION=1.0
4+
TITLE=Outset-SetupAssistant
5+
REVERSE_DOMAIN=org.company.pkg
6+
PAYLOAD= \
7+
pack-usr-local-outset-everyboot-scripts-setup_assistant_profiler.py \
8+
pack-library-profiles-SetupAssistant.mobileconfig
9+
10+
l_usr_local_outset_everyboot_scripts: l_usr_local
11+
@sudo mkdir -p ${WORK_D}/usr/local/outset/everyboot-scripts
12+
@sudo chown -R root:wheel ${WORK_D}/usr/local/outset/everyboot-scripts
13+
@sudo chmod -R 755 ${WORK_D}/usr/local/outset/everyboot-scripts
14+
15+
pack-usr-local-outset-everyboot-scripts-%: % l_usr_local_outset_everyboot_scripts
16+
@sudo ${INSTALL} -m 755 -g wheel -o root "${<}" ${WORK_D}/usr/local/outset/everyboot-scripts
17+
18+
l_library_profiles: l_Library
19+
@sudo mkdir -p ${WORK_D}/Library/Profiles
20+
@sudo chown root:admin ${WORK_D}/Library/Profiles
21+
@sudo chmod 755 ${WORK_D}/Library/Profiles
22+
23+
pack-library-profiles-%: % l_library_profiles
24+
@sudo ${INSTALL} -m 755 -g wheel -o root "${<}" ${WORK_D}/Library/Profiles

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#Setup Assistant Profiler
2+
3+
This tool installs a system level profile and a script for use with [Outset](https://github.com/chilcote/outset).
4+
5+
*NOTE: While a generic package is supplied, it is recommended to build your own. A makefile is included for use with [Luggage](https://github.com/unixorn/luggage)*
6+
7+
This has been tested on OS X 10.10.3 and 10.10.4. Future Yosemite upgrades should work but retesting may need to take place for OS X 10.11.
8+
9+
##Configuration
10+
Open `SetupAssistant.mobileconfig` and modify the `PayloadIdentifier` with your organization's name. If desired, also change the `PayloadUUID` in each payload.
11+
12+
13+
## Creating a Custom Package
14+
Install Luggage and open the Makefile. Change the ```REVERSE_DOMAIN``` and if desired the ```PACKAGE_VERSION``` and ```TITLE```
15+
16+
Running the following command in the working directory
17+
18+
```
19+
make pkg
20+
```
21+
22+
The example Makefile will create a "Outset-SetupAssistant-1.0.pkg" package with receipt "org.company.pkg" and version 1.0. It will install `SetupAssistant.mobileconfig` into `/Library/Profiles`, and `setup_assistant_profiler.py` into `/usr/local/outset/everyboot-scripts`.
23+
24+
Each time the machine reboots, setup_assistant_profiler.py will modify `SetupAssistant.mobileconfig` based on the OS major/minor version and reinstall it via the profiles command.

0 commit comments

Comments
 (0)