summaryrefslogtreecommitdiff
path: root/data/network-cmds/make.sh
blob: 7545bf0eb372321bc817f9efe3793ea7e3dbcf24 (plain)
1
2
3
4
5
6
7
8
9
10
shopt -s extglob
tar -zxvf "${PKG_DATA}/network_cmds-306.tar.gz"
cd network_cmds-306
for tproj in !(natd|ping|spray).tproj; do
    tproj=$(basename "${tproj}" .tproj)
    "${PKG_TARG}-gcc" -o "${tproj}" "${tproj}.tproj"/*.c -DPRIVATE -Dether_ntohost=_old_ether_ntohost
    pkg:usrbin "${tproj}"
done
"${PKG_TARG}-gcc" -Ialias -o natd natd.tproj/*.c alias/*.c -DPRIVATE
pkg:usrbin natd