package/quagga: add nhrpd option
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 1 Dec 2018 20:40:48 +0000 (21:40 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 1 Dec 2018 21:47:13 +0000 (22:47 +0100)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/quagga/Config.in
package/quagga/quagga.mk

index 98b9d3481e6ab801806794e6ca770d54b8ded09c..9427475d03b0fd4098261c7f8e09f63bb632dc5a 100644 (file)
@@ -38,6 +38,12 @@ config BR2_PACKAGE_QUAGGA_ISISD
        help
          Enable isisd support in quagga.
 
+config BR2_PACKAGE_QUAGGA_NHRPD
+       bool "NHRPD protocol"
+       select BR2_PACKAGE_C_ARES
+       help
+         Build Next Hop Routing Protocol daemon.
+
 config BR2_PACKAGE_QUAGGA_OSPFD
        bool "OSPFv2 protocol"
        help
index 7049e968a9f4877ed06967cccca2d8ef762ea2a9..017f3a82fff4bbf1f03b6061eb53b61274f2b8a9 100644 (file)
@@ -16,8 +16,7 @@ QUAGGA_LICENSE_FILES = COPYING
 QUAGGA_CONF_OPTS = \
        --program-transform-name='' \
        --sysconfdir=/etc/quagga \
-       --localstatedir=/var/run/quagga \
-       --disable-nhrpd
+       --localstatedir=/var/run/quagga
 
 ifeq ($(BR2_PACKAGE_LIBCAP),y)
 QUAGGA_CONF_OPTS += --enable-capabilities
@@ -59,6 +58,13 @@ define QUAGGA_PERMISSIONS
        /etc/quagga d 755 quagga quagga - - - - -
 endef
 
+ifeq ($(BR2_PACKAGE_QUAGGA_NHRPD),y)
+QUAGGA_CONF_OPTS += --enable-nhrpd
+QUAGGA_DEPENDENCIES += c-ares
+else
+QUAGGA_CONF_OPTS += --disable-nhrpd
+endif
+
 ifeq ($(BR2_PACKAGE_QUAGGA_SNMP),y)
 QUAGGA_CONF_ENV += ac_cv_path_NETSNMP_CONFIG=$(STAGING_DIR)/usr/bin/net-snmp-config
 QUAGGA_CONF_OPTS += --enable-snmp=agentx