network/wireguard-tools: Fix script.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Anj Duvnjak 2020-01-17 01:03:38 +07:00 committed by Willy Sudiarto Raharjo
parent 0e78b0de95
commit e0240b2e4f
2 changed files with 16 additions and 1 deletions

View File

@ -8,3 +8,13 @@ Slackbuilds to build the associated kernel module package.
openresolv is an optional runtime dependency -- you need it if you want
to use to use wg-quick's DNS option.
The wg-quick script needs at least nft 0.7 installed, if using nft.
Slackware 14.2 ships with nftables 0.6. As such the build script
will patch wg-quick to always fall back to iptables.
If you have nftables 0.7 or newer installed (i.e. you are running
-current or a modified 14.2 installation), you may want to leave
wg-quick unpatched by setting NEW_NFT as follows -:
NEW_NFT=yes ./wireguard-tools.SlackBuild

View File

@ -25,7 +25,7 @@
PRGNAM=wireguard-tools
VERSION=${VERSION:-1.0.20200102}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGVER="$(printf %s "${VERSION}" | tr - _)"
@ -72,6 +72,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
NEW_NFT=${NEW_NFT:-no}
[[ $NEW_NFT != "no" ]] || sed -i 's/type -p nft/false/g' src/wg-quick/linux.bash ;
# If you want this, you can have it :)
SYSTEMD="${SYSTEMD:-no}"