From: Roy Li <[email protected]> systemd service file is installed under ${prefix}/lib/ which is not same as ${libdir}, so align the path with Makefile, and remove it if it is not same as ${libdir}
Signed-off-by: Roy Li <[email protected]> --- meta-networking/recipes-support/netcf/netcf_git.bb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/meta-networking/recipes-support/netcf/netcf_git.bb b/meta-networking/recipes-support/netcf/netcf_git.bb index d47bb3b..19e85a0 100644 --- a/meta-networking/recipes-support/netcf/netcf_git.bb +++ b/meta-networking/recipes-support/netcf/netcf_git.bb @@ -11,7 +11,6 @@ PV = "0.2.8+git${SRCPV}" SRC_URI = "git://git.fedorahosted.org/netcf.git;protocol=git \ " - DEPENDS += "augeas libnl libxslt libxml2 gnulib" S = "${WORKDIR}/git" @@ -32,8 +31,11 @@ do_configure_prepend() { do_install_append() { if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then install -d ${D}${systemd_unitdir}/system - mv ${D}${libdir}/systemd/system/* ${D}${systemd_unitdir}/system/ - rm -rf ${D}${libdir}/systemd/ + mv ${D}${prefix}/lib/systemd/system/* ${D}${systemd_unitdir}/system/ + rm -rf ${D}${prefix}/lib/systemd + if [ $libdir != ${prefix}/lib ]; then + rm -rf ${D}${prefix}/lib/ + fi else mv ${D}${sysconfdir}/rc.d/init.d/ ${D}${sysconfdir} rm -rf ${D}${sysconfdir}/rc.d/ -- 1.9.1 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
