kamailio-5.x: add snmpstats mibs files
This installs the snmp mibs files provided by mod_snmpstats. A patch is added to make the kamailio build system install the files in a proper location in PKG_INSTALL_DIR. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
parent
5f90ebdff0
commit
d3ebba27fd
2 changed files with 16 additions and 0 deletions
|
@ -105,6 +105,11 @@ $(subst $(space),$(newline),$(foreach c,$(6),/etc/kamailio/$(c)))
|
||||||
$(call Package/kamailio5/install/module,$$(1),$(1))
|
$(call Package/kamailio5/install/module,$$(1),$(1))
|
||||||
$(foreach c,$(6),$(call Package/kamailio5/install/conffile,$$(1),$(c));)
|
$(foreach c,$(6),$(call Package/kamailio5/install/conffile,$$(1),$(c));)
|
||||||
$(foreach d,$(5),$(call Package/kamailio5/install/dbfiles,$$(1),$(d));)
|
$(foreach d,$(5),$(call Package/kamailio5/install/dbfiles,$$(1),$(d));)
|
||||||
|
ifeq ($(1),snmpstats)
|
||||||
|
$(INSTALL_DIR) $$(1)/usr/share/snmp/mibs
|
||||||
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/snmp/mibs/* \
|
||||||
|
$$(1)/usr/share/snmp/mibs
|
||||||
|
endif
|
||||||
endef
|
endef
|
||||||
$$(eval $$(call BuildPackage,kamailio5-mod-$(subst _,-,$(1))))
|
$$(eval $$(call BuildPackage,kamailio5-mod-$(subst _,-,$(1))))
|
||||||
endef
|
endef
|
||||||
|
|
11
net/kamailio-5.x/patches/130-change-snmp-mibs-path.patch
Normal file
11
net/kamailio-5.x/patches/130-change-snmp-mibs-path.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/src/modules/snmpstats/Makefile
|
||||||
|
+++ b/src/modules/snmpstats/Makefile
|
||||||
|
@@ -16,7 +16,7 @@ ifeq ($(BUILDER),)
|
||||||
|
INSTALLMIBDIR = $(share_prefix)/share/snmp/mibs
|
||||||
|
else
|
||||||
|
BUILDAGENTLIBS = $(shell net-snmp-config --netsnmp-agent-libs)
|
||||||
|
- INSTALLMIBDIR = $(basedir)$(shell net-snmp-config --prefix)/share/snmp/mibs
|
||||||
|
+ INSTALLMIBDIR = $(basedir)/usr/share/snmp/mibs
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(EMBEDDED_PERL),1)
|
Loading…
Reference in a new issue