Skip to content

Commit

Permalink
config: add support for optionally building WireGuard
Browse files Browse the repository at this point in the history
  • Loading branch information
chewitt committed Jan 31, 2020
1 parent d1640fe commit 701b80f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/show_config
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions distributions/LibreELEC/options
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions packages/virtual/network/package.mk
Expand Up @@ -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"
Expand Down

0 comments on commit 701b80f

Please sign in to comment.