From patchwork Tue Aug 16 02:05:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: guix--- via Guix-patches via X-Patchwork-Id: 41702 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 9FBE027BBEB; Tue, 16 Aug 2022 03:06:17 +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_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 51BBD27BBEA for ; Tue, 16 Aug 2022 03:06:17 +0100 (BST) Received: from localhost ([::1]:55600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNlyC-00019H-FX for patchwork@mira.cbaines.net; Mon, 15 Aug 2022 22:06:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNlxz-00018Q-At for guix-patches@gnu.org; Mon, 15 Aug 2022 22:06:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54657) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNlxz-0008RZ-0p for guix-patches@gnu.org; Mon, 15 Aug 2022 22:06:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNlxy-00068i-N7 for guix-patches@gnu.org; Mon, 15 Aug 2022 22:06:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57235] [PATCH] gnu: Add rex. Resent-From: iyzsong@envs.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Aug 2022 02:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57235 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57235@debbugs.gnu.org Cc: =?utf-8?b?5a6L5paH5q2m?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166061555223582 (code B ref -1); Tue, 16 Aug 2022 02:06:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Aug 2022 02:05:52 +0000 Received: from localhost ([127.0.0.1]:44406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNlxo-00068H-0G for submit@debbugs.gnu.org; Mon, 15 Aug 2022 22:05:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:42198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNlxi-000686-Ve for submit@debbugs.gnu.org; Mon, 15 Aug 2022 22:05:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47682) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNlxg-0000yc-5q for guix-patches@gnu.org; Mon, 15 Aug 2022 22:05:46 -0400 Received: from envs.net ([89.163.145.170]:45612 helo=mail.envs.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNlxd-0008KZ-6q for guix-patches@gnu.org; Mon, 15 Aug 2022 22:05:43 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id E522B38A06C4; Tue, 16 Aug 2022 02:05:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1660615538; bh=Zne5eMRomgaxYQVyIQvioxG5KvvyT98J/10Qq/Vu528=; h=From:To:Cc:Subject:Date:From; b=KRjEvFwCc14ZK6sVIYrM+PGKMe9qYyibd4VKcmhuQcGo0MWd8bUOKqUIydUL5Wtsi 4ds+Gh6xlCmmpr185LAmL61L+muX08MfTQ/oqqVu5ze5xeW1xq3CoAZwrZYR0lw7e8 J6YLMazrVG4ZqUwMzoR2+pnZLKpE3AkB6+hwWqwOFnj1dqqJF2cLcXmbVq4YSjaiQ2 /ngwpbbgdE2naMn7anCP1VNd+SlDXSmcGFV+afqDHpshMdJDWkOKGqWx6hwxrECyrp chY7RYqadvP5XC53rQZhYIWAc6eAUCedlJfwyEYMltJ0wWWKjKIWesFnKETpJCN7ve AW61IvAAr4cVkUccGobjluB9JygxqlOMNkEWcHp2JKrXzQRCmXTlZz4tUwbh67GMBF XWJe+O8Ip3Lj7iM6DZapiL3pMQxn7JiVWvjtG98s62JQpJp5Vw+4EW3kdQDOVRgQqj n61jZuq6pcCuy8kOPt3y+GeDeD/MKvt0uqGl3sBkie3KYwmTbnfxMhrS3vEkzzKtDz oqWjV/P/oKhHphcZdRDLAa5veP491LXxGsfLpjP2YMkt0Lm/pS3llWMO8/te+rx+bJ iljugSRY9z2ToA5SueYP+Et3g7FeUBGyA7VAh0iSJ6c16j1kA4vDt+c/o9wZENFHde 4fM3SbbiFJ9AhXfvMKWB5OhE= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id r2N093aWpIXO; Tue, 16 Aug 2022 02:05:32 +0000 (UTC) Received: from localhost (unknown [182.150.116.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: iyzsong@envs.net) by mail.envs.net (Postfix) with ESMTPSA; Tue, 16 Aug 2022 02:05:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id c5b2db59; Tue, 16 Aug 2022 02:05:28 +0000 (UTC) Date: Tue, 16 Aug 2022 10:05:26 +0800 Message-Id: <20220816020526.5431-1-iyzsong@envs.net> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Received-SPF: pass client-ip=89.163.145.170; envelope-from=iyzsong@envs.net; helo=mail.envs.net 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_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" Reply-to: iyzsong@envs.net X-ACL-Warn: , iyzsong--- via Guix-patches X-Patchwork-Original-From: iyzsong--- via Guix-patches via From: guix--- via Guix-patches via X-getmail-retrieved-from-mailbox: Patches From: 宋文武 * gnu/packages/admin.scm (rex): New variable. --- gnu/packages/admin.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 35d3b53f24..a4c5189222 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -5454,3 +5454,40 @@ (define-public fail2ban up services to use only two factor, or public/private authentication mechanisms if you really want to protect services.") (license license:gpl2+))) + +(define-public rex + (package + (name "rex") + (version "4.1") + (source (origin + (method url-fetch) + (uri (string-append + "https://download.gnu.org.ua/pub/releases/rex/rex-" + version ".tar.gz")) + (sha256 + (base32 + "1arb8z602invwavskq36nhwy42a3v14iyhi06iqlngfai2k93fai")))) + (build-system gnu-build-system) + (arguments + (list + #:tests? #f ; no tests + #:phases + #~(modify-phases %standard-phases + ;; No configure script and Makefile. + (delete 'configure) + (delete 'build) + (add-before 'install 'patch-exec-expect + (lambda _ + (substitute* "rex" + (("exec expect") (string-append "exec " (which "expect")))))) + (replace 'install + (lambda _ + (invoke "./install" + (string-append "--prefix=" #$output))))))) + (inputs (list expect)) + (home-page "https://www.gnu.org.ua/software/rex/") + (synopsis "Remote execution utility") + (description "@command{rex} runs a supplied command or shell script on +several hosts in succession or in parallel. It can also be used to copy a +file or files to several hosts.") + (license license:gpl3+)))