-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dropbox.munki.recipe
60 lines (58 loc) · 2.18 KB
/
Dropbox.munki.recipe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Identifier</key>
<string>local.munki.Dropbox</string>
<key>Input</key>
<dict>
<key>MUNKI_REPO_SUBDIR</key>
<string>apps/Dropbox</string>
<key>NAME</key>
<string>Dropbox</string>
<key>pkginfo</key>
<dict>
<key>catalogs</key>
<array>
<string>stable</string>
</array>
<key>description</key>
<string>Dropbox is a free service that lets you bring all your photos, docs, and videos anywhere. This means that any file you save to your Dropbox will automatically save to all your computers, phones and even the Dropbox website. <br><br>
<img src="http://munkitest1.bmr.local/munki_repo/artwork/Dropbox_pic.png"></string>
<key>display_name</key>
<string>Dropbox</string>
<key>name</key>
<string>%NAME%</string>
<key>developer</key>
<string>Dropbox</string>
<key>category</key>
<string>Office</string>
<key>icon_name</key>
<string>Dropbox.icns</string>
<key>postinstall_script</key>
<string>#!/bin/sh
# based on Ruby postinstall script by Riley Shott:
# https://groups.google.com/group/munki-dev/browse_thread/thread/a2813e7f62535f13/63d127534541f863
# modifications:
# - always extract the helper tool with each install instead of skipping if it exists
# - remove xattr com.apple.quarantine removal, as Munki will have already done this upon
# installation; normal autopkg runs also won't quarantine the download to begin with
HELPER_SRC_PATH=/Applications/Dropbox.app/Contents/Resources/DropboxHelperInstaller.tgz
HELPER_DST_DIR=/Library/DropboxHelperTools
HELPER_DST_PATH="$HELPER_DST_DIR/DropboxHelperInstaller"
if [ -e "$HELPER_SRC_PATH" ]; then
[ -d "$HELPER_DST_DIR" ] || mkdir "$HELPER_DST_DIR"
/usr/bin/tar -C "$HELPER_DST_DIR" -xz -f "$HELPER_SRC_PATH"
/bin/chmod 04511 "$HELPER_DST_PATH"
/usr/sbin/chown root:wheel "$HELPER_DST_PATH"
else
echo "Expected $HELPER_SRC_PATH, but it was not present in the Dropbox dmg."
exit 1
fi
</string>
</dict>
</dict>
<key>ParentRecipe</key>
<string>com.github.autopkg.munki.dropbox</string>
</dict>
</plist>