From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UNDzJyiX516jFwAA0tVLHw (envelope-from ) for ; Mon, 15 Jun 2020 15:43:36 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id SFHUIyiX515UKgAA1q6Kng (envelope-from ) for ; Mon, 15 Jun 2020 15:43:36 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3A543940602 for ; Mon, 15 Jun 2020 15:43:36 +0000 (UTC) Received: from localhost ([::1]:52998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jkrGp-0008DZ-4r for larch@yhetil.org; Mon, 15 Jun 2020 11:43:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkrGI-0007kI-ER for guix-patches@gnu.org; Mon, 15 Jun 2020 11:43:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35707) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jkrGI-0005YR-4a for guix-patches@gnu.org; Mon, 15 Jun 2020 11:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jkrGI-0008Bq-2R for guix-patches@gnu.org; Mon, 15 Jun 2020 11:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41873] [PATCH] gnu: Add ebusd. Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 15 Jun 2020 15:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41873 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41873@debbugs.gnu.org Cc: Danny Milosavljevic X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159223577531467 (code B ref -1); Mon, 15 Jun 2020 15:43:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Jun 2020 15:42:55 +0000 Received: from localhost ([127.0.0.1]:47253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jkrGA-0008BT-Ub for submit@debbugs.gnu.org; Mon, 15 Jun 2020 11:42:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:53878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jkrG7-0008BJ-SY for submit@debbugs.gnu.org; Mon, 15 Jun 2020 11:42:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkrG6-0007Zb-Nv for guix-patches@gnu.org; Mon, 15 Jun 2020 11:42:51 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:53004) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkrG4-0005XE-B4 for guix-patches@gnu.org; Mon, 15 Jun 2020 11:42:50 -0400 Received: from localhost.localdomain (80-110-127-207.cgn.dynamic.surfer.at [80.110.127.207]) by dd26836.kasserver.com (Postfix) with ESMTPSA id CAE323367FF1; Mon, 15 Jun 2020 17:42:45 +0200 (CEST) From: Danny Milosavljevic Date: Mon, 15 Jun 2020 17:42:43 +0200 Message-Id: <20200615154243.22617-1-dannym@scratchpost.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Tags: patch Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=85.13.145.193; envelope-from=dannym@scratchpost.org; helo=dd26836.kasserver.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/15 11:42:46 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 3.99 X-TUID: RxH8bIdcdc1g * gnu/packages/embedded.scm (ebusd): New variable. --- gnu/packages/embedded.scm | 47 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm index 9be1065de2..2c5a8991fc 100644 --- a/gnu/packages/embedded.scm +++ b/gnu/packages/embedded.scm @@ -1352,3 +1352,50 @@ simplifies configuration and is also pluggable: you can write your own west this feature to provide conveniences for building applications, flashing and debugging them, and more.") (license license:expat))) + +;; TODO: Support MQTT. +(define-public ebusd + (package + (name "ebusd") + (version "3.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/john30/ebusd.git") + (commit (string-append "v" version)))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "0iva70bam7wdx60bpd3an9kxr28zxlvp3vprivgqshwwdhqa0hzp")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'install-config + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((config-destination + (string-append (assoc-ref outputs "out") + "/share/ebusd"))) + (copy-recursively (string-append (assoc-ref inputs "config") + "/ebusd-2.1.x") + config-destination) + #t)))))) + (native-inputs + `(("automake" ,automake) + ("autoconf" ,autoconf) + ("config" + ,(origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/john30/ebusd-configuration.git") + (commit "666c0f6b9c4d7545eff7f43ab28a1c7baeab7913"))) + (file-name "config-checkout") + (sha256 + (base32 + "0yxnx8p4lbk614l16854r9s9d8s9c7ixgczfs8mph94xz0wkda7x")))))) + (synopsis "Daemon for communicating with eBUS devices") + (description "This package provides @command{ebusd}, a daemon for +handling communication with eBUS devices connected to a 2-wire bus system +(\"energy bus\" used by numerous heating systems).") + (home-page "https://ebusd.eu/") + (license license:gpl3+)))