quagga: snmp support needs netsnmp
authorPeter Korsgaard <jacmet@sunsite.dk>
Sat, 3 Oct 2009 19:47:18 +0000 (21:47 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 3 Oct 2009 20:01:08 +0000 (22:01 +0200)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/quagga/Config.in
package/quagga/quagga.mk

index e1a5c7371182d97f47c8d2af730d0304681e6e47..e540cc6081570049ab97f091395572e8668706e1 100644 (file)
@@ -59,6 +59,7 @@ config BR2_PACKAGE_QUAGGA_NETLINK
 
 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"
index fb520eeba8cdee77ed947cf6c591127e8723714c..d2f0616c69c5fcb00e44130f7b7fac8d78857a04 100644 (file)
@@ -10,6 +10,8 @@ QUAGGA_DIR:=$(BUILD_DIR)/quagga-$(QUAGGA_VERSION)
 QUAGGA_CAT:=$(ZCAT)
 
 QUAGGA_CONFIGURE:=
+QUAGGA_DEPENDENCIES:=
+
 ifeq ($(BR2_PACKAGE_QUAGGA_ZEBRA),y)
 QUAGGA_CONFIGURE+=--enable-zebra
 ifndef QUAGGA_TARGET_BINARY
@@ -96,6 +98,7 @@ QUAGGA_CONFIGURE+=--disable-netlink
 endif
 ifeq ($(BR2_PACKAGE_QUAGGA_SNMP),y)
 QUAGGA_CONFIGURE+=--enable-snmp
+QUAGGA_DEPENDENCIES+=netsnmp
 else
 QUAGGA_CONFIGURE+=--disable-snmp
 endif
@@ -163,7 +166,7 @@ ifneq ($(BR2_HAVE_INFOPAGES),y)
        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