2015-10-29 08:13:02 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# fastd
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-10-31 22:07:07 +01:00
|
|
|
FASTD_VERSION = 21
|
2020-06-11 21:25:04 +02:00
|
|
|
FASTD_SITE = https://github.com/NeoRaider/fastd/releases/download/v$(FASTD_VERSION)
|
2016-04-02 12:38:28 +02:00
|
|
|
FASTD_SOURCE = fastd-$(FASTD_VERSION).tar.xz
|
2017-03-30 15:43:39 +02:00
|
|
|
FASTD_LICENSE = BSD-2-Clause
|
2015-10-29 08:13:02 +01:00
|
|
|
FASTD_LICENSE_FILES = COPYRIGHT
|
2020-10-31 22:07:06 +01:00
|
|
|
FASTD_DEPENDENCIES = host-bison host-pkgconf libuecc libsodium
|
2015-10-29 08:13:02 +01:00
|
|
|
|
2020-10-31 22:07:06 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
2020-10-31 22:07:07 +01:00
|
|
|
FASTD_CONF_OPTS += -Dcapabilities=enabled
|
2020-10-31 22:07:06 +01:00
|
|
|
FASTD_DEPENDENCIES += libcap
|
|
|
|
else
|
2020-10-31 22:07:07 +01:00
|
|
|
FASTD_CONF_OPTS += -Dcapabilities=disabled
|
2020-10-31 22:07:06 +01:00
|
|
|
endif
|
|
|
|
|
2015-10-29 08:13:02 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
2020-10-31 22:07:07 +01:00
|
|
|
FASTD_CONF_OPTS += -Dcipher_aes128-ctr=enabled
|
2015-10-29 08:13:02 +01:00
|
|
|
FASTD_DEPENDENCIES += openssl
|
|
|
|
else
|
2020-10-31 22:07:07 +01:00
|
|
|
FASTD_CONF_OPTS += -Dcipher_aes128-ctr=disabled
|
2015-10-29 08:13:02 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FASTD_STATUS_SOCKET),y)
|
2020-10-31 22:07:07 +01:00
|
|
|
FASTD_CONF_OPTS += -Dstatus_socket=enabled
|
2015-10-29 08:13:02 +01:00
|
|
|
FASTD_DEPENDENCIES += json-c
|
|
|
|
else
|
2020-10-31 22:07:07 +01:00
|
|
|
FASTD_CONF_OPTS += -Dstatus_socket=disabled
|
2015-10-29 08:13:02 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_INIT_SYSTEMD),y)
|
2020-10-31 22:07:07 +01:00
|
|
|
FASTD_CONF_OPTS += -Dsystemd=enabled
|
2015-10-29 08:13:02 +01:00
|
|
|
else
|
2020-10-31 22:07:07 +01:00
|
|
|
FASTD_CONF_OPTS += -Dsystemd=disabled
|
2015-10-29 08:13:02 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_GCC_ENABLE_LTO),y)
|
2020-10-31 22:07:07 +01:00
|
|
|
FASTD_CONF_OPTS += -Db_lto=true
|
2015-10-29 08:13:02 +01:00
|
|
|
else
|
2020-10-31 22:07:07 +01:00
|
|
|
FASTD_CONF_OPTS += -Db_lto=false
|
2015-10-29 08:13:02 +01:00
|
|
|
endif
|
|
|
|
|
2020-10-31 22:07:07 +01:00
|
|
|
$(eval $(meson-package))
|