summaryrefslogtreecommitdiffstats
path: root/package/dbus-triggerd
diff options
context:
space:
mode:
authorArnaud RĂ©billout <rebillout@syscom.ch>2014-03-27 08:39:59 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-03-29 18:53:18 +0100
commite7698bd2eb977d7b23f547f1d374ccb7a0a137ad (patch)
tree7aa0d13c88d1dcac2c9ac76db079d2beed33ace9 /package/dbus-triggerd
parent57682973d4095813dfcf5100ae99200d2fa27820 (diff)
downloadbuildroot-e7698bd2eb977d7b23f547f1d374ccb7a0a137ad.tar.gz
buildroot-e7698bd2eb977d7b23f547f1d374ccb7a0a137ad.zip
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: Arnaud RĂ©billout <rebillout@syscom.ch> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/dbus-triggerd')
-rw-r--r--package/dbus-triggerd/Config.in15
-rw-r--r--package/dbus-triggerd/dbus-triggerd.mk20
2 files changed, 35 insertions, 0 deletions
diff --git a/package/dbus-triggerd/Config.in b/package/dbus-triggerd/Config.in
new file mode 100644
index 0000000000..a39f911fdb
--- /dev/null
+++ b/package/dbus-triggerd/Config.in
@@ -0,0 +1,15 @@
+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
diff --git a/package/dbus-triggerd/dbus-triggerd.mk b/package/dbus-triggerd/dbus-triggerd.mk
new file mode 100644
index 0000000000..48d5fb29fe
--- /dev/null
+++ b/package/dbus-triggerd/dbus-triggerd.mk
@@ -0,0 +1,20 @@
+################################################################################
+#
+# 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))
OpenPOWER on IntegriCloud