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
This commit is contained in:
parent
d702145bd6
commit
5a47f9ae8a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user