triggerhappy: add optional dependency on systemd
authorBaruch Siach <baruch@tkos.co.il>
Mon, 11 Jun 2018 18:24:48 +0000 (21:24 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 11 Jun 2018 20:05:36 +0000 (22:05 +0200)
triggerhappy can use systemd for socket activation.

Cc: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/triggerhappy/triggerhappy.mk

index 4c39ab5e5d4e7e79ebdef09631fa488085349782..7c4bf404765028dd25692faf5337986ff10ba11e 100644 (file)
@@ -10,6 +10,10 @@ TRIGGERHAPPY_LICENSE = GPL-3.0+
 TRIGGERHAPPY_LICENSE_FILES = COPYING
 TRIGGERHAPPY_DEPENDENCIES = host-pkgconf
 
+ifeq ($(BR2_PACKAGE_SYSTEMD),y)
+TRIGGERHAPPY_DEPENDENCIES += systemd
+endif
+
 define TRIGGERHAPPY_BUILD_CMDS
        $(MAKE) $(TARGET_CONFIGURE_OPTS) PKGCONFIG="$(PKG_CONFIG_HOST_BINARY)" \
                -C $(@D) thd th-cmd