diff mbox

[OpenWrt-Devel,net-snmp] add package snmp-mibs

Message ID 1477847916-2695-1-git-send-email-devel-sven@geroedel.de
State Changes Requested
Delegated to: John Crispin
Headers show

Commit Message

Sven Roederer Oct. 30, 2016, 5:18 p.m. UTC
PACKAGE: net/net-snmp
this installs the default MIBS-files under /usr/share/snmp/mibs

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
---
 net/net-snmp/Makefile | 23 ++++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)

Comments

Stijn Tintel Oct. 31, 2016, 7:10 a.m. UTC | #1
On 30-10-16 19:18, Sven Roederer wrote:
> PACKAGE: net/net-snmp
> this installs the default MIBS-files under /usr/share/snmp/mibs
Please send a PR on Github: https://github.com/openwrt/packages

Stijn
Sven Roederer Nov. 7, 2016, 8:39 p.m. UTC | #2
Am Montag, 31. Oktober 2016, 09:10:17 CET schrieb Stijn Tintel:
> On 30-10-16 19:18, Sven Roederer wrote:
> > PACKAGE: net/net-snmp
> > this installs the default MIBS-files under /usr/share/snmp/mibs
> 
> Please send a PR on Github: https://github.com/openwrt/packages
> 
> Stijn

Hi Stijn,

did that already some weeks ago.
- for master: https://github.com/openwrt/packages/pull/3322
- for CC: https://github.com/openwrt/packages/pull/3323

Sven
diff mbox

Patch

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))