All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-networking][PATCH] dnsmasq: install .service only with systemd in DISTRO_FEATURES
@ 2013-07-04  9:26 Chunrong Guo
  2013-07-04 10:50 ` Paul Eggleton
  0 siblings, 1 reply; 8+ messages in thread
From: Chunrong Guo @ 2013-07-04  9:26 UTC (permalink / raw)
  To: openembedded-devel; +Cc: b40527

Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
 .../recipes-support/dnsmasq/dnsmasq.inc            |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/meta-networking/recipes-support/dnsmasq/dnsmasq.inc b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
index 0f5b273..0710893 100644
--- a/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
+++ b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
@@ -30,9 +30,11 @@ do_install () {
     install -d ${D}${sysconfdir}/ ${D}${sysconfdir}/init.d ${D}${sysconfdir}/dnsmasq.d
     install -m 644 ${WORKDIR}/dnsmasq.conf ${D}${sysconfdir}/
     install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/dnsmasq
-
-    install -d ${D}${systemd_unitdir}/system
-    install -m 0644 ${WORKDIR}/dnsmasq.service ${D}${systemd_unitdir}/system
+    
+    if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
+        install -d ${D}${systemd_unitdir}/system
+        install -m 0644 ${WORKDIR}/dnsmasq.service ${D}${systemd_unitdir}/system
+    fi
 
     if [ "${@base_contains('PACKAGECONFIG', 'dbus', 'dbus', '', d)}" != "" ]; then
         install -d ${D}${sysconfdir}/dbus-1/system.d
-- 
1.7.5.4




^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-07-09 20:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-04  9:26 [meta-networking][PATCH] dnsmasq: install .service only with systemd in DISTRO_FEATURES Chunrong Guo
2013-07-04 10:50 ` Paul Eggleton
2013-07-04 11:18   ` Joe MacDonald
2013-07-04 12:47     ` Paul Eggleton
2013-07-04 13:02       ` Joe MacDonald
2013-07-05  7:45     ` Guo Chunrong-B40290
2013-07-09 18:58       ` Joe MacDonald
2013-07-09 20:43         ` Martin Jansa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.