Commit e7698bd2 authored by Arnaud Rébillout's avatar Arnaud Rébillout Committed by Thomas Petazzoni
Browse files

dbus-triggerd: new package



dbus-triggerd is a little daemon that can monitor dbus events, match
them against some watch-expressions, then trigger shell-commands.

It can be used in any situation where dbus-interaction is needed, and
shell script is preferred over other languages.

[Thomas: also pass $(TARGET_MAKE_ENV) in the environment.]

Signed-off-by: default avatarArnaud Rébillout <rebillout@syscom.ch>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 57682973
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -273,6 +273,7 @@ source "package/dbus/Config.in"
source "package/dbus-cpp/Config.in"
source "package/dbus-glib/Config.in"
source "package/dbus-python/Config.in"
source "package/dbus-triggerd/Config.in"
if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
source "package/devmem2/Config.in"
endif
+15 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_DBUS_TRIGGERD
	bool "dbus-triggerd"
	depends on BR2_USE_MMU # fork(), dbus
	depends on BR2_TOOLCHAIN_HAS_THREADS # dbus
	depends on BR2_PACKAGE_DBUS
	help
	  dbus-triggerd is a tool to trigger shell-commands upon receiving
	  a given dbus-signal.

	  http://gareus.org/oss/dbustriggerd/start

comment "dbus-triggerd needs a toolchain w/ threads"
	depends on BR2_USE_MMU
	depends on BR2_PACKAGE_DBUS
	depends on !BR2_TOOLCHAIN_HAS_THREADS
+20 −0
Original line number Diff line number Diff line
################################################################################
#
# dbus-triggerd
#
################################################################################

DBUS_TRIGGERD_VERSION = ba3dbec805cb707c94c54de21666bf18b79bcc09
DBUS_TRIGGERD_SITE = git://rg42.org/dbustriggerd.git
DBUS_TRIGGERD_LICENSE = GPLv2+
DBUS_TRIGGERD_DEPENDENCIES = host-pkgconf dbus

define DBUS_TRIGGERD_BUILD_CMDS
	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) all
endef

define DBUS_TRIGGERD_INSTALL_TARGET_CMDS
	$(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D) install
endef

$(eval $(generic-package))