diff options
Diffstat (limited to 'data/system-cmds/make.sh')
-rw-r--r-- | data/system-cmds/make.sh | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/data/system-cmds/make.sh b/data/system-cmds/make.sh index 7a200fe3b..0275ab3e8 100644 --- a/data/system-cmds/make.sh +++ b/data/system-cmds/make.sh @@ -1,16 +1,25 @@ shopt -s extglob -tar -zxvf "${PKG_DATA}/system_cmds-431.tar.gz" -cd system_cmds-431 -mkdir -p "${PKG_DEST}/usr/bin" +pkg:extract +cd * + cd getconf.tproj for gperf in *.gperf; do LC_ALL=C awk -f fake-gperf.awk <"${gperf}" >"$(basename "${gperf}" .gperf).c" done cd .. + cp -va "${PKG_DATA}"/kextmanager* . # dmesg reboot shutdown for tproj in getconf getty hostinfo iostat login nvram passwd sync sysctl vipw zprint; do echo "${tproj}" arm-apple-darwin-gcc -o "${tproj}" "${tproj}.tproj"/!(od_passwd).c -I. -D'__FBSDID(x)=' -DTARGET_OS_EMBEDDED -framework CoreFoundation -framework IOKit kextmanagerUser.c - cp -a "${tproj}" "${PKG_DEST}/usr/bin" + arm-apple-darwin-strip "${tproj}" done + +chmod u+s passwd login + +pkg: mkdir -p /bin /usr/bin /usr/sbin + +pkg: cp -a sync /bin +pkg: cp -a passwd zprint getty getconf hostinfo login /usr/bin +pkg: cp -a sysctl nvram vipw iostat /usr/sbin |