hc
2024-08-14 d5ef2fdafdb09de9c2f876fc0edf2ba6bf224909
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
################################################################################
#
# bird
#
################################################################################
 
BIRD_VERSION = 2.0.8
BIRD_SITE = ftp://bird.network.cz/pub/bird
BIRD_LICENSE = GPL-2.0+
BIRD_LICENSE_FILES = README
BIRD_CPE_ID_VENDOR = nic
BIRD_SELINUX_MODULES = bird
BIRD_DEPENDENCIES = host-flex host-bison
BIRD_AUTORECONF = YES
 
ifeq ($(BR2_PACKAGE_BIRD_CLIENT),y)
BIRD_CONF_OPTS += --enable-client
BIRD_DEPENDENCIES += ncurses readline
else
BIRD_CONF_OPTS += --disable-client
endif
 
ifeq ($(BR2_PACKAGE_LIBSSH),y)
BIRD_CONF_OPTS += --enable-libssh
BIRD_DEPENDENCIES += libssh
else
BIRD_CONF_OPTS += --disable-libssh
endif
 
BIRD_PROTOCOLS = \
   $(if $(BR2_PACKAGE_BIRD_BFD),bfd) \
   $(if $(BR2_PACKAGE_BIRD_BABEL),babel) \
   $(if $(BR2_PACKAGE_BIRD_BGP),bgp) \
   $(if $(BR2_PACKAGE_BIRD_MRT),mrt) \
   $(if $(BR2_PACKAGE_BIRD_OSPF),ospf) \
   $(if $(BR2_PACKAGE_BIRD_PERF),perf) \
   $(if $(BR2_PACKAGE_BIRD_PIPE),pipe) \
   $(if $(BR2_PACKAGE_BIRD_RADV),radv) \
   $(if $(BR2_PACKAGE_BIRD_RIP),rip) \
   $(if $(BR2_PACKAGE_BIRD_RPKI),rpki) \
   $(if $(BR2_PACKAGE_BIRD_STATIC),static)
 
BIRD_CONF_OPTS += --with-protocols=$(subst $(space),$(comma),$(strip $(BIRD_PROTOCOLS)))
 
$(eval $(autotools-package))