From: iyzsong--- via Guix-patches via <guix-patches@gnu.org>
To: 57235@debbugs.gnu.org
Cc: 宋文武 <iyzsong@member.fsf.org>
Subject: [bug#57235] [PATCH] gnu: Add rex.
Date: Tue, 16 Aug 2022 10:05:26 +0800 [thread overview]
Message-ID: <20220816020526.5431-1-iyzsong@envs.net> (raw)
From: 宋文武 <iyzsong@member.fsf.org>
* 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+)))
--
2.37.1
next reply other threads:[~2022-08-16 2:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-16 2:05 iyzsong--- via Guix-patches via [this message]
2022-08-19 1:15 ` bug#57235: [PATCH] gnu: Add rex 宋文武 via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220816020526.5431-1-iyzsong@envs.net \
--to=guix-patches@gnu.org \
--cc=57235@debbugs.gnu.org \
--cc=iyzsong@envs.net \
--cc=iyzsong@member.fsf.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.