diff options
Diffstat (limited to 'meta/recipes-connectivity/neard/neard.inc')
-rw-r--r-- | meta/recipes-connectivity/neard/neard.inc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/meta/recipes-connectivity/neard/neard.inc b/meta/recipes-connectivity/neard/neard.inc index 76640d8a1a..31bc6ddb66 100644 --- a/meta/recipes-connectivity/neard/neard.inc +++ b/meta/recipes-connectivity/neard/neard.inc | |||
@@ -11,6 +11,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \ | |||
11 | 11 | ||
12 | inherit autotools pkgconfig systemd update-rc.d | 12 | inherit autotools pkgconfig systemd update-rc.d |
13 | 13 | ||
14 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" | ||
15 | |||
16 | PACKAGECONFIG[systemd] = "--enable-systemd --with-systemdsystemunitdir=${systemd_unitdir}/system/ --with-systemduserunitdir=${systemd_unitdir}/user/,--disable-systemd" | ||
17 | |||
14 | EXTRA_OECONF += "--enable-tools" | 18 | EXTRA_OECONF += "--enable-tools" |
15 | 19 | ||
16 | do_install() { | 20 | do_install() { |
@@ -26,12 +30,6 @@ do_install_append() { | |||
26 | chmod 0755 ${D}${sysconfdir}/init.d/neard | 30 | chmod 0755 ${D}${sysconfdir}/init.d/neard |
27 | fi | 31 | fi |
28 | 32 | ||
29 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
30 | install -d ${D}${systemd_unitdir}/system | ||
31 | sed "s:@installpath@:${libexecdir}:" ${WORKDIR}/neard.service.in \ | ||
32 | > ${D}${systemd_unitdir}/system/neard.service | ||
33 | fi | ||
34 | |||
35 | # Install the tests for neard-tests | 33 | # Install the tests for neard-tests |
36 | install -d ${D}${libdir}/neard | 34 | install -d ${D}${libdir}/neard |
37 | install -m 0755 ${S}/test/* ${D}${libdir}/${BPN}/ | 35 | install -m 0755 ${S}/test/* ${D}${libdir}/${BPN}/ |