Initial Commit
- initial default booting image
This commit is contained in:
36
package/fastd/Config.in
Normal file
36
package/fastd/Config.in
Normal file
@@ -0,0 +1,36 @@
|
||||
config BR2_PACKAGE_FASTD
|
||||
bool "fastd"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_STATIC_LIBS # libuecc
|
||||
select BR2_PACKAGE_LIBUECC
|
||||
select BR2_PACKAGE_LIBSODIUM
|
||||
select BR2_PACKAGE_LIBSODIUM_FULL
|
||||
help
|
||||
Fast and Secure Tunneling Daemon
|
||||
|
||||
https://github.com/NeoRaider/fastd/wiki
|
||||
|
||||
if BR2_PACKAGE_FASTD
|
||||
|
||||
config BR2_PACKAGE_FASTD_STATUS_SOCKET
|
||||
bool "status socket support"
|
||||
default y
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
|
||||
select BR2_PACKAGE_JSON_C
|
||||
help
|
||||
Enable support for a socket to get fastd's status.
|
||||
|
||||
config BR2_PACKAGE_FASTD_OFFLOAD_L2TP
|
||||
bool "l2tp offload support"
|
||||
select BR2_PACKAGE_LIBMNL
|
||||
help
|
||||
L2TP can be offloaded to the Linux kernel, significantly
|
||||
increasing throughput.
|
||||
|
||||
endif
|
||||
|
||||
comment "fastd needs a toolchain w/ threads, dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS \
|
||||
|| BR2_STATIC_LIBS
|
||||
3
package/fastd/fastd.hash
Normal file
3
package/fastd/fastd.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# computed locally
|
||||
sha256 dcab54485c79dda22ce6308a2a48764d53977a518952facd1204ba21af1c86e0 fastd-23.tar.xz
|
||||
sha256 f229ee6df84971355f7d54d60b0302ca8a3b883d2dc41176e58e9da4aa7c1b05 LICENSE
|
||||
55
package/fastd/fastd.mk
Normal file
55
package/fastd/fastd.mk
Normal file
@@ -0,0 +1,55 @@
|
||||
################################################################################
|
||||
#
|
||||
# fastd
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FASTD_VERSION = 23
|
||||
FASTD_SITE = https://github.com/NeoRaider/fastd/releases/download/v$(FASTD_VERSION)
|
||||
FASTD_SOURCE = fastd-$(FASTD_VERSION).tar.xz
|
||||
FASTD_LICENSE = BSD-2-Clause
|
||||
FASTD_LICENSE_FILES = LICENSE
|
||||
FASTD_CPE_ID_VERSION = $(FASTD_VERSION).0
|
||||
FASTD_DEPENDENCIES = host-bison host-pkgconf libuecc libsodium
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
||||
FASTD_CONF_OPTS += -Dcapabilities=enabled
|
||||
FASTD_DEPENDENCIES += libcap
|
||||
else
|
||||
FASTD_CONF_OPTS += -Dcapabilities=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
FASTD_CONF_OPTS += -Dcipher_aes128-ctr=enabled
|
||||
FASTD_DEPENDENCIES += openssl
|
||||
else
|
||||
FASTD_CONF_OPTS += -Dcipher_aes128-ctr=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FASTD_STATUS_SOCKET),y)
|
||||
FASTD_CONF_OPTS += -Dstatus_socket=enabled
|
||||
FASTD_DEPENDENCIES += json-c
|
||||
else
|
||||
FASTD_CONF_OPTS += -Dstatus_socket=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FASTD_OFFLOAD_L2TP),y)
|
||||
FASTD_CONF_OPTS += -Doffload_l2tp=enabled -Dlibmnl_builtin=false
|
||||
FASTD_DEPENDENCIES += libmnl
|
||||
else
|
||||
FASTD_CONF_OPTS += -Doffload_l2tp=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_INIT_SYSTEMD),y)
|
||||
FASTD_CONF_OPTS += -Dsystemd=enabled
|
||||
else
|
||||
FASTD_CONF_OPTS += -Dsystemd=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_ENABLE_LTO),y)
|
||||
FASTD_CONF_OPTS += -Db_lto=true
|
||||
else
|
||||
FASTD_CONF_OPTS += -Db_lto=false
|
||||
endif
|
||||
|
||||
$(eval $(meson-package))
|
||||
Reference in New Issue
Block a user