commit 2b1bc1a1ddff742c3d71fd9467c0eeff4d705df2 Author: admin Date: Tue Feb 23 12:12:32 2016 -0800 initial diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..58fa010 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.DS_Store +*.dmg +osx-privacy-pkg/*.pkg + diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..a6af1f6 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +AUTODMG := /Applications/AutoDMG.app/Contents/MacOS/AutoDMG + +default: output.dmg + +packages: + cd osx-privacy-pkg && make + +clean: + rm -f osx-privacy-pkg/*.pkg output.dmg + +output.dmg: packages + $(AUTODMG) update + $(AUTODMG) \ + --log-level 7 \ + --logfile - \ + build \ + -n "root" \ + -u -U \ + -o /tmp/output.dmg \ + "/Applications/Install OS X El Capitan.app" \ + /Applications/Xcode.app \ + /Applications/AutoDMG.app \ + "/Applications/Install OS X El Capitan.app" \ + $(PWD)/osx-privacy-pkg/*.pkg \ + $(PWD)/users/*.pkg && mv /tmp/output.dmg ./output.dmg diff --git a/osx-privacy-pkg/Makefile b/osx-privacy-pkg/Makefile new file mode 100755 index 0000000..4428808 --- /dev/null +++ b/osx-privacy-pkg/Makefile @@ -0,0 +1,13 @@ +THIS := $(shell basename $(shell cd . && pwd -P)) +VER := $(shell date -u +%Y%m%d) + +100.$(THIS)-$(VER).pkg: + pkgbuild \ + --install-location / \ + --scripts ./scripts/ \ + --nopayload \ + --identifier de.eeqj.osxpkg.$(THIS) \ + $@ + +clean: + rm -f *.pkg diff --git a/osx-privacy-pkg/scripts/postinstall b/osx-privacy-pkg/scripts/postinstall new file mode 100755 index 0000000..b44eaee --- /dev/null +++ b/osx-privacy-pkg/scripts/postinstall @@ -0,0 +1,51 @@ +#!/bin/bash + +set +x + +FILES="" + +## Remove Internet Providers / Sharing / iCloud +FILES+=" + /System/Library/PreferencePanes/iCloudPref.prefPane + /System/Library/InternetAccounts +" + +## Remove all crash reporting daemons +FILES+=" + /System/Library/LaunchAgents/com.apple.ReportPanic.plist + /System/Library/CoreServices/ReportPanic.app/Contents/MacOS/ReportPanic + /System/Library/LaunchAgents/com.apple.ReportCrash.Self.plist + /System/Library/CoreServices/ReportCrash + /System/Library/LaunchAgents/com.apple.ReportCrash.plist + /System/Library/LaunchAgents/com.apple.ReportGPURestart.plist + /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/ReportGPURestart + /System/Library/LaunchAgents/com.apple.rtcreportingd.plist + /usr/libexec/rtcreportingd + /System/Library/LaunchDaemons/com.apple.SubmitDiagInfo.plist + /System/Library/CoreServices/SubmitDiagInfo + /System/Library/LaunchAgents/com.apple.diagnostics_agent.plist + /System/Library/CoreServices/diagnostics_agent +" + +## Remove all Spotlight network support +FILES+=" + /System/Library/LaunchAgents/com.apple.metadata.SpotlightNetHelper.plist + /System/Library/PrivateFrameworks/ParsecUI.framework +" + +## Remove CommCenter +FILES+=" + /System/Library/Frameworks/CoreTelephony.framework + /System/Library/LaunchAgents/com.apple.CommCenter-osx.plist + /System/Library/LaunchDaemons/com.apple.CommCenterRootHelper.plist +" + +## remove spotlight suggestions/helper +FILES+=" + /System/Library/LaunchAgents/com.apple.suggestd.plist + /System/Library/PrivateFrameworks/CoreSuggestions.framework +" + +for FILE in $FILES ; do + rm -rf "$3/$FILE" +done diff --git a/users/admin-admin.pkg b/users/admin-admin.pkg new file mode 100644 index 0000000..bde6d8f Binary files /dev/null and b/users/admin-admin.pkg differ