config BR2_PACKAGE_QUAGGA_SNMP
bool "SNMP support"
+ select BR2_PACKAGE_NETSNMP
config BR2_PACKAGE_QUAGGA_TCP_ZEBRA
bool "TCP/IP socket connection between zebra and proto daemon"
QUAGGA_CAT:=$(ZCAT)
QUAGGA_CONFIGURE:=
+QUAGGA_DEPENDENCIES:=
+
ifeq ($(BR2_PACKAGE_QUAGGA_ZEBRA),y)
QUAGGA_CONFIGURE+=--enable-zebra
ifndef QUAGGA_TARGET_BINARY
endif
ifeq ($(BR2_PACKAGE_QUAGGA_SNMP),y)
QUAGGA_CONFIGURE+=--enable-snmp
+QUAGGA_DEPENDENCIES+=netsnmp
else
QUAGGA_CONFIGURE+=--disable-snmp
endif
rm -rf $(TARGET_DIR)/usr/info
endif
-quagga: $(TARGET_DIR)/usr/sbin/$(QUAGGA_TARGET_BINARY)
+quagga: $(QUAGGA_DEPENDENCIES) $(TARGET_DIR)/usr/sbin/$(QUAGGA_TARGET_BINARY)
quagga-clean:
-$(MAKE) DESTDIR=$(TARGET_DIR) -C $(QUAGGA_DIR) uninstall