initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
config BR2_PACKAGE_OPENSWAN
|
||||
bool "openswan"
|
||||
depends on BR2_USE_MMU # iproute2
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 # iproute2
|
||||
depends on !BR2_TOOLCHAIN_USES_UCLIBC # ns_t_tkey
|
||||
select BR2_PACKAGE_GMP
|
||||
select BR2_PACKAGE_IPROUTE2
|
||||
help
|
||||
Openswan is an implementation of IPsec for Linux
|
||||
|
||||
http://www.openswan.org
|
||||
|
||||
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_UCLIBC
|
||||
@@ -0,0 +1,4 @@
|
||||
# Locally calculated
|
||||
sha256 69fe7a71e54aaf0ea93b874db4963057c1ff4904b3617b36f2c9be2010c23331 openswan-3.0.0.tar.gz
|
||||
sha256 1c36ae1e7b0f6cce4b4ffe969b71f83635734804acdd38544443564b00f8783a COPYING
|
||||
sha256 d7d012ef3be47faffba4d97a83d4986c9f4a63ac997ebf5961d33852e5f1801a LICENSE
|
||||
@@ -0,0 +1,43 @@
|
||||
################################################################################
|
||||
#
|
||||
# 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_CPE_ID_VENDOR = xelerance
|
||||
|
||||
OPENSWAN_DEPENDENCIES = host-bison host-flex gmp iproute2
|
||||
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 \
|
||||
USE_NOMANINSTALL=true WERROR=""
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
||||
OPENSWAN_DEPENDENCIES += libcurl
|
||||
OPENSWAN_MAKE_OPTS += USE_LIBCURL=true
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
OPENSWAN_DEPENDENCIES += openssl
|
||||
OPENSWAN_MAKE_OPTS += HAVE_OPENSSL=true
|
||||
ifeq ($(BR2_PACKAGE_OCF_LINUX),y)
|
||||
OPENSWAN_MAKE_OPTS += HAVE_OCF=true
|
||||
endif
|
||||
endif
|
||||
|
||||
define OPENSWAN_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) \
|
||||
$(OPENSWAN_MAKE_OPTS) programs
|
||||
endef
|
||||
|
||||
define OPENSWAN_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) \
|
||||
$(OPENSWAN_MAKE_OPTS) DESTDIR=$(TARGET_DIR) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user