dbus: only install initscript for sysV targets
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Tue, 19 Nov 2013 13:02:03 +0000 (10:02 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 26 Nov 2013 15:12:38 +0000 (16:12 +0100)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/dbus/dbus.mk

index e2412478b5ae8496e0fcc77eb8ce46c2735243fa..560f63e8dd71457c1937d0ae8f2a7f98c8861864 100644 (file)
@@ -75,11 +75,15 @@ define DBUS_INSTALL_TARGET_FIXUP
        mkdir -p $(TARGET_DIR)/var/lib
        rm -rf $(TARGET_DIR)/var/lib/dbus
        ln -sf /tmp/dbus $(TARGET_DIR)/var/lib/dbus
-       $(INSTALL) -m 0755 -D package/dbus/S30dbus $(TARGET_DIR)/etc/init.d/S30dbus
 endef
 
 DBUS_POST_INSTALL_TARGET_HOOKS += DBUS_INSTALL_TARGET_FIXUP
 
+define DBUS_INSTALL_INIT_SYSV
+       $(INSTALL) -m 0755 -D package/dbus/S30dbus \
+               $(TARGET_DIR)/etc/init.d/S30dbus
+endef
+
 HOST_DBUS_DEPENDENCIES = host-pkgconf host-expat
 HOST_DBUS_CONF_OPT = \
                --with-dbus-user=dbus \