diff options
Diffstat (limited to 'data/network-cmds/make.sh')
-rw-r--r-- | data/network-cmds/make.sh | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/data/network-cmds/make.sh b/data/network-cmds/make.sh index aa20f9d38..f4d4a4d60 100644 --- a/data/network-cmds/make.sh +++ b/data/network-cmds/make.sh @@ -1,9 +1,22 @@ shopt -s extglob pkg:setup + for tproj in !(natd|ping|rarpd|spray).tproj; do tproj=$(basename "${tproj}" .tproj) - "${PKG_TARG}-gcc" -o "${tproj}" "${tproj}.tproj"/*.c -DPRIVATE -Dether_ntohost=_old_ether_ntohost - pkg:usrbin "${tproj}" + echo "${tproj}" + "${PKG_TARG}-gcc" -O2 -mthumb -o "${tproj}" "${tproj}.tproj"/!(ns).c -DPRIVATE -Dether_ntohost=_old_ether_ntohost done -"${PKG_TARG}-gcc" -Ialias -o natd natd.tproj/*.c alias/*.c -DPRIVATE -pkg:usrbin natd + +echo natd +"${PKG_TARG}-gcc" -Ialias -O2 -mthumb -o natd natd.tproj/*.c alias/*.c -DPRIVATE + +pkg: mkdir -p {,/usr}/{,s}bin /usr/libexec + +# XXX: what /is/ ip6conf? where is ip6conf/ig/? +pkg: cp -a ip6conf /usr/bin + +pkg: cp -a kdumpd /usr/libexec +pkg: cp -a ifconfig ip6fw ipfw netstat ping6 route routed rtsol slattach /sbin +pkg: cp -a arp natd ndp rtadvd traceroute traceroute6 trpt /usr/sbin + +ln -s /sbin/ping6 "${PKG_DEST}"/bin |