From patchwork Sun Oct 30 17:18:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Roederer X-Patchwork-Id: 688978 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3t6PNt5mpjz9t1B for ; Mon, 31 Oct 2016 04:19:08 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id ED788B806A2; Sun, 30 Oct 2016 18:18:56 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.1 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP; Sun, 30 Oct 2016 18:18:56 +0100 (CET) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 3AA7BB8069F for ; Sun, 30 Oct 2016 18:18:55 +0100 (CET) X-policyd-weight: using cached result; rate: -6.1 Received: from mail.geroedel.de (settle.geroedel.de [91.143.80.133]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sun, 30 Oct 2016 18:18:54 +0100 (CET) Received: from backuphost ([192.168.15.2] helo=feeble.bln.roederer.dhs.org) by mail.geroedel.de with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1c0tkw-0007x9-2j for openwrt-devel@lists.openwrt.org; Sun, 30 Oct 2016 18:18:53 +0100 Received: from build.bln.roederer.dhs.org ([192.168.8.5] helo=build) by feeble.bln.roederer.dhs.org with smtp (Exim 4.84_2) (envelope-from ) id 1c0tkv-0007Si-ES for openwrt-devel@lists.openwrt.org; Sun, 30 Oct 2016 18:18:49 +0100 Received: (nullmailer pid 2742 invoked by uid 10000); Sun, 30 Oct 2016 17:18:49 -0000 From: Sven Roederer To: openwrt-devel@lists.openwrt.org Date: Sun, 30 Oct 2016 18:18:36 +0100 Message-Id: <1477847916-2695-1-git-send-email-devel-sven@geroedel.de> X-Mailer: git-send-email 2.1.4 X-SA-Exim-Connect-IP: 192.168.15.2 X-SA-Exim-Mail-From: devel-sven@geroedel.de X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mail.geroedel.de) Subject: [OpenWrt-Devel] [PATCH net-snmp] add package snmp-mibs X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" PACKAGE: net/net-snmp this installs the default MIBS-files under /usr/share/snmp/mibs Signed-off-by: Sven Roederer --- net/net-snmp/Makefile | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/net/net-snmp/Makefile b/net/net-snmp/Makefile index ddd2da4..6661bcb 100644 --- a/net/net-snmp/Makefile +++ b/net/net-snmp/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2015 OpenWrt.org +# Copyright (C) 2006-2016 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=net-snmp PKG_VERSION:=5.4.4 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/net-snmp @@ -88,6 +88,18 @@ $(call Package/net-snmp/Default/description) endef +define Package/snmp-mibs +$(call Package/net-snmp/Default) + TITLE:=Open source SNMP implementation (MIB-files) +endef + +define Package/snmp-mibs/description +$(call Package/net-snmp/Default/description) + . + This package contains SNMP MIB-Files. +endef + + SNMP_MIB_MODULES_INCLUDED = \ host/hr_device \ host/hr_disk \ @@ -165,7 +177,6 @@ CONFIGURE_ARGS += \ --enable-applications \ --disable-debugging \ --disable-manuals \ - --disable-mibs \ --disable-scripts \ --with-out-mib-modules="$(SNMP_MIB_MODULES_EXCLUDED)" \ --with-mib-modules="$(SNMP_MIB_MODULES_INCLUDED)" \ @@ -251,7 +262,13 @@ define Package/snmp-utils/install $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/snmp{get,set,status,test,trap,walk} $(1)/usr/bin/ endef +define Package/snmp-mibs/install + $(INSTALL_DIR) $(1)/usr/share/snmp/mibs + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/snmp/mibs/* $(1)/usr/share/snmp/mibs/ +endef + $(eval $(call BuildPackage,libnetsnmp)) $(eval $(call BuildPackage,snmp-utils)) $(eval $(call BuildPackage,snmpd)) $(eval $(call BuildPackage,snmpd-static)) +$(eval $(call BuildPackage,snmp-mibs))