]> git.saurik.com Git - apple/syslog.git/blame - syslogd.tproj/after_install.sh
syslog-132.tar.gz
[apple/syslog.git] / syslogd.tproj / after_install.sh
CommitLineData
a83ff38a
A
1#! /bin/bash
2
3install -d -m 0755 -o root -g wheel "$DSTROOT"/private/var/log/asl
4
5PRODUCT=$(xcodebuild -sdk ${SDKROOT} -version PlatformPath | head -1 | sed 's,^.*/\([^/]*\)\.platform$,\1,')
6if [ ${PRODUCT}x = x ]; then
7 PRODUCT=MacOSX
8fi
9
10if [ ${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
13fi
14
15DESTDIR="$DSTROOT"/System/Library/LaunchDaemons
16install -d -m 0755 -o root -g wheel "$DESTDIR"
17install -m 0644 -o root -g wheel "$SRCROOT"/syslogd.tproj/com.apple.syslogd.plist "$DESTDIR"
18plutil -convert binary1 "$DESTDIR"/com.apple.syslogd.plist
19
20mkfile 8 "$DSTROOT"/private/var/log/asl/SweepStore
21chmod 0644 "$DSTROOT"/private/var/log/asl/SweepStore