diff options
Diffstat (limited to 'meta-networking')
-rw-r--r-- | meta-networking/recipes-support/netcf/netcf_git.bb | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/meta-networking/recipes-support/netcf/netcf_git.bb b/meta-networking/recipes-support/netcf/netcf_git.bb index d47bb3b03b..8a8963e44f 100644 --- a/meta-networking/recipes-support/netcf/netcf_git.bb +++ b/meta-networking/recipes-support/netcf/netcf_git.bb | |||
@@ -32,12 +32,22 @@ do_configure_prepend() { | |||
32 | do_install_append() { | 32 | do_install_append() { |
33 | if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | 33 | if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
34 | install -d ${D}${systemd_unitdir}/system | 34 | install -d ${D}${systemd_unitdir}/system |
35 | mv ${D}${libdir}/systemd/system/* ${D}${systemd_unitdir}/system/ | 35 | if [ -d "${D}${libdir}/systemd/system" ]; then |
36 | rm -rf ${D}${libdir}/systemd/ | 36 | mv ${D}${libdir}/systemd/system/* ${D}${systemd_unitdir}/system/ |
37 | rm -rf ${D}${libdir}/systemd/ | ||
38 | else | ||
39 | mv ${D}${nonarch_libdir}/systemd/system/* ${D}${systemd_unitdir}/system/ | ||
40 | rm -rf ${D}${nonarch_libdir}/systemd/ | ||
41 | fi | ||
37 | else | 42 | else |
38 | mv ${D}${sysconfdir}/rc.d/init.d/ ${D}${sysconfdir} | 43 | mv ${D}${sysconfdir}/rc.d/init.d/ ${D}${sysconfdir} |
39 | rm -rf ${D}${sysconfdir}/rc.d/ | 44 | rm -rf ${D}${sysconfdir}/rc.d/ |
40 | fi | 45 | fi |
41 | } | 46 | } |
42 | 47 | ||
48 | FILES_${PN} += " \ | ||
49 | ${libdir} \ | ||
50 | ${nonarch_libdir} \ | ||
51 | " | ||
52 | |||
43 | SYSTEMD_SERVICE_${PN} = "netcf-transaction.service" | 53 | SYSTEMD_SERVICE_${PN} = "netcf-transaction.service" |