summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCatalin Enache <catalin.enache@windriver.com>2016-03-30 12:08:21 +0300
committerArmin Kuster <akuster808@gmail.com>2016-04-17 13:45:33 -0700
commit31684cb3119a4bc5db679066ecff6891ea317686 (patch)
tree1c626a72ea8aec4f9fd10ec0700478c077643092
parentc94fdd75eeb5b6463b613d542205302fc44650ef (diff)
downloadmeta-openembedded-31684cb3119a4bc5db679066ecff6891ea317686.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> Signed-off-by: Armin Kuster <akuster808@gmail.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}