mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-03 14:19:52 +00:00
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>
This commit is contained in:
committed by
Joe MacDonald
parent
21ded2ca9c
commit
30e21dc10f
@@ -73,6 +73,10 @@ do_install_append() {
|
|||||||
install -d ${D}${systemd_unitdir}/system
|
install -d ${D}${systemd_unitdir}/system
|
||||||
install -m 0644 ${WORKDIR}/snmpd.service ${D}${systemd_unitdir}/system
|
install -m 0644 ${WORKDIR}/snmpd.service ${D}${systemd_unitdir}/system
|
||||||
install -m 0644 ${WORKDIR}/snmptrapd.service ${D}${systemd_unitdir}/system
|
install -m 0644 ${WORKDIR}/snmptrapd.service ${D}${systemd_unitdir}/system
|
||||||
|
sed -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g" \
|
||||||
|
-i ${D}${bindir}/net-snmp-create-v3-user
|
||||||
|
sed -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g" \
|
||||||
|
-i ${D}${bindir}/net-snmp-config
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install_ptest() {
|
do_install_ptest() {
|
||||||
|
|||||||
Reference in New Issue
Block a user