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

LEDE Commits lede-commits at lists.infradead.org
Thu Jan 26 09:07:45 PST 2017


jow pushed a commit to source.git, branch master:
https://git.lede-project.org/c7a7e7c94ea5cae7260779821648ccaaca6cb8dc

commit c7a7e7c94ea5cae7260779821648ccaaca6cb8dc
Author: Sven Roederer <devel-sven at geroedel.de>
AuthorDate: Sun Jan 22 19:00:51 2017 +0100

    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 at geroedel.de>
---
 package/network/services/openvpn/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/package/network/services/openvpn/Makefile b/package/network/services/openvpn/Makefile
index 80aab0b..7507e20 100644
--- a/package/network/services/openvpn/Makefile
+++ b/package/network/services/openvpn/Makefile
@@ -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-crypto
+endif
   MAINTAINER:=Mirko Vogt <mirko at openwrt.org>
 endef
 



More information about the lede-commits mailing list