1 ################################################################################
5 ################################################################################
8 QUAGGA_SITE
= http
://download.savannah.gnu.org
/releases
/quagga
9 QUAGGA_DEPENDENCIES
= host-gawk host-pkgconf
10 QUAGGA_LICENSE
= GPLv2
+
11 QUAGGA_LICENSE_FILES
= COPYING
13 # We need to override the sysconf and localstate directories so that
14 # quagga can create files as the quagga user without extra
17 --program-transform-name
='' \
18 --sysconfdir
=/etc
/quagga \
19 --localstatedir
=/var
/run
/quagga
21 # 0002-configure-fix-static-linking-with-readline.patch
22 QUAGGA_AUTORECONF
= YES
24 ifeq ($(BR2_PACKAGE_LIBCAP
),y
)
25 QUAGGA_CONF_OPTS
+= --enable-capabilities
26 QUAGGA_DEPENDENCIES
+= libcap
28 QUAGGA_CONF_OPTS
+= --disable-capabilities
31 ifeq ($(BR2_PACKAGE_PROTOBUF_C
),y
)
32 QUAGGA_CONF_OPTS
+= --enable-protobuf
33 QUAGGA_DEPENDENCIES
+= protobuf-c
35 QUAGGA_CONF_OPTS
+= --disable-protobuf
38 QUAGGA_CONF_OPTS
+= $(if
$(BR2_PACKAGE_QUAGGA_ZEBRA
),--enable-zebra
,--disable-zebra
)
39 QUAGGA_CONF_OPTS
+= $(if
$(BR2_PACKAGE_QUAGGA_BGPD
),--enable-bgpd
,--disable-bgpd
)
40 QUAGGA_CONF_OPTS
+= $(if
$(BR2_PACKAGE_QUAGGA_RIPD
),--enable-ripd
,--disable-ripd
)
41 QUAGGA_CONF_OPTS
+= $(if
$(BR2_PACKAGE_QUAGGA_RIPNGD
),--enable-ripngd
,--disable-ripngd
)
42 QUAGGA_CONF_OPTS
+= $(if
$(BR2_PACKAGE_QUAGGA_OSPFD
),--enable-ospfd
,--disable-ospfd
--disable-ospfapi
)
43 QUAGGA_CONF_OPTS
+= $(if
$(BR2_PACKAGE_QUAGGA_OSPF6D
),--enable-ospf6d
,--disable-ospf6d
)
44 QUAGGA_CONF_OPTS
+= $(if
$(BR2_PACKAGE_QUAGGA_PIMD
),--enable-pimd
,--disable-pimd
)
45 QUAGGA_CONF_OPTS
+= $(if
$(BR2_PACKAGE_QUAGGA_WATCHQUAGGA
),--enable-watchquagga
,--disable-watchquagga
)
46 QUAGGA_CONF_OPTS
+= $(if
$(BR2_PACKAGE_QUAGGA_ISISD
),--enable-isisd
,--disable-isisd
)
47 QUAGGA_CONF_OPTS
+= $(if
$(BR2_PACKAGE_QUAGGA_BGP_ANNOUNCE
),--enable-bgp-announce
,--disable-bgp-announce
)
48 QUAGGA_CONF_OPTS
+= $(if
$(BR2_PACKAGE_QUAGGA_TCP_ZERBRA
),--enable-tcp-zebra
,--disable-tcp-zebra
)
51 quagga
-1 quagga
-1 * - - - Quagga priv drop user
54 # Set the permissions of /etc/quagga such that quagga (through vtysh)
55 # can save the configuration - set the folder recursively as the files
56 # need to be 600, and then set the folder (non-recursively) to 755 so
57 # it can used. Quagga also needs to write to the folder as it moves
58 # and creates, rather than overwriting.
59 define QUAGGA_PERMISSIONS
60 /etc
/quagga r
600 quagga quagga
- - - - -
61 /etc
/quagga d
755 quagga quagga
- - - - -
64 ifeq ($(BR2_PACKAGE_QUAGGA_SNMP
),y
)
65 QUAGGA_CONF_ENV
+= ac_cv_path_NETSNMP_CONFIG
=$(STAGING_DIR
)/usr
/bin
/net-snmp-config
66 QUAGGA_CONF_OPTS
+= --enable-snmp
=agentx
67 QUAGGA_DEPENDENCIES
+= netsnmp
70 ifeq ($(BR2_PACKAGE_QUAGGA_VTYSH
),y
)
71 QUAGGA_CONF_OPTS
+= --enable-vtysh
72 QUAGGA_DEPENDENCIES
+= readline
74 QUAGGA_CONF_OPTS
+= --disable-vtysh
77 ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE
),)
78 QUAGGA_CONF_OPTS
+= --disable-pie
81 define QUAGGA_INSTALL_INIT_SYSTEMD
82 $(INSTALL
) -D
-m
644 package
/quagga
/quagga_tmpfiles.conf \
83 $(TARGET_DIR
)/usr
/lib
/tmpfiles.d
/quagga.conf
84 $(INSTALL
) -D
-m
644 package
/quagga
/quagga@.service \
85 $(TARGET_DIR
)/usr
/lib
/systemd
/system
/quagga@.service
88 $(eval
$(autotools-package
))