This commit is contained in:
admin
2016-02-23 12:12:32 -08:00
commit 2b1bc1a1dd
5 changed files with 93 additions and 0 deletions

13
osx-privacy-pkg/Makefile Executable file
View File

@@ -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

View File

@@ -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