- correct installation path

This commit is contained in:
Bernhard Reutner-Fischer 2007-06-25 15:07:25 +00:00
parent 27f55ff470
commit 187d5531b3

View File

@ -34,9 +34,7 @@ endif
$(NETSNMP_DIR)/.configured: $(NETSNMP_DIR)/.unpacked $(NETSNMP_DIR)/.configured: $(NETSNMP_DIR)/.unpacked
(cd $(NETSNMP_DIR); autoconf; \ (cd $(NETSNMP_DIR); autoconf; \
ac_cv_CAN_USE_SYSCTL=no \ ac_cv_CAN_USE_SYSCTL=no \
PATH=$(TARGET_PATH) \ $(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
./configure \ ./configure \
--with-cc=$(TARGET_CROSS)gcc \ --with-cc=$(TARGET_CROSS)gcc \
--with-ar=$(TARGET_CROSS)ar \ --with-ar=$(TARGET_CROSS)ar \
@ -69,15 +67,14 @@ $(NETSNMP_DIR)/agent/snmpd: $(NETSNMP_DIR)/.configured
$(MAKE1) -C $(NETSNMP_DIR) $(MAKE1) -C $(NETSNMP_DIR)
$(TARGET_DIR)/usr/sbin/snmpd: $(NETSNMP_DIR)/agent/snmpd $(TARGET_DIR)/usr/sbin/snmpd: $(NETSNMP_DIR)/agent/snmpd
#$(MAKE) DESTDIR=$(TARGET_DIR) -C $(NETSNMP_DIR) install
$(MAKE) PREFIX=$(TARGET_DIR)/usr \ $(MAKE) PREFIX=$(TARGET_DIR)/usr \
prefix=$(TARGET_DIR)/usr \ prefix=$(TARGET_DIR)/usr \
exec_prefix=$(TARGET_DIR)/usr \ exec_prefix=$(TARGET_DIR)/usr \
persistentdir=$(TARGET_DIR)/var/lib/snmp \ persistentdir=$(TARGET_DIR)/var/lib/snmp \
infodir=$(TARGET_DIR)/usr/info \ infodir=$(TARGET_DIR)/usr/info \
mandir=$(TARGET_DIR)/usr/man \ mandir=$(TARGET_DIR)/usr/man \
includedir=$(STAGING_DIR)/include/net-snmp \ includedir=$(STAGING_DIR)/usr/include/net-snmp \
ucdincludedir=$(STAGING_DIR)/include/ucd-snmp \ ucdincludedir=$(STAGING_DIR)/usr/include/ucd-snmp \
-C $(NETSNMP_DIR) install; -C $(NETSNMP_DIR) install;
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \ rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
@ -91,16 +88,16 @@ $(TARGET_DIR)/usr/sbin/snmpd: $(NETSNMP_DIR)/agent/snmpd
# Remove the unsupported snmpcheck program # Remove the unsupported snmpcheck program
rm $(TARGET_DIR)/usr/bin/snmpcheck rm $(TARGET_DIR)/usr/bin/snmpcheck
# Install the "broken" headers # Install the "broken" headers
cp $(NETSNMP_DIR)/agent/mibgroup/struct.h $(STAGING_DIR)/include/net-snmp/agent cp $(NETSNMP_DIR)/agent/mibgroup/struct.h $(STAGING_DIR)/usr/include/net-snmp/agent
cp $(NETSNMP_DIR)/agent/mibgroup/util_funcs.h $(STAGING_DIR)/include/net-snmp cp $(NETSNMP_DIR)/agent/mibgroup/util_funcs.h $(STAGING_DIR)/usr/include/net-snmp
cp $(NETSNMP_DIR)/agent/mibgroup/mibincl.h $(STAGING_DIR)/include/net-snmp/library cp $(NETSNMP_DIR)/agent/mibgroup/mibincl.h $(STAGING_DIR)/usr/include/net-snmp/library
cp $(NETSNMP_DIR)/agent/mibgroup/header_complex.h $(STAGING_DIR)/include/net-snmp/agent cp $(NETSNMP_DIR)/agent/mibgroup/header_complex.h $(STAGING_DIR)/usr/include/net-snmp/agent
netsnmp: openssl $(TARGET_DIR)/usr/sbin/snmpd netsnmp: openssl $(TARGET_DIR)/usr/sbin/snmpd
netsnmp-headers: $(TARGET_DIR)/usr/include/net-snmp/net-snmp-config.h netsnmp-headers: $(TARGET_DIR)/usr/include/net-snmp/net-snmp-config.h
cp -a $(STAGING_DIR)/include/net-snmp $(TARGET_DIR)/usr/include/net-snmp cp -a $(STAGING_DIR)/usr/include/net-snmp $(TARGET_DIR)/usr/include/net-snmp
cp -a $(STAGING_DIR)/include/ucd-snmp $(TARGET_DIR)/usr/include/net-snmp cp -a $(STAGING_DIR)/usr/include/ucd-snmp $(TARGET_DIR)/usr/include/net-snmp
netsnmp-source: $(DL_DIR)/$(NETSNMP_SOURCE) netsnmp-source: $(DL_DIR)/$(NETSNMP_SOURCE)