shorewall6-lite: fix build on macos
authorSergey V. Lobanov <sergey@lobanov.in>
Fri, 4 Feb 2022 19:47:04 +0000 (22:47 +0300)
committerRosen Penev <rosenp@gmail.com>
Thu, 24 Feb 2022 01:12:50 +0000 (17:12 -0800)
commit166f82f3c2537d829fd6e8ee3deae221f6be0678
treef1c2f7710b8d9445646cf8e853dae8829624641d
parentdca9828479c8fdd4d011e5e47a322aaea862e23a
shorewall6-lite: fix build on macos

shorewall6-lite macos build fails due to:
1. MacOS bash is too old (3.x), but shorewall6-lite requires bash>4
This patch uses OpenWrt tools/bash built for macos (bash 5.x)

2. install.sh detects Darwin using uname and changes install logic,
but it fails in case of cross-platform build
This patch uses fakeuname/host tool to avoid Darwin detection

3. fakeuname does not work in install.sh because install.sh
redefines PATH.
This patch removes PATH=... from install.sh on macos

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
net/shorewall6-lite/Makefile