summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCatalin Enache <catalin.enache@windriver.com>2016-03-30 12:08:21 +0300
committerJoe MacDonald <joe_macdonald@mentor.com>2016-04-01 12:05:27 -0400
commit21ded2ca9ce27b492db0f2abc274f6111d031674 (patch)
treeee9101bb61454dd0a04da3e97b10f35ab4ce02d6
parent345f9ee0ecf1cb0aa59f86f56d2a826debf45305 (diff)
downloadmeta-openembedded-21ded2ca9ce27b492db0f2abc274f6111d031674.tar.gz
net-snmp: fix invalid paths in target net-snmp-config
Only net-snmp-config used for sysroot should have sysroot specific paths. Signed-off-by: Catalin Enache <catalin.enache@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
-rw-r--r--meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb
index 06f370700..5ea51b803 100644
--- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb
+++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb
@@ -70,11 +70,6 @@ do_install_append() {
70 install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/snmpd 70 install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/snmpd
71 install -m 644 ${WORKDIR}/snmpd.conf ${D}${sysconfdir}/snmp/ 71 install -m 644 ${WORKDIR}/snmpd.conf ${D}${sysconfdir}/snmp/
72 install -m 644 ${WORKDIR}/snmptrapd.conf ${D}${sysconfdir}/snmp/ 72 install -m 644 ${WORKDIR}/snmptrapd.conf ${D}${sysconfdir}/snmp/
73 sed -e "s@^prefix=.*@prefix=${STAGING_DIR_HOST}@g" \
74 -e "s@^exec_prefix=.*@exec_prefix=${STAGING_DIR_HOST}@g" \
75 -e "s@^includedir=.*@includedir=${STAGING_INCDIR}@g" \
76 -e "s@^libdir=.*@libdir=${STAGING_LIBDIR}@g" \
77 -i ${D}${bindir}/net-snmp-config
78 install -d ${D}${systemd_unitdir}/system 73 install -d ${D}${systemd_unitdir}/system
79 install -m 0644 ${WORKDIR}/snmpd.service ${D}${systemd_unitdir}/system 74 install -m 0644 ${WORKDIR}/snmpd.service ${D}${systemd_unitdir}/system
80 install -m 0644 ${WORKDIR}/snmptrapd.service ${D}${systemd_unitdir}/system 75 install -m 0644 ${WORKDIR}/snmptrapd.service ${D}${systemd_unitdir}/system
@@ -105,6 +100,11 @@ net_snmp_sysroot_preprocess () {
105 install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/ 100 install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
106 install -m 755 ${D}${bindir}/net-snmp-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/ 101 install -m 755 ${D}${bindir}/net-snmp-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/
107 sed -e "s@-I/usr/include@-I${STAGING_INCDIR}@g" \ 102 sed -e "s@-I/usr/include@-I${STAGING_INCDIR}@g" \
103 -e "s@^prefix=.*@prefix=${STAGING_DIR_HOST}${prefix}@g" \
104 -e "s@^exec_prefix=.*@exec_prefix=${STAGING_EXECPREFIXDIR}@g" \
105 -e "s@^includedir=.*@includedir=${STAGING_INCDIR}@g" \
106 -e "s@^libdir=.*@libdir=${STAGING_LIBDIR}@g" \
107 -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=${S}@g" \
108 -i ${SYSROOT_DESTDIR}${bindir_crossscripts}/net-snmp-config 108 -i ${SYSROOT_DESTDIR}${bindir_crossscripts}/net-snmp-config
109 fi 109 fi
110} 110}