From 4d597d70ec20d48b9a73d8987854bb0ff8f2e0d6 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Sat, 9 Sep 2017 23:39:42 +0200 Subject: [PATCH] package/asterisk: add optional netsnmp dependency Signed-off-by: "Yann E. MORIN" Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/asterisk/asterisk.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk index 02d0f2947d..a6801a006d 100644 --- a/package/asterisk/asterisk.mk +++ b/package/asterisk/asterisk.mk @@ -73,7 +73,6 @@ ASTERISK_CONF_OPTS = \ --without-mysqlclient \ --without-nbs \ --without-neon29 \ - --without-netsnmp \ --without-newt \ --without-openr2 \ --without-osptk \ @@ -164,6 +163,13 @@ else ASTERISK_CONF_OPTS += --without-neon endif +ifeq ($(BR2_PACKAGE_NETSNMP),y) +ASTERISK_DEPENDENCIES += netsnmp +ASTERISK_CONF_OPTS += --with-netsnmp=$(STAGING_DIR)/usr +else +ASTERISK_CONF_OPTS += --without-netsnmp +endif + ifeq ($(BR2_PACKAGE_LIBOGG),y) ASTERISK_DEPENDENCIES += libogg ASTERISK_CONF_OPTS += --with-ogg -- 2.30.2