diff options
author | Catalin Enache <catalin.enache@windriver.com> | 2016-03-24 19:37:03 +0200 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2016-04-01 12:05:27 -0400 |
commit | 30e21dc10f87f9393231ea9ddb0906ff7f09e50f (patch) | |
tree | a820faebab2980d155d4446855c95abf2b9c4ad0 /meta-networking | |
parent | 21ded2ca9ce27b492db0f2abc274f6111d031674 (diff) | |
download | meta-openembedded-30e21dc10f87f9393231ea9ddb0906ff7f09e50f.tar.gz |
net-snmp: fix some invalid paths
Because the package is not built in place @srcdir@ is
an absolute path to the source directory instead of ".".
Because of this some target scripts like net-snmp-create-v3-user
and net-snmp-config that are using thisvariable in their *.in
files (NSC_SRCDIR=@srcdir@) contain invalid 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>
Diffstat (limited to 'meta-networking')
-rw-r--r-- | meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb | 4 |
1 files changed, 4 insertions, 0 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 5ea51b803..1a5093217 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 | |||
@@ -73,6 +73,10 @@ do_install_append() { | |||
73 | install -d ${D}${systemd_unitdir}/system | 73 | install -d ${D}${systemd_unitdir}/system |
74 | install -m 0644 ${WORKDIR}/snmpd.service ${D}${systemd_unitdir}/system | 74 | install -m 0644 ${WORKDIR}/snmpd.service ${D}${systemd_unitdir}/system |
75 | install -m 0644 ${WORKDIR}/snmptrapd.service ${D}${systemd_unitdir}/system | 75 | install -m 0644 ${WORKDIR}/snmptrapd.service ${D}${systemd_unitdir}/system |
76 | sed -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g" \ | ||
77 | -i ${D}${bindir}/net-snmp-create-v3-user | ||
78 | sed -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g" \ | ||
79 | -i ${D}${bindir}/net-snmp-config | ||
76 | } | 80 | } |
77 | 81 | ||
78 | do_install_ptest() { | 82 | do_install_ptest() { |