distribution/packages/virtual/network/package.mk

37 lines
1.1 KiB
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2018-present Team CoreELEC (https://coreelec.org)
PKG_NAME="network"
PKG_VERSION=""
PKG_LICENSE="various"
PKG_SITE="https://libreelec.tv"
PKG_URL=""
PKG_DEPENDS_TARGET="toolchain connman netbase ethtool openssh iw rsync"
PKG_SECTION="virtual"
PKG_LONGDESC="Metapackage for various packages to install network support"
2022-07-01 20:17:33 +00:00
if [ "${BLUETOOTH_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET="${PKG_DEPENDS_TARGET} bluez"
2022-02-05 14:23:32 +00:00
fi
2022-07-01 20:17:33 +00:00
if [ "${SAMBA_SERVER}" = "yes" ] || [ "$SAMBA_SUPPORT" = "yes" ]; then
PKG_DEPENDS_TARGET="${PKG_DEPENDS_TARGET} samba"
2022-02-05 14:23:32 +00:00
fi
2022-07-01 20:17:33 +00:00
if [ "${OPENVPN_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET="${PKG_DEPENDS_TARGET} openvpn"
2022-02-05 14:23:32 +00:00
fi
2022-07-01 20:17:33 +00:00
if [ "${WIREGUARD_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET="${PKG_DEPENDS_TARGET} wireguard-tools"
if [ ! "${TARGET_ARCH}" = "x86_64" ]; then
PKG_DEPENDS_TARGET+=" wireguard-linux-compat"
fi
2022-02-05 14:23:32 +00:00
fi
# nss needed by inputstream.adaptive, chromium etc.
2022-07-01 20:17:33 +00:00
if [ "${TARGET_ARCH}" = "x86_64" ] || [ "${TARGET_ARCH}" = "arm" ]; then
PKG_DEPENDS_TARGET="${PKG_DEPENDS_TARGET} nss"
2022-02-05 14:23:32 +00:00
fi