2020-02-25 16:53:22 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# frr
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-03-22 14:12:28 +01:00
|
|
|
FRR_VERSION = 7.5.1
|
2020-02-25 16:53:22 +01:00
|
|
|
FRR_SITE = $(call github,FRRouting,frr,frr-$(FRR_VERSION))
|
|
|
|
FRR_LICENSE = GPL-2.0
|
|
|
|
FRR_LICENSE_FILES = COPYING
|
2021-05-16 12:44:02 +02:00
|
|
|
FRR_CPE_ID_VENDOR = linuxfoundation
|
|
|
|
FRR_CPE_ID_PRODUCT = free_range_routing
|
2020-02-25 16:53:22 +01:00
|
|
|
FRR_AUTORECONF = YES
|
|
|
|
|
|
|
|
FRR_DEPENDENCIES = host-frr readline json-c \
|
|
|
|
libyang libnl c-ares
|
|
|
|
|
|
|
|
HOST_FRR_DEPENDENCIES = host-flex host-bison host-python3
|
|
|
|
|
|
|
|
FRR_CONF_OPTS = --with-clippy=$(HOST_DIR)/bin/clippy \
|
|
|
|
--sysconfdir=/etc/frr \
|
|
|
|
--localstatedir=/var/run/frr \
|
|
|
|
--with-moduledir=/usr/lib/frr/modules \
|
|
|
|
--enable-configfile-mask=0640 \
|
|
|
|
--enable-logfile-mask=0640 \
|
|
|
|
--enable-multipath=256 \
|
|
|
|
--disable-ospfclient \
|
|
|
|
--enable-shell-access \
|
|
|
|
--enable-user=frr \
|
|
|
|
--enable-group=frr \
|
|
|
|
--enable-vty-group=frrvty \
|
|
|
|
--disable-capabilities \
|
|
|
|
--enable-fpm
|
|
|
|
|
|
|
|
HOST_FRR_CONF_OPTS = --enable-clippy-only
|
|
|
|
|
2020-09-27 14:58:33 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
|
|
FRR_CONF_ENV += LIBS=-latomic
|
|
|
|
endif
|
|
|
|
|
2020-02-25 16:53:22 +01:00
|
|
|
define HOST_FRR_INSTALL_CMDS
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/lib/clippy $(HOST_DIR)/bin/clippy
|
|
|
|
endef
|
|
|
|
|
|
|
|
define FRR_INSTALL_CONFIG_FILES
|
|
|
|
$(foreach f,daemons daemons.conf frr.conf vtysh.conf support_bundle_commands.conf,\
|
|
|
|
$(INSTALL) -D -m 0640 $(@D)/tools/etc/frr/$(f) \
|
|
|
|
$(TARGET_DIR)/etc/frr/$(f)
|
|
|
|
)
|
|
|
|
$(RM) $(TARGET_DIR)/etc/frr/*.sample
|
|
|
|
endef
|
|
|
|
FRR_POST_INSTALL_TARGET_HOOKS += FRR_INSTALL_CONFIG_FILES
|
|
|
|
|
|
|
|
define FRR_PERMISSIONS
|
|
|
|
/etc/frr/daemons f 640 frr frr - - - - -
|
|
|
|
/etc/frr/daemons.conf f 640 frr frr - - - - -
|
|
|
|
/etc/frr/frr.conf f 640 frr frr - - - - -
|
|
|
|
/etc/frr/vtysh.conf f 640 frr frrvty - - - - -
|
|
|
|
/etc/frr/support_bundle_commands.conf f 640 frr frr
|
|
|
|
endef
|
|
|
|
|
|
|
|
define FRR_USERS
|
|
|
|
frr -1 frr -1 * /var/run/frr - frrvty FRR user priv
|
|
|
|
endef
|
|
|
|
|
|
|
|
define FRR_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 755 $(FRR_PKGDIR)/S50frr \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S50frr
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|
|
|
|
$(eval $(host-autotools-package))
|