blob: 284e5dad40d3c6b9e6d46fee2cf5287c5139cd3e (
plain)
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
|
shopt -s extglob
pkg:extract
cd *
pkg:patch
cd getconf.tproj
for gperf in *.gperf; do
LC_ALL=C awk -f fake-gperf.awk <"${gperf}" >"$(basename "${gperf}" .gperf).c"
done
cd ..
arm-apple-darwin-gcc -o passwd passwd.tproj/!(od_passwd).c -I. -DTARGET_OS_EMBEDDED
arm-apple-darwin-strip passwd
cp -va "${PKG_DATA}"/kextmanager* .
# dmesg reboot shutdown
for tproj in getconf getty hostinfo iostat login nvram sync sysctl vipw zprint; do
echo "${tproj}"
arm-apple-darwin-gcc -o "${tproj}" "${tproj}.tproj"/*.c -I. -D'__FBSDID(x)=' -DTARGET_OS_EMBEDDED -framework CoreFoundation -framework IOKit kextmanagerUser.c
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
|