openvpn: bump to version 2.3.0
PATCH 1/1 openvpn: bump to version 2.3.0
Toolchain IPv6 support isn't optional any more.
New PolarSSL backend besides the usual OpenSSL one.
New small binary option, reduces binary file size ~100 KiB depending on target architecture.
Removed no crypto option - it still requires some SSL library headers and it's pointless anyway, after all we're talking about a VPN solution here.
--- package/openvpn/Config.in | 39 ++++++++++-- package/openvpn/openvpn-allow-polarssl-1.2.patch | 72 ++++++++++++++++++++++ .../openvpn-fix-build-with-disable-crypto.patch | 30 --------- package/openvpn/openvpn.mk | 32 ++++++---- 4 files changed, 126 insertions(+), 47 deletions(-) create mode 100644 package/openvpn/openvpn-allow-polarssl-1.2.patch delete mode 100644 package/openvpn/openvpn-fix-build-with-disable-crypto.patch
package/openvpn/Config.in +33 -6
@@ -1,5 +1,10 @@ +comment "openvpn requires a toolchain with IPV6 support" + depends on !BR2_INET_IPV6 + config BR2_PACKAGE_OPENVPN bool "openvpn" + depends on BR2_INET_IPV6 + depends on BR2_USE_MMU # fork() help OpenVPN is a full-featured SSL VPN solution which can accomodate a wide range of configurations, including road
@@ -8,20 +13,42 @@ config BR2_PACKAGE_OPENVPN remote access solutions with load balancing, failover, and fine-grained access-controls. - http://openvpn.sourceforge.net/ + http://openvpn.net/ + +if BR2_PACKAGE_OPENVPN config BR2_PACKAGE_OPENVPN_LZO bool "LZO compression" default y - depends on BR2_PACKAGE_OPENVPN select BR2_PACKAGE_LZO help Enable LZO compression. -config BR2_PACKAGE_OPENVPN_OPENSSL - bool "OpenSSL support" - default y - depends on BR2_PACKAGE_OPENVPN +config BR2_PACKAGE_OPENVPN_SMALL + bool "Optimize for small size" + help + Make OpenVPN as small as possible. + You loose eurephia, debugging info, help messages and more. + It saves around 100 KiB in binary file size. + +choice + prompt "Crypto backend" + default BR2_PACKAGE_OPENVPN_CRYPTO_OPENSSL + help + Select the cryptographic library to use. + + config BR2_PACKAGE_OPENVPN_CRYPTO_OPENSSL + bool "OpenSSL" select BR2_PACKAGE_OPENSSL help Enable TLS-based key exchange and OpenSSL crypto support. + + config BR2_PACKAGE_OPENVPN_CRYPTO_POLARSSL + bool "PolarSSL" + select BR2_PACKAGE_POLARSSL + help + Enable TLS-based key exchange and PolarSSL crypto support. + +endchoice + +endif
package/openvpn/openvpn-allow-polarssl-1.2.patch new file +72 -0
72 lines not on this page · raw message
package/openvpn/openvpn-fix-build-with-disable-crypto.patch deleted +0 -30
@@ -1,30 +0,0 @@ -[PATCH] fix build with --disable-crypto - -options.c is missing the definition for struct context when built with ---disable-crypto, as it then doesn't get pulled in through push.h, -leading to build errors like: - -options.c: In function ?parse_http_proxy_fallback?: -options.c:1474: error: dereferencing pointer to incomplete type -options.c:1477: error: dereferencing pointer to incomplete type -options.c:1478: error: dereferencing pointer to incomplete type - -Fix it by including forward.h - -Signed-off-by: Peter Korsgaard <[email protected]> ---- - options.c | 1 + - 1 file changed, 1 insertion(+) - -Index: openvpn-2.1.3/options.c -=================================================================== ---- openvpn-2.1.3.orig/options.c -+++ openvpn-2.1.3/options.c -@@ -29,6 +29,7 @@ - - #include "syshead.h" - -+#include "forward.h" - #include "buffer.h" - #include "error.h" - #include "common.h"
package/openvpn/openvpn.mk +21 -11
@@ -4,17 +4,23 @@ # ############################################################# -OPENVPN_VERSION = 2.2.2 +OPENVPN_VERSION = 2.3.0 OPENVPN_SITE = http://swupdate.openvpn.net/community/releases -OPENVPN_CONF_OPT = --enable-small --disable-plugins \ - --with-ifconfig-path=/sbin/ifconfig \ - --with-route-path=/sbin/route \ - --with-netstat-path=/bin/netstat +OPENVPN_DEPENDENCIES = host-pkgconf +OPENVPN_CONF_OPT = --disable-plugin-auth-pam --enable-iproute2 +OPENVPN_CONF_ENV = IFCONFIG=/sbin/ifconfig \ + NETSTAT=/bin/netstat \ + ROUTE=/sbin/route + +ifeq ($(BR2_PACKAGE_OPENVPN_SMALL),y) +OPENVPN_CONF_OPT += --enable-small --disable-plugins \ + --disable-debug --disable-eurephia +endif ifeq ($(BR2_PACKAGE_IPROUTE2),y) -OPENVPN_CONF_OPT += --with-iproute-path=/sbin/ip +OPENVPN_CONF_ENV += IPROUTE=/sbin/ip else -OPENVPN_CONF_OPT += --with-iproute-path=/bin/ip +OPENVPN_CONF_ENV += IPROUTE=/bin/ip endif ifeq ($(BR2_PACKAGE_OPENVPN_LZO),y)
@@ -23,14 +29,18 @@ else OPENVPN_CONF_OPT += --disable-lzo endif -ifeq ($(BR2_PACKAGE_OPENVPN_OPENSSL),y) +ifeq ($(BR2_PACKAGE_OPENVPN_CRYPTO_OPENSSL),y) + OPENVPN_CONF_OPT += --with-crypto-library=openssl OPENVPN_DEPENDENCIES += openssl -else - OPENVPN_CONF_OPT += --disable-crypto --disable-ssl +endif + +ifeq ($(BR2_PACKAGE_OPENVPN_CRYPTO_POLARSSL),y) + OPENVPN_CONF_OPT += --with-crypto-library=polarssl + OPENVPN_DEPENDENCIES += polarssl endif define OPENVPN_INSTALL_TARGET_CMDS - $(INSTALL) -m 755 $(@D)/openvpn \ + $(INSTALL) -m 755 $(@D)/src/openvpn/openvpn \ $(TARGET_DIR)/usr/sbin/openvpn if [ ! -f $(TARGET_DIR)/etc/init.d/openvpn ]; then \ $(INSTALL) -m 755 -D package/openvpn/openvpn.init \
Signature · 1 line
1.7.12.4
PATCH 1/1 openvpn: bump to version 2.3.0
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> Toolchain IPv6 support isn't optional any more.
Gustavo> New PolarSSL backend besides the usual OpenSSL one. Gustavo> New small binary option, reduces binary file size ~100 KiB depending on Gustavo> target architecture.
Gustavo> Removed no crypto option - it still requires some SSL library Gustavo> headers and it's pointless anyway, after all we're talking Gustavo> about a VPN solution here.
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard