network/wireguard-tools: Fix script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
0e78b0de95
commit
e0240b2e4f
|
@ -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
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
|
Loading…
Reference in New Issue