Skip to content

Instantly share code, notes, and snippets.

@groob
Created April 10, 2014 15:02
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 groob/10391608 to your computer and use it in GitHub Desktop.
Save groob/10391608 to your computer and use it in GitHub Desktop.
setupassistant makefile
USE_PKGBUILD=1
include /usr/local/share/luggage/luggage.make
TITLE=DisableSetupAssistant
PACKAGE_VERSION=1.0.1
REVERSE_DOMAIN=edu.whitby
PAYLOAD=prep-var-db-AppleSetupDone \
prep-Library-SetupRegComplete
# apply Lion-specific perms fix:
modify_packageroot:
@sudo chgrp wheel ${WORK_D}/Library
@sudo chmod 755 ${WORK_D}/Library
prep-var-db-AppleSetupDone: l_var_db
@sudo touch ${WORK_D}/var/db/.AppleSetupDone
@sudo chown root:wheel ${WORK_D}/var/db/.AppleSetupDone
@sudo chmod 600 ${WORK_D}/var/db/.AppleSetupDone
prep-Library-SetupRegComplete: l_Library_Receipts
@sudo touch ${WORK_D}/Library/Receipts/.SetupRegComplete
@sudo chown root:admin ${WORK_D}/Library/Receipts/.SetupRegComplete
@sudo chmod 400 ${WORK_D}/Library/Receipts/.SetupRegComplete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment