From: lars Date: Wed, 8 Oct 2008 10:34:14 +0000 (+0000) Subject: Install net-snmp-config into $(STAGING_DIR)/host/bin rather then X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=5a47f9ae8a72035ecbb81369f7cf03cf71cbcdd1;p=packages.git Install net-snmp-config into $(STAGING_DIR)/host/bin rather then $(STAGING_DIR)/usr/bin. Fixes build of packages which depend on libnet-snmp like collectd. git-svn-id: svn://svn.openwrt.org/openwrt/packages@12894 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/libs/net-snmp/Makefile b/libs/net-snmp/Makefile index f86a4e0ae..54ed1a3cc 100644 --- a/libs/net-snmp/Makefile +++ b/libs/net-snmp/Makefile @@ -1,5 +1,5 @@ -# -# Copyright (C) 2006-2007 OpenWrt.org +# +# Copyright (C) 2006-2008 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -183,14 +183,14 @@ define Build/Compile endef define Build/InstallDev - mkdir -p $(1)/usr/bin - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/net-snmp-config $(1)/usr/bin/ - mkdir -p $(1)/usr/include + $(INSTALL_DIR) $(2)/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/net-snmp-config $(2)/bin/ + $(SED) 's,=/usr,=$(STAGING_DIR)/usr,g' $(2)/bin/net-snmp-config + + $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/include/net-snmp $(1)/usr/include/ - mkdir -p $(1)/usr/lib + $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnetsnmp{,agent,helpers,mibs}.{a,so*} $(1)/usr/lib/ - $(SED) 's,-I/usr/include,,g' $(1)/usr/bin/net-snmp-config - $(SED) 's,-L/usr/lib,,g' $(1)/usr/bin/net-snmp-config endef define Package/libnetsnmp/install