]>
Commit | Line | Data |
---|---|---|
5222c21d | 1 | #! /bin/bash -e -x |
a83ff38a | 2 | |
5222c21d | 3 | if [[ "${PLATFORM_NAME}" =~ "simulator" ]] ; then |
81582353 | 4 | PLIST="${SRCROOT}"/syslogd.tproj/com.apple.syslogd_sim.plist |
5222c21d A |
5 | ASL_CONF="${SRCROOT}"/syslogd.tproj/asl.conf.ios_sim |
6 | elif [[ "${PLATFORM_NAME}" == "macosx" ]] ; then | |
7 | PLIST="${SRCROOT}"/syslogd.tproj/com.apple.syslogd.plist | |
8 | ASL_CONF="${SRCROOT}"/syslogd.tproj/asl.conf.osx | |
9 | SYSLOG_CONF="${SRCROOT}"/syslogd.tproj/syslog.conf | |
ec7ffbeb A |
10 | elif [[ "${PLATFORM_NAME}" == "bridgeos" ]] ; then |
11 | PLIST="${SRCROOT}"/syslogd.tproj/com.apple.syslogd.plist | |
12 | ASL_CONF="${SRCROOT}"/syslogd.tproj/asl.conf.ios | |
13 | SYSLOG_CONF="${SRCROOT}"/syslogd.tproj/syslog.conf | |
14 | SYSTEM_LOG_CONF="${SRCROOT}"/syslogd.tproj/com.apple.system.log.bridgeos | |
81582353 | 15 | else |
81582353 | 16 | PLIST="${SRCROOT}"/syslogd.tproj/com.apple.syslogd.plist |
5222c21d A |
17 | ASL_CONF="${SRCROOT}"/syslogd.tproj/asl.conf.ios |
18 | SYSLOG_CONF="${SRCROOT}"/syslogd.tproj/syslog.conf | |
19 | SYSTEM_LOG_CONF="${SRCROOT}"/syslogd.tproj/com.apple.system.log | |
81582353 A |
20 | fi |
21 | ||
5222c21d A |
22 | DESTDIR="${DSTROOT}"/private/etc |
23 | install -d -m 0755 -o root -g wheel "${DESTDIR}" | |
24 | install -m 0644 -o root -g wheel "${ASL_CONF}" "${DESTDIR}"/asl.conf | |
25 | if [[ -n "${SYSLOG_CONF}" ]] ; then | |
26 | install -m 0644 -o root -g wheel "${SYSLOG_CONF}" "${DESTDIR}" | |
27 | fi | |
f3df4c03 | 28 | |
5222c21d | 29 | DESTDIR="${DSTROOT}"/System/Library/LaunchDaemons |
81582353 A |
30 | install -d -m 0755 -o root -g wheel "${DESTDIR}" |
31 | install -m 0644 -o root -g wheel "${PLIST}" "${DESTDIR}"/com.apple.syslogd.plist | |
32 | plutil -convert binary1 "${DESTDIR}"/com.apple.syslogd.plist | |
33 | ||
5222c21d | 34 | if [[ "${PLATFORM_NAME}" =~ "simulator" ]] ; then |
81582353 A |
35 | exit 0 |
36 | fi | |
37 | ||
a83ff38a A |
38 | install -d -m 0755 -o root -g wheel "$DSTROOT"/private/var/log/asl |
39 | ||
5222c21d | 40 | if [[ "${PLATFORM_NAME}" != "macosx" ]]; then |
a83ff38a A |
41 | install -d -m 0755 -o root -g wheel "$DSTROOT"/usr/share/sandbox |
42 | install -m 0644 -o root -g wheel "$SRCROOT"/syslogd.tproj/syslogd.sb "$DSTROOT"/usr/share/sandbox | |
43 | fi | |
5222c21d A |
44 | |
45 | if ! [[ "${PLATFORM_NAME}" =~ "simulator" || "${PLATFORM_NAME}" == "macosx" ]]; then | |
46 | DESTDIR="${DSTROOT}"/usr/local/etc/asl | |
47 | install -d -m 0755 -o root -g wheel "${DESTDIR}" | |
48 | install -m 0644 -o root -g wheel "${SYSTEM_LOG_CONF}" "${DESTDIR}"/com.apple.system.log | |
49 | fi |