Add libelf dependency, add disk and exec features to snmpd, add install-dev stuff
SVN-Revision: 1107
This commit is contained in:
parent
7abc74068b
commit
ab4dbd6694
2 changed files with 50 additions and 5 deletions
|
@ -6,12 +6,12 @@ config BR2_PACKAGE_NET_SNMP
|
||||||
depends BR2_PACKAGE_LIBNETSNMP
|
depends BR2_PACKAGE_LIBNETSNMP
|
||||||
|
|
||||||
config BR2_PACKAGE_LIBNETSNMP
|
config BR2_PACKAGE_LIBNETSNMP
|
||||||
prompt "libnetsnmp - SNMP libraries"
|
prompt "libnetsnmp - SNMP shared libraries"
|
||||||
tristate
|
tristate
|
||||||
default m if CONFIG_DEVEL
|
default m if CONFIG_DEVEL
|
||||||
select BR2_PACKAGE_NET_SNMP
|
select BR2_PACKAGE_NET_SNMP
|
||||||
|
select BR2_PACKAGE_LIBELF
|
||||||
help
|
help
|
||||||
|
|
||||||
Simple Network Management Protocol (SNMP) is a widely used
|
Simple Network Management Protocol (SNMP) is a widely used
|
||||||
protocol for monitoring the health and welfare of network
|
protocol for monitoring the health and welfare of network
|
||||||
equipment (eg. routers), computer equipment and even devices
|
equipment (eg. routers), computer equipment and even devices
|
||||||
|
@ -24,15 +24,37 @@ config BR2_PACKAGE_LIBNETSNMP
|
||||||
|
|
||||||
|
|
||||||
config BR2_PACKAGE_SNMPD
|
config BR2_PACKAGE_SNMPD
|
||||||
depends BR2_PACKAGE_LIBNETSNMP
|
|
||||||
prompt "snmpd - SNMP agent"
|
prompt "snmpd - SNMP agent"
|
||||||
tristate
|
tristate
|
||||||
|
select BR2_PACKAGE_LIBNETSNMP
|
||||||
default m if CONFIG_DEVEL
|
default m if CONFIG_DEVEL
|
||||||
|
help
|
||||||
|
Simple Network Management Protocol (SNMP) is a widely used
|
||||||
|
protocol for monitoring the health and welfare of network
|
||||||
|
equipment (eg. routers), computer equipment and even devices
|
||||||
|
like UPSs. Net-SNMP is a suite of applications used to implement
|
||||||
|
SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6.
|
||||||
|
|
||||||
|
http://www.net-snmp.org/
|
||||||
|
|
||||||
|
This package contains the SNMP agent.
|
||||||
|
|
||||||
|
|
||||||
config BR2_PACKAGE_SNMP_UTILS
|
config BR2_PACKAGE_SNMP_UTILS
|
||||||
depends BR2_PACKAGE_LIBNETSNMP
|
|
||||||
prompt "snmp-utils - SNMP client utilities"
|
prompt "snmp-utils - SNMP client utilities"
|
||||||
tristate
|
tristate
|
||||||
|
select BR2_PACKAGE_LIBNETSNMP
|
||||||
default m if CONFIG_DEVEL
|
default m if CONFIG_DEVEL
|
||||||
|
help
|
||||||
|
Simple Network Management Protocol (SNMP) is a widely used
|
||||||
|
protocol for monitoring the health and welfare of network
|
||||||
|
equipment (eg. routers), computer equipment and even devices
|
||||||
|
like UPSs. Net-SNMP is a suite of applications used to implement
|
||||||
|
SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6.
|
||||||
|
|
||||||
|
http://www.net-snmp.org/
|
||||||
|
|
||||||
|
This package contains the SNMP client utilities.
|
||||||
|
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
|
@ -41,8 +41,11 @@ SNMP_MIB_MODULES_INCLUDED = \
|
||||||
snmpv3/usmUser \
|
snmpv3/usmUser \
|
||||||
snmpv3mibs \
|
snmpv3mibs \
|
||||||
tunnel \
|
tunnel \
|
||||||
|
ucd-snmp/disk \
|
||||||
|
ucd-snmp/extensible \
|
||||||
ucd-snmp/loadave \
|
ucd-snmp/loadave \
|
||||||
ucd-snmp/memory \
|
ucd-snmp/memory \
|
||||||
|
ucd-snmp/pass \
|
||||||
ucd-snmp/proc \
|
ucd-snmp/proc \
|
||||||
ucd-snmp/vmstat \
|
ucd-snmp/vmstat \
|
||||||
util_funcs \
|
util_funcs \
|
||||||
|
@ -154,6 +157,26 @@ $(IPKG_SNMPD):
|
||||||
|
|
||||||
$(IPKG_SNMP_UTILS):
|
$(IPKG_SNMP_UTILS):
|
||||||
install -d -m0755 $(IDIR_SNMP_UTILS)/usr/bin
|
install -d -m0755 $(IDIR_SNMP_UTILS)/usr/bin
|
||||||
cp -fpR $(PKG_INSTALL_DIR)/usr/bin/snmp{get,set,status,test,walk} $(IDIR_SNMP_UTILS)/usr/bin/
|
cp -fpR $(PKG_INSTALL_DIR)/usr/bin/snmp{get,set,status,test,trap,walk} $(IDIR_SNMP_UTILS)/usr/bin/
|
||||||
$(RSTRIP) $(IDIR_SNMP_UTILS)
|
$(RSTRIP) $(IDIR_SNMP_UTILS)
|
||||||
$(IPKG_BUILD) $(IDIR_SNMP_UTILS) $(PACKAGE_DIR)
|
$(IPKG_BUILD) $(IDIR_SNMP_UTILS) $(PACKAGE_DIR)
|
||||||
|
|
||||||
|
$(STAGING_DIR)/usr/lib/libnetsnmp.so: $(PKG_BUILD_DIR)/.built
|
||||||
|
mkdir -p $(STAGING_DIR)/usr/bin
|
||||||
|
cp -fp $(PKG_INSTALL_DIR)/usr/bin/net-snmp-config $(STAGING_DIR)/usr/bin/
|
||||||
|
mkdir -p $(STAGING_DIR)/usr/include
|
||||||
|
cp -fpR $(PKG_INSTALL_DIR)/usr/include/net-snmp $(STAGING_DIR)/usr/include/
|
||||||
|
mkdir -p $(STAGING_DIR)/usr/lib
|
||||||
|
cp -fp $(PKG_INSTALL_DIR)/usr/lib/libnetsnmp{,agent,helpers,mibs}.{a,so*} $(STAGING_DIR)/usr/lib/
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
install-dev: $(STAGING_DIR)/usr/lib/libnetsnmp.so
|
||||||
|
|
||||||
|
uninstall-dev:
|
||||||
|
rm -rf \
|
||||||
|
$(STAGING_DIR)/usr/bin/net-snmp-config \
|
||||||
|
$(STAGING_DIR)/usr/include/net-snmp \
|
||||||
|
$(STAGING_DIR)/usr/lib/libnetsnmp{,agent,helpers,mibs}.{a,so*} \
|
||||||
|
|
||||||
|
compile: install-dev
|
||||||
|
clean: uninstall-dev
|
||||||
|
|
Loading…
Reference in a new issue