summaryrefslogtreecommitdiff
path: root/data/network-cmds/make.sh
diff options
context:
space:
mode:
Diffstat (limited to 'data/network-cmds/make.sh')
-rw-r--r--data/network-cmds/make.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/data/network-cmds/make.sh b/data/network-cmds/make.sh
new file mode 100644
index 000000000..bded00874
--- /dev/null
+++ b/data/network-cmds/make.sh
@@ -0,0 +1,10 @@
+shopt -s extglob
+tar -zxvf "${PKG_DATA}/network_cmds-306.tar.gz"
+cd network_cmds-306
+for tproj in !(natd|spray).tproj; do
+ tproj=$(basename "${tproj}" .tproj)
+ arm-apple-darwin-gcc -o "${tproj}" "${tproj}.tproj"/*.c -DPRIVATE -Dether_ntohost=_old_ether_ntohost
+ pkg:usrbin "${tproj}"
+done
+arm-apple-darwin-gcc -Ialias -o natd natd.tproj/*.c alias/*.c -DPRIVATE
+pkg:usrbin natd