Browse Source

initial

master
admin 5 years ago
commit
2b1bc1a1dd
5 changed files with 93 additions and 0 deletions
  1. +4
    -0
      .gitignore
  2. +25
    -0
      Makefile
  3. +13
    -0
      osx-privacy-pkg/Makefile
  4. +51
    -0
      osx-privacy-pkg/scripts/postinstall
  5. BIN
      users/admin-admin.pkg

+ 4
- 0
.gitignore View File

@@ -0,0 +1,4 @@
.DS_Store
*.dmg
osx-privacy-pkg/*.pkg


+ 25
- 0
Makefile View 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
- 0
osx-privacy-pkg/Makefile 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

+ 51
- 0
osx-privacy-pkg/scripts/postinstall 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

BIN
users/admin-admin.pkg View File


Loading…
Cancel
Save