From patchwork Thu Jun 9 18:53:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Artyom V. Poptsov" X-Patchwork-Id: 39814 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A287527BBEA; Thu, 9 Jun 2022 20:06:56 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 122BE27BBE9 for ; Thu, 9 Jun 2022 20:06:56 +0100 (BST) Received: from localhost ([::1]:45894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzNUd-0004kG-6Z for patchwork@mira.cbaines.net; Thu, 09 Jun 2022 15:06:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzNIA-0003es-HY for guix-patches@gnu.org; Thu, 09 Jun 2022 14:54:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53856) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzNIA-0000ov-8j for guix-patches@gnu.org; Thu, 09 Jun 2022 14:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nzNIA-0000Qm-7Q for guix-patches@gnu.org; Thu, 09 Jun 2022 14:54:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55876] [PATCH] gnu: Add remserial Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 09 Jun 2022 18:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55876 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55876@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16548008291631 (code B ref -1); Thu, 09 Jun 2022 18:54:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Jun 2022 18:53:49 +0000 Received: from localhost ([127.0.0.1]:47753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzNHr-0000Q9-UT for submit@debbugs.gnu.org; Thu, 09 Jun 2022 14:53:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:57592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzNHq-0000Q1-33 for submit@debbugs.gnu.org; Thu, 09 Jun 2022 14:53:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzNHp-0002oH-RC for guix-patches@gnu.org; Thu, 09 Jun 2022 14:53:41 -0400 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]:34523) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzNHm-0000oI-Ic for guix-patches@gnu.org; Thu, 09 Jun 2022 14:53:41 -0400 Received: by mail-lj1-x22f.google.com with SMTP id e4so11254224ljl.1 for ; Thu, 09 Jun 2022 11:53:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=r6Nsk+QuabfioPGcWcMmoeZZD5xt35LbA7tq+b4D71A=; b=etF6PVTfi0xVqGy1lWFSvSjl/NatKS+fG12DHmRdEYbqOgDhbBQiokBEPGL24q/JEM anvCLtNmqrnLm9v8iQnUW/K/bdGyftEz4mGVeMnEtgO1X3/GM9QCc5DQZu7x70DpXkh1 BvoWqR/+MRHsrrME8TKkmVcFrhdsqEAgk2ywryKB8DPOvYvKut39w0VmG7aTCrhdG9FE 56qVCn2i5e7c2rhrUnC2vQQ68mi0Qx1CLNORLOyi4k8uygavtQlM6UiWUwmsRHUM9MKr V9namHCmBXFZJ1wF8lzNUUAfw925niF0etMB8MlhkTmVI6h8ogUTxHAa0a2umzTL105v HZvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=r6Nsk+QuabfioPGcWcMmoeZZD5xt35LbA7tq+b4D71A=; b=gNbEgJHQsXJ/e31OQv/niIbCykZLtEwHS8ZoyB2ZJ7a/QpEQYr0wcB1mvvPtgJL6r4 gr9oj1MtocX3EovIWy19quLX9oE+0zgHXdJPicXDgJ6XAzOWzF3DUqhlFrGwW7YhrISx CoKIIWNGHao0pykM7JKacJQ7o1VB4msI2T/8HUIQHHCdHJP8/t4259Woi9LUnc5A0+qk 106RFOVAtA3/Fwd0odjrvHNoZlC0edlYVDdQiLpi84q/mXb/wyeFcUrhKGQhTKSOgnx1 7SmMEFPBDMQGJmlk7rw/tNTEUklUNjSB+3iwtlH9+MBryDRupo+DQ4E3f9XZo1G2h5SL AVjQ== X-Gm-Message-State: AOAM530K7D3QfvHPFnikY1YT+hnB4XjbaBm/N851psIqePVGsdqAkfag r4wWm4vBWkjlzG/Z6O2CLxrfidWdQnE= X-Google-Smtp-Source: ABdhPJzGdZ454Vu/XW2mbs8D0RsebxhpK+jRdSHaxGzju1CSFGQuqqqJT2YvFHX/8i8n5uG/glHVkg== X-Received: by 2002:a2e:b0c6:0:b0:255:7c46:16b7 with SMTP id g6-20020a2eb0c6000000b002557c4616b7mr18915056ljl.383.1654800816056; Thu, 09 Jun 2022 11:53:36 -0700 (PDT) Received: from elephant ([5.164.222.47]) by smtp.gmail.com with ESMTPSA id 7-20020a2eb947000000b00255abe7600esm1232029ljs.61.2022.06.09.11.53.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jun 2022 11:53:35 -0700 (PDT) From: "Artyom V. Poptsov" Date: Thu, 09 Jun 2022 21:53:30 +0300 Message-ID: <87y1y5y8gl.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::22f; envelope-from=poptsov.artyom@gmail.com; helo=mail-lj1-x22f.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello, this patch adds 'remserial'. [1] - Artyom References: 1. "Communications bridge between TCP/IP and a serial port" http://lpccomp.bc.ca/remserial/ From 0f1b94b57eda653176429b183f3f30de9c0d38d3 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Thu, 9 Jun 2022 21:50:25 +0300 Subject: [PATCH] gnu: Add remserial * gnu/packages/linux.scm (remserial): New variable. --- gnu/packages/linux.scm | 61 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index dacb29a6ac..006848aabd 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -9263,3 +9263,64 @@ libraries are found or why they cannot be located.") gestures you make on your touchpad or touchscreen into visible actions in your desktop.") (license license:gpl3+))) + +(define-public remserial + (package + (name "remserial") + (version "1.4") + (source (origin + (method url-fetch) + (uri (list (string-append + "http://lpccomp.bc.ca/remserial/remserial-" version + ".tar.gz") + ;; XXX: 'guix build' returns 405 "Method Not Allowed" + ;; for the official URL although 'guix download' + ;; fetches the file without any problems. Let's use + ;; the version from the Internet Archive for now. + (string-append + "https://web.archive.org/web/20220406152331/" + "http://lpccomp.bc.ca/remserial/remserial-" version + ".tar.gz"))) + (sha256 + (base32 + "0jhi73pcnmvrg5zvhwc60gynp0c3r5z3fvi50vpv37smyibn55fn")))) + (build-system gnu-build-system) + (native-inputs (list linux-libre-headers)) + (arguments + (list #:make-flags + #~(list (string-append "CC=" #$(cc-for-target)) + "CFLAGS=-D_XOPEN_SOURCE=500") + #:tests? + #f ;no tests. + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin-dir (string-append out "/bin"))) + (install-file "remserial" bin-dir)) #t))))) + (home-page "http://lpccomp.bc.ca/remserial/") + (synopsis "Communications bridge between TCP/IP and a serial port") + (description + "The remserial program acts as a communications bridge +between a TCP/IP network port and a Linux device such as a serial port. Any +character-oriented Linux @file{/dev} device will work. + +The program can also use pseudo-ttys as the device. A pseudo-tty is like a +serial port in that it has a @file{/dev} entry that can be opened by a program +that expects a serial port device, except that instead of belonging to a +physical serial device, the data can be intercepted by another program. The +remserial program uses this to connect a network port to the +\"master\" (programming) side of the pseudo-tty allowing the device +driver (slave) side to be used by some program expecting a serial port. + +The program can operate as a server accepting network connections from other +machines, or as a client, connecting to remote machine that is running the +remserial program or some other program that accepts a raw network connection. +The network connection passes data as-is, there is no control protocol over +the network socket. + +Multiple copies of the program can run on the same computer at the same time +assuming each is using a different network port and device.") + (license license:gpl2+))) -- 2.25.1