[LEDE-DEV] [PATCH] openvpn: ssl-enabled variants also provide a virtual openvpn-x509 package
Sven Roederer
devel-sven at geroedel.de
Sat Jan 21 15:48:08 PST 2017
When relying on x.509 certs for auth don't use package openvpn-nossl. Just
have your package depend on openvpn-x509 to have SSL enabled in OpenVPN.
If x.509 is not a must, use virtual packge openvpn, which is provided by
all OpenVPN-variants.
Signed-off-by: Sven Roederer <devel-sven at geroedel.de>
---
package/network/services/openvpn/Makefile | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/package/network/services/openvpn/Makefile b/package/network/services/openvpn/Makefile
index 80aab0b..575feed 100644
--- a/package/network/services/openvpn/Makefile
+++ b/package/network/services/openvpn/Makefile
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2010-2015 OpenWrt.org
+# Copyright (C) 2010-2017 LEDE-project.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=openvpn
PKG_VERSION:=2.4.0
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE_URL:=http://swupdate.openvpn.net/community/releases
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
@@ -34,7 +34,11 @@ define Package/openvpn/Default
MENU:=1
DEPENDS:=+kmod-tun +OPENVPN_$(1)_ENABLE_LZO:liblzo +OPENVPN_$(1)_ENABLE_IPROUTE2:ip $(3)
VARIANT:=$(1)
+ifeq ($(1),nossl)
PROVIDES:=openvpn
+else
+ PROVIDES:=openvpn openvpn-x509
+endif
MAINTAINER:=Mirko Vogt <mirko at openwrt.org>
endef
--
2.1.4
More information about the Lede-dev
mailing list