From patchwork Thu Mar 27 07:39:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Arnaud_R=C3=A9billout?= X-Patchwork-Id: 334236 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id AF34D140094 for ; Thu, 27 Mar 2014 18:40:25 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 1629531056; Thu, 27 Mar 2014 07:40:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wcAIhne4IUYP; Thu, 27 Mar 2014 07:40:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 3C78930D3B; Thu, 27 Mar 2014 07:40:20 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 5293E1C107A for ; Thu, 27 Mar 2014 07:40:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4D4C28D31C for ; Thu, 27 Mar 2014 07:40:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gRe3dMrzrGJS for ; Thu, 27 Mar 2014 07:40:16 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp3.infomaniak.ch (smtp3.infomaniak.ch [84.16.68.91]) by whitealder.osuosl.org (Postfix) with ESMTPS id A21968D31B for ; Thu, 27 Mar 2014 07:40:16 +0000 (UTC) Received: from S-RD-3.syscom.ch ([62.12.146.154]) (authenticated bits=0) by smtp3.infomaniak.ch (8.14.5/8.14.5) with ESMTP id s2R7eAow001091 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 27 Mar 2014 08:40:14 +0100 From: =?UTF-8?q?Arnaud=20R=C3=A9billout?= To: buildroot@busybox.net Date: Thu, 27 Mar 2014 08:39:59 +0100 Message-Id: <1395905999-25181-1-git-send-email-rebillout@syscom.ch> X-Mailer: git-send-email 1.9.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 1/1] dbus-triggerd: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net 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. Signed-off-by: Arnaud RĂ©billout --- v2: - Cross-compile patch has been accepted upstream: bump package to last revision and remove patch - Makefile: - Add host-pkgconf dependency - Use TARGET_CONFIGURE_OPTS in build command - Config (based on dbus-cpp): - Add dbus dependencies - Add comment if toolchain dependency is not met --- package/Config.in | 1 + package/dbus-triggerd/Config.in | 15 +++++++++++++++ package/dbus-triggerd/dbus-triggerd.mk | 20 ++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 package/dbus-triggerd/Config.in create mode 100644 package/dbus-triggerd/dbus-triggerd.mk diff --git a/package/Config.in b/package/Config.in index cfa53d3..fa24b57 100644 --- a/package/Config.in +++ b/package/Config.in @@ -272,6 +272,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 diff --git a/package/dbus-triggerd/Config.in b/package/dbus-triggerd/Config.in new file mode 100644 index 0000000..a39f911 --- /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 0000000..2c6e551 --- /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_CONFIGURE_OPTS) $(MAKE) -C $(@D) all +endef + +define DBUS_TRIGGERD_INSTALL_TARGET_CMDS + $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D) install +endef + +$(eval $(generic-package))