From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kAeAEIwEUGTe3QAASxT56A (envelope-from ) for ; Mon, 01 May 2023 20:27:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8PhqEIwEUGT5DAAAauVa8A (envelope-from ) for ; Mon, 01 May 2023 20:27:24 +0200 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 CE49AA2AE for ; Mon, 1 May 2023 20:27:23 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptYEu-0005TP-Gc; Mon, 01 May 2023 14:27:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptYEp-0005T6-Ro for guix-patches@gnu.org; Mon, 01 May 2023 14:27:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ptYEp-0006gn-J9 for guix-patches@gnu.org; Mon, 01 May 2023 14:27:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ptYEo-0001mj-Mp for guix-patches@gnu.org; Mon, 01 May 2023 14:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63211] [PATCH] gnu: Add usbrelay. Resent-From: Evgeny Pisemsky Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 01 May 2023 18:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63211 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63211@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16829655706789 (code B ref -1); Mon, 01 May 2023 18:27:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 May 2023 18:26:10 +0000 Received: from localhost ([127.0.0.1]:41003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptYDx-0001lP-Un for submit@debbugs.gnu.org; Mon, 01 May 2023 14:26:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:56322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptYDv-0001lH-FG for submit@debbugs.gnu.org; Mon, 01 May 2023 14:26:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptYDv-0005G3-6J for guix-patches@gnu.org; Mon, 01 May 2023 14:26:07 -0400 Received: from sofi-shared.hosting.energy ([2001:41d0:602:1f56::] helo=sofi.hosting.energy) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptYDq-0006OL-Cl for guix-patches@gnu.org; Mon, 01 May 2023 14:26:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pisemsky.com; s=dkim; h=Content-Transfer-Encoding:Content-Type:MIME-Version :Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=62TD648cKf8p0velt4CMxnpi7fdV5EEyn8dp6TIhT4Y=; b=X3zShvAXJYzcxiTEYtaJPyTUan aDffvOTFG6du5x5Ma8+vUbGTUJkiURyLx7a+8d+I2XIV0s9oOkW49y0bQz5sNt7UZvN3+h6mt/cig nsjZEOMAsI06HdqpEcfYmrFOOFE7ALdOWqIX2JDciYZfaJUCe5yBu3HQGIK04JM0dVT0=; Received: from node-41-190-35-212.domolink.tula.net ([212.35.190.41] helo=laptop) by sofi.hosting.energy with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1ptYDc-0007o9-3m for guix-patches@gnu.org; Mon, 01 May 2023 21:25:48 +0300 From: Evgeny Pisemsky Date: Mon, 01 May 2023 21:25:46 +0300 Message-ID: <87pm7j6h91.fsf@pisemsky.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-usbrelay.patch Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2001:41d0:602:1f56::; envelope-from=evgeny@pisemsky.com; helo=sofi.hosting.energy X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_PERMERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682965643; a=rsa-sha256; cv=none; b=i4+YWtDupUOnc3pr++z9yi4ITVRHKOhRg+l3ehiAdJ5g6OGoOaQ6YoREXqfILORvpftyys kOBYGUI6Guvk7Q640/y8mJ5cEVApqqqZY0SXjrY4RkTGUbiPXeyUNJUenqKQf7MWWgGjDS BvZWOg7gRbAWkhJG/yap2TB5gnTiKSTeZ/N3cHtxDeLOGvAjzU53GaiKSab5GA3ZXDY2ha SRUhtW8yvqDiVqca1+Okzc9YSi0YOWyhKMlgGGblymZCa8OzrL0Hzml4wDOO3T9hBIzDeJ df/HLoVuUQX3HJOWxGuqJUzvtp7RvfqTC8vbN5sSnMc72gR4fCo9xUQ6SiJOHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pisemsky.com header.s=dkim header.b=X3zShvAX; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682965643; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=62TD648cKf8p0velt4CMxnpi7fdV5EEyn8dp6TIhT4Y=; b=YI77XstGLeY4e4GQi7LhfzdAy/zFYrSkhasLPogE7oi7gKtK0wpPhM0JBz5WgXbAHR+3oz pr8kv7vEWLn74HqsSg8NKFSMkXYuO0rEVQSAYeFlomE8A9mQ/CJZF0NDSGYO7C72q/bgMr QyQLE6FYotjpds9+QbYOzm2+kjE0hns5+jpUoMtWvOz+iMykSCQ7dowtv1Sh3O19EhBKjy g+/I/0K7niS1Ivb0eKnGPeY4HWPUFToaHZkRXBmT8fwI4bmVn/Y9OJd9BtsBM6U8JFmtB0 OdUSifnibtq4d2WkuuBqBgBZAZDO45Eja7cJ1ff6zzILJBWSHcTGVgpX/HrbRQ== X-Migadu-Spam-Score: -2.41 X-Spam-Score: -2.41 X-Migadu-Queue-Id: CE49AA2AE X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pisemsky.com header.s=dkim header.b=X3zShvAX; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-TUID: 8ukdLN20w+IK >From dacf7010defa351fae323786a5112904215b5478 Mon Sep 17 00:00:00 2001 From: Evgeny Pisemsky Date: Mon, 1 May 2023 21:09:42 +0300 Subject: [PATCH] gnu: Add usbrelay. * gnu/packages/hardware.scm (usbrelay): New variable. --- gnu/packages/hardware.scm | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index 5b85ad9b2e..365fb88ae0 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -2,7 +2,7 @@ ;;; Copyright =C2=A9 2018=E2=80=932022 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2020 Jan (janneke) Nieuwenhuizen ;;; Copyright =C2=A9 2020 Brice Waegeneire -;;; Copyright =C2=A9 2021 Evgeny Pisemsky +;;; Copyright =C2=A9 2021, 2023 Evgeny Pisemsky ;;; Copyright =C2=A9 2021 L=C3=A9o Le Bouter ;;; Copyright =C2=A9 2021 Denis Carikli ;;; Copyright =C2=A9 2021, 2022 Petr Hodina @@ -1438,3 +1438,37 @@ (define-public lxi-tools on the LXI Consortium standard which defines the communication protocols f= or modern instrumentation and data acquision systems using Ethernet.") (license license:bsd-3))) + +(define-public usbrelay + (package + (name "usbrelay") + (version "1.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/darrylb123/usbrelay") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0fr3wglr2c6myg4k6ai2p5z38prclcnk2ngik15sq16fnp6qg750")))) + (build-system gnu-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (delete 'configure)) + #:make-flags (let* ((out (assoc-ref %outputs "out")) + (lib (string-append out "/lib"))) + (list (string-append "CC=3D" ,(cc-for-target)) + (string-append "PREFIX=3D" out) + (string-append "LDFLAGS=3D-Wl,-rpath=3D" lib) + "LDCONFIG=3Dtrue" + "USBMAJOR=3D$(USBLIBVER)")) + #:tests? #f)) + (inputs (list hidapi)) + (home-page "https://github.com/darrylb123/usbrelay") + (synopsis "Control USB relay modules") + (description + "This is a Linux driver based on hidapi for a variety of inexpensive +HID compatible USB relay modules available with different number of +output relays.") + (license license:gpl2+))) base-commit: 23552fb2fbcb78757e8b563de9466831f6386105 --=20 2.39.2