From 701b80f7c570fbab24d7660475a28ef84c9887be Mon Sep 17 00:00:00 2001 From: chewitt Date: Sat, 2 Nov 2019 14:00:08 +0000 Subject: [PATCH] config: add support for optionally building WireGuard --- config/show_config | 1 + distributions/LibreELEC/options | 3 +++ packages/virtual/network/package.mk | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/config/show_config b/config/show_config index d0ed8af74de..f7bc75036a5 100644 --- a/config/show_config +++ b/config/show_config @@ -95,6 +95,7 @@ show_config() { config_message="$config_message\n - SAMBA server support:\t\t $SAMBA_SERVER" config_message="$config_message\n - SFTP server support:\t\t\t $SFTP_SERVER" config_message="$config_message\n - OpenVPN support:\t\t\t $OPENVPN_SUPPORT" + config_message="$config_message\n - WireGuard support:\t\t\t $WIREGUARD_SUPPORT" # OS configuration diff --git a/distributions/LibreELEC/options b/distributions/LibreELEC/options index 10503e5bc72..0a7087c3314 100644 --- a/distributions/LibreELEC/options +++ b/distributions/LibreELEC/options @@ -115,6 +115,9 @@ # build and install OpenVPN support (yes / no) OPENVPN_SUPPORT="yes" +# build and install WireGuard support (yes / no) + WIREGUARD_SUPPORT="yes" + # build and install diskmounter support (udevil) # this service provide auto mounting support for external drives in the # mediacenter also automount internally drives at boottime via udev (yes / no) diff --git a/packages/virtual/network/package.mk b/packages/virtual/network/package.mk index 76a14503a33..c13737907cc 100644 --- a/packages/virtual/network/package.mk +++ b/packages/virtual/network/package.mk @@ -22,6 +22,10 @@ if [ "$OPENVPN_SUPPORT" = "yes" ]; then PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET openvpn" fi +if [ "$WIREGUARD_SUPPORT" = "yes" ]; then + PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET wireguard-tools wireguard-linux-compat" +fi + # nss needed by inputstream.adaptive, chromium etc. if [ "$TARGET_ARCH" = "x86_64" ] || [ "$TARGET_ARCH" = "arm" ]; then PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET nss"