Skip to contentSkip to conversation

netcf: align the systemd file path with Makefile

PATCH New [email protected] 1 participant 1 message Aug 11, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netcf: align the systemd file path with Makefile

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}

---
 meta-networking/recipes-support/netcf/netcf_git.bb | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
meta-networking/recipes-support/netcf/netcf_git.bb +5 -3
index d47bb3b..19e85a0 100644
@@ -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/
Signature · 1 line
1.9.1