+++ /dev/null
-From 3324d5ab1d00920ea46f453240da1356e0639e98 Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-Date: Thu, 24 Sep 2020 21:55:31 +0200
-Subject: [PATCH] fix build with gcc 10
-
-Define kw_host_list and kw_connaddrfamily_list as extern to avoid the following
-build failure with gcc 10 (which defaults to -fno-common):
-
-/home/peko/autobuild/instance-1/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: initiate.o:/home/peko/autobuild/instance-1/output-1/build/openswan-2.6.51.5/include/pluto_constants.h:650: multiple definition of `kw_host_list'; connections.o:/home/peko/autobuild/instance-1/output-1/build/openswan-2.6.51.5/include/pluto_constants.h:650: first defined here
-
-Fixes:
- - http://autobuild.buildroot.org/results/650fc0046fd063c70e17ce5ebd9592195657434d
-
-Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-[Upstream status: https://github.com/xelerance/Openswan/pull/444]
----
- include/ipsecconf/keywords.h | 2 +-
- include/pluto_constants.h | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/include/ipsecconf/keywords.h b/include/ipsecconf/keywords.h
-index e32be7968..02e8e073e 100644
---- a/include/ipsecconf/keywords.h
-+++ b/include/ipsecconf/keywords.h
-@@ -314,7 +314,7 @@ struct config_parsed {
- bool got_default;
- };
-
--const struct keyword_enum_values kw_connaddrfamily_list;
-+extern const struct keyword_enum_values kw_connaddrfamily_list;
-
- extern struct keyword_def ipsec_conf_keywords_v2[];
- extern const int ipsec_conf_keywords_v2_count;
-diff --git a/include/pluto_constants.h b/include/pluto_constants.h
-index c35dd9576..dcbd3b5b4 100644
---- a/include/pluto_constants.h
-+++ b/include/pluto_constants.h
-@@ -665,7 +665,7 @@ enum keyword_host {
- KH_IPADDR = LOOSE_ENUM_OTHER,
- };
- /* keyword_name(&kw_host_list, type, buffer[KEYWORD_NAME_BUFLEN]) */
--struct keyword_enum_values kw_host_list;
-+extern struct keyword_enum_values kw_host_list;
- #define KH_ISWILDCARD(type) ((type) == KH_ANY || (type) == KH_DEFAULTROUTE)
- #define KH_ISKNOWNADDR(type) ((type) == KH_IPADDR || (type)==KH_IFACE)
-
---
-2.28.0
-
bool "openswan"
depends on BR2_USE_MMU # iproute2
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 # iproute2
- depends on !BR2_TOOLCHAIN_USES_MUSL # GLOB_BRACE
+ depends on !BR2_TOOLCHAIN_USES_UCLIBC # ns_t_tkey
select BR2_PACKAGE_GMP
select BR2_PACKAGE_IPROUTE2
help
http://www.openswan.org
-comment "openswan needs a uClibc or glibc toolchain w/ headers >= 3.4"
+comment "openswan needs a glibc or musl toolchain w/ headers >= 3.4"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 || \
- BR2_TOOLCHAIN_USES_MUSL
+ BR2_TOOLCHAIN_USES_UCLIBC
# Locally calculated
-sha256 4124f4ce970089f301c34b9c48f54b021cf6b2b8813877942337f8022104f70d openswan-2.6.51.5.tar.gz
-sha256 1c36ae1e7b0f6cce4b4ffe969b71f83635734804acdd38544443564b00f8783a COPYING
-sha256 d7d012ef3be47faffba4d97a83d4986c9f4a63ac997ebf5961d33852e5f1801a LICENSE
+sha256 69fe7a71e54aaf0ea93b874db4963057c1ff4904b3617b36f2c9be2010c23331 openswan-3.0.0.tar.gz
+sha256 1c36ae1e7b0f6cce4b4ffe969b71f83635734804acdd38544443564b00f8783a COPYING
+sha256 d7d012ef3be47faffba4d97a83d4986c9f4a63ac997ebf5961d33852e5f1801a LICENSE
#
################################################################################
-OPENSWAN_VERSION = 2.6.51.5
-OPENSWAN_SITE = https://download.openswan.org/openswan
+OPENSWAN_VERSION = 3.0.0
+OPENSWAN_SITE = $(call github,xelerance,Openswan,v$(OPENSWAN_VERSION))
OPENSWAN_LICENSE = GPL-2.0+, BSD-3-Clause
OPENSWAN_LICENSE_FILES = COPYING LICENSE
OPENSWAN_MAKE_OPTS = ARCH=$(BR2_ARCH) CC="$(TARGET_CC)" POD2MAN="" XMLTO="" \
USERCOMPILE="$(TARGET_CFLAGS) $(if $(BR2_TOOLCHAIN_SUPPORTS_PIE),-fPIE)" \
USERLINK="$(TARGET_LDFLAGS) $(if $(BR2_TOOLCHAIN_SUPPORTS_PIE),-fPIE)" \
- INC_USRLOCAL=/usr USE_KLIPS=false USE_MAST=false USE_NM=false
+ INC_USRLOCAL=/usr USE_KLIPS=false USE_MAST=false USE_NM=false \
+ USE_NOMANINSTALL=true
ifeq ($(BR2_PACKAGE_LIBCURL),y)
OPENSWAN_DEPENDENCIES += libcurl