From patchwork Fri Sep 8 13:45:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Floret X-Patchwork-Id: 811605 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xpf3L5ZcXz9s3T for ; Fri, 8 Sep 2017 23:55:26 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2130F88022; Fri, 8 Sep 2017 13:55:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zGNcMmDNfcPY; Fri, 8 Sep 2017 13:55:24 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4D39B88020; Fri, 8 Sep 2017 13:55:24 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 35FC41CE920 for ; Fri, 8 Sep 2017 13:55:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 306688A025 for ; Fri, 8 Sep 2017 13:55:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cRpAfT5KVDTH for ; Fri, 8 Sep 2017 13:55:22 +0000 (UTC) X-Greylist: delayed 00:09:12 by SQLgrey-1.7.6 Received: from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com [62.23.145.76]) by hemlock.osuosl.org (Postfix) with ESMTP id D209489FED for ; Fri, 8 Sep 2017 13:55:21 +0000 (UTC) Received: from 6wind.com (unknown [10.16.0.185]) by proxy.6wind.com (Postfix) with SMTP id 21192CE368; Fri, 8 Sep 2017 15:42:21 +0200 (CEST) Received: by 6wind.com (sSMTP sendmail emulation); Fri, 08 Sep 2017 15:45:58 +0200 From: Julien Floret To: buildroot@buildroot.org Date: Fri, 8 Sep 2017 15:45:48 +0200 Message-Id: <20170908134548.23645-1-julien.floret@6wind.com> X-Mailer: git-send-email 2.13.1 Subject: [Buildroot] [PATCH 1/1] netsnmp: install all MIB files X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Since commit be8e32d585f3 ("netsnmp: configurable MIB modules"), the list of MIB modules can be selected with a configuration option. However, there was still an hardcoded list of MIB files to exclude from the target filesystem. Since it is complicated to know which MIB files are necessary according to the configuration, let's install all of them. Cc: przemyslaw Cc: Gustavo Zacarias Signed-off-by: Julien Floret --- package/netsnmp/netsnmp.mk | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/package/netsnmp/netsnmp.mk b/package/netsnmp/netsnmp.mk index abcf63d56858..742fa6e3b382 100644 --- a/package/netsnmp/netsnmp.mk +++ b/package/netsnmp/netsnmp.mk @@ -38,8 +38,6 @@ NETSNMP_MAKE = $(MAKE1) NETSNMP_CONFIG_SCRIPTS = net-snmp-config NETSNMP_AUTORECONF = YES -NETSNMP_BLOAT_MIBS = BRIDGE DISMAN-EVENT DISMAN-SCHEDULE DISMAN-SCRIPT EtherLike RFC-1215 RFC1155-SMI RFC1213 SCTP SMUX - ifeq ($(BR2_ENDIAN),"BIG") NETSNMP_CONF_OPTS += --with-endianness=big else @@ -101,14 +99,6 @@ else NETSNMP_CONF_OPTS += --disable-applications endif -define NETSNMP_REMOVE_BLOAT_MIBS - for mib in $(NETSNMP_BLOAT_MIBS); do \ - rm -f $(TARGET_DIR)/usr/share/snmp/mibs/$$mib-MIB.txt; \ - done -endef - -NETSNMP_POST_INSTALL_TARGET_HOOKS += NETSNMP_REMOVE_BLOAT_MIBS - ifeq ($(BR2_PACKAGE_NETSNMP_SERVER),y) define NETSNMP_INSTALL_INIT_SYSV $(INSTALL) -D -m 0755 package/netsnmp/S59snmpd \