diff options
author | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-05-30 05:56:37 +0000 |
---|---|---|
committer | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-05-30 05:56:37 +0000 |
commit | a8f67c9748eda33c2409cf24e183e91d0e05fb0b (patch) | |
tree | 9d6ceee33078da4c24f81333f9495bf1eee56065 /openwrt/package/net-snmp/Makefile | |
parent | e24fbdb22e21bd54062a387d7351472421cc5d37 (diff) |
Add libelf dependency, add disk and exec features to snmpd, add install-dev stuff
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1107 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/net-snmp/Makefile')
-rw-r--r-- | openwrt/package/net-snmp/Makefile | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/openwrt/package/net-snmp/Makefile b/openwrt/package/net-snmp/Makefile index 7211906998..ba887482c8 100644 --- a/openwrt/package/net-snmp/Makefile +++ b/openwrt/package/net-snmp/Makefile @@ -41,8 +41,11 @@ SNMP_MIB_MODULES_INCLUDED = \ snmpv3/usmUser \ snmpv3mibs \ tunnel \ + ucd-snmp/disk \ + ucd-snmp/extensible \ ucd-snmp/loadave \ ucd-snmp/memory \ + ucd-snmp/pass \ ucd-snmp/proc \ ucd-snmp/vmstat \ util_funcs \ @@ -154,6 +157,26 @@ $(IPKG_SNMPD): $(IPKG_SNMP_UTILS): 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) $(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 |