[oe-commits] [meta-openembedded] 14/15: net-snmp: fix some invalid paths
git at git.openembedded.org
git at git.openembedded.org
Fri Mar 25 10:33:10 UTC 2016
martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.
commit 6e259ca33115032ae3b858df47f0e485e551be77
Author: Catalin Enache <catalin.enache at windriver.com>
AuthorDate: Thu Mar 24 19:37:03 2016 +0200
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 at windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb | 4 ++++
1 file changed, 4 insertions(+)
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 06f3707..63e0fc7 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
@@ -78,6 +78,10 @@ do_install_append() {
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/snmpd.service ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/snmptrapd.service ${D}${systemd_unitdir}/system
+ sed -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=. at g" \
+ -i ${D}${bindir}/net-snmp-create-v3-user
+ sed -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=. at g" \
+ -i ${D}${bindir}/net-snmp-config
}
do_install_ptest() {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list