]>
Commit | Line | Data |
---|---|---|
a83ff38a A |
1 | #! /bin/bash |
2 | ||
3 | install -d -m 0755 -o root -g wheel "$DSTROOT"/private/var/log/asl | |
4 | ||
5 | PRODUCT=$(xcodebuild -sdk ${SDKROOT} -version PlatformPath | head -1 | sed 's,^.*/\([^/]*\)\.platform$,\1,') | |
6 | if [ ${PRODUCT}x = x ]; then | |
7 | PRODUCT=MacOSX | |
8 | fi | |
9 | ||
10 | if [ ${PRODUCT} = iPhone ]; then | |
11 | install -d -m 0755 -o root -g wheel "$DSTROOT"/usr/share/sandbox | |
12 | install -m 0644 -o root -g wheel "$SRCROOT"/syslogd.tproj/syslogd.sb "$DSTROOT"/usr/share/sandbox | |
13 | fi | |
14 | ||
15 | DESTDIR="$DSTROOT"/System/Library/LaunchDaemons | |
16 | install -d -m 0755 -o root -g wheel "$DESTDIR" | |
17 | install -m 0644 -o root -g wheel "$SRCROOT"/syslogd.tproj/com.apple.syslogd.plist "$DESTDIR" | |
18 | plutil -convert binary1 "$DESTDIR"/com.apple.syslogd.plist | |
19 | ||
20 | mkfile 8 "$DSTROOT"/private/var/log/asl/SweepStore | |
21 | chmod 0644 "$DSTROOT"/private/var/log/asl/SweepStore |