openvpn: ssl-enabled variants also provide a virtual openvpn-crypto package

When relying on x.509 certs for auth and / or encryption of traffic you can't
use package openvpn-nossl.
Just have your package depend on openvpn-crypto to have SSL-encryption and
X.509-support enabled in OpenVPN. If encryption / X.509 is not a must, use
virtual packge openvpn, which is provided by all OpenVPN-variants.

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
Sven Roederer 2017-01-22 19:00:51 +01:00 committed by Jo-Philipp Wich
parent acebb4a990
commit 7c5bc827b7
1 changed files with 5 additions and 1 deletions

View File

@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=openvpn PKG_NAME:=openvpn
PKG_VERSION:=2.4.0 PKG_VERSION:=2.4.0
PKG_RELEASE:=2 PKG_RELEASE:=3
PKG_SOURCE_URL:=http://swupdate.openvpn.net/community/releases PKG_SOURCE_URL:=http://swupdate.openvpn.net/community/releases
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
@ -34,7 +34,11 @@ define Package/openvpn/Default
MENU:=1 MENU:=1
DEPENDS:=+kmod-tun +OPENVPN_$(1)_ENABLE_LZO:liblzo +OPENVPN_$(1)_ENABLE_IPROUTE2:ip $(3) DEPENDS:=+kmod-tun +OPENVPN_$(1)_ENABLE_LZO:liblzo +OPENVPN_$(1)_ENABLE_IPROUTE2:ip $(3)
VARIANT:=$(1) VARIANT:=$(1)
ifeq ($(1),nossl)
PROVIDES:=openvpn PROVIDES:=openvpn
else
PROVIDES:=openvpn openvpn-crypto
endif
MAINTAINER:=Mirko Vogt <mirko@openwrt.org> MAINTAINER:=Mirko Vogt <mirko@openwrt.org>
endef endef