diff options
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/opkg/opkg_0.2.4.bb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/meta/recipes-devtools/opkg/opkg_0.2.4.bb b/meta/recipes-devtools/opkg/opkg_0.2.4.bb index 7b49d5efe6..4051b7221e 100644 --- a/meta/recipes-devtools/opkg/opkg_0.2.4.bb +++ b/meta/recipes-devtools/opkg/opkg_0.2.4.bb | |||
@@ -26,11 +26,7 @@ SRC_URI[sha256sum] = "0f40c7e457d81edf9aedc07c778f4697111ab163a38ef95999faece015 | |||
26 | 26 | ||
27 | inherit autotools pkgconfig systemd | 27 | inherit autotools pkgconfig systemd |
28 | 28 | ||
29 | python () { | 29 | SYSTEMD_SERVICE_${PN} = "opkg-configure.service" |
30 | if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d): | ||
31 | pn = d.getVar('PN', True) | ||
32 | d.setVar('SYSTEMD_SERVICE_%s' % (pn), 'opkg-configure.service') | ||
33 | } | ||
34 | 30 | ||
35 | target_localstatedir := "${localstatedir}" | 31 | target_localstatedir := "${localstatedir}" |
36 | OPKGLIBDIR = "${target_localstatedir}/lib" | 32 | OPKGLIBDIR = "${target_localstatedir}/lib" |
@@ -64,7 +60,7 @@ do_install_append () { | |||
64 | # We need to create the lock directory | 60 | # We need to create the lock directory |
65 | install -d ${D}${OPKGLIBDIR}/opkg | 61 | install -d ${D}${OPKGLIBDIR}/opkg |
66 | 62 | ||
67 | if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','false','true',d)};then | 63 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)};then |
68 | install -d ${D}${systemd_unitdir}/system | 64 | install -d ${D}${systemd_unitdir}/system |
69 | install -m 0644 ${WORKDIR}/opkg-configure.service ${D}${systemd_unitdir}/system/ | 65 | install -m 0644 ${WORKDIR}/opkg-configure.service ${D}${systemd_unitdir}/system/ |
70 | sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \ | 66 | sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \ |