initial
This commit is contained in:
commit
2b1bc1a1dd
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
.DS_Store
|
||||
*.dmg
|
||||
osx-privacy-pkg/*.pkg
|
||||
|
25
Makefile
Executable file
25
Makefile
Executable file
@ -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
|
13
osx-privacy-pkg/Makefile
Executable file
13
osx-privacy-pkg/Makefile
Executable 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
|
51
osx-privacy-pkg/scripts/postinstall
Executable file
51
osx-privacy-pkg/scripts/postinstall
Executable 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
|
BIN
users/admin-admin.pkg
Normal file
BIN
users/admin-admin.pkg
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user