From nobody Fri Sep 15 13:52:37 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RnFxd2fGtz4tfPb; Fri, 15 Sep 2023 13:52:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RnFxd21bqz3ftX; Fri, 15 Sep 2023 13:52:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694785957; h=from:from: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; bh=37HN9HzdIbxF/G//3TrdNr2p0A9K6y01Bq5cdLxDuRA=; b=SUkjp6O5GtHIuXwGBoD/7/cfkqtMTnPFyoUemzWg8rF8dd4DhQnOV/pq15C88c2005yHhW UL87IaU7ywHVLlEmf72QdoE+TB3wWU29WR8IF27PfmVQj5LV2g2VI6exco3yZUvGd+SjpY +Jh7Lq18sOW7cCH859Ng+8+2xbnTlRIi4DVsFhbO/pTTFvHsMOJzfXBzqE5zrLlmTdMxe/ qPRgQTpnQJRGjPqjlXax63QnN9c9Ij4cD/odVExuA2hj8w2pJgfdJB/L8XjK0OimjIp4fH f5GY9Bls48DFtzyjx2b4laBcvsaS2EoeVeyyAa6k4F11WKN7EwCo2XO3VzhM7w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694785957; a=rsa-sha256; cv=none; b=kWmWnc/CMOWXTjnsjaOMh+0sjVxiG+/nV4bb7VzLGBsWnJQ8adoUer2HBNXk3vcGJz9OPf lD/h/gju38ydor5b9Y7OJNAjsLAKKxLtH835nfUaPDinAn+D4+3J7FtHi7VqAGB9IweqjG KYZNw6H8K4Wm0fkpKQTWSiiT6EQvchT0orSkOKwdm77PKJHY8/gf39tbCVgOypJkDW7vBa xedkzGKvfmdob2DsizRH58HFrWOgvEltVBe3F86sWudmkEErr2irZtiMjrZXgpaPy6XFUH HCRR7sbebIPRcnx98qNzThPzZCdWI8Dd2GcrCUTwu6X0N3zqBxtAjsUnIDBhfw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694785957; h=from:from: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; bh=37HN9HzdIbxF/G//3TrdNr2p0A9K6y01Bq5cdLxDuRA=; b=l2kreXLfM4DTg4ikZa3rBx9SPfi6Ms1yADTc9JxYl1bvXuzuxAK9FwfL8wbJJ81kvKit9H 7Vs4AbnNV8GazgAglxUIwvYxTlJDGIiL0zUq9QpDq1Fd8LYTGLy2llCdKoFrLkqZAM6X+h eWo7gTOlOGf72horFNiNB7u7pyuetPLs8/FkOQtXMI3PdY2LHYp+2I00Pni3OKoua6ANYA xzuSOnokwwvj0aHuJZAeYNT2G5qOve5IFNgXF5LWjDUByXyd0vmlV+lTSGC8673lKb7XD+ UEITD+J0ZN5Zq0L6uPoDPxGrqSIIxLrOz09o83ecuwzJdSkBxvpWQ9h7f4//mQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RnFxd0p8bzBgW; Fri, 15 Sep 2023 13:52:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38FDqbsv071686; Fri, 15 Sep 2023 13:52:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38FDqbpq071683; Fri, 15 Sep 2023 13:52:37 GMT (envelope-from git) Date: Fri, 15 Sep 2023 13:52:37 GMT Message-Id: <202309151352.38FDqbpq071683@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Joel Bodenmann Subject: git: c046a1681579 - main - misc/retry: Add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbo X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c046a1681579b4ff0dd479c2313bd73c0238967c Auto-Submitted: auto-generated The branch main has been updated by jbo: URL: https://cgit.FreeBSD.org/ports/commit/?id=c046a1681579b4ff0dd479c2313bd73c0238967c commit c046a1681579b4ff0dd479c2313bd73c0238967c Author: Jon Stuart AuthorDate: 2023-09-14 15:58:26 +0000 Commit: Joel Bodenmann CommitDate: 2023-09-15 13:51:25 +0000 misc/retry: Add new port A utility to retry a command until the command succeeds. PR: 273730 Approved by: zirias (mentor) Reviewed by: diizzy Differential Revision: https://reviews.freebsd.org/D41862 --- misc/Makefile | 1 + misc/retry/Makefile | 20 ++++++++++++++++++++ misc/retry/distinfo | 3 +++ misc/retry/pkg-descr | 8 ++++++++ 4 files changed, 32 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index 31a5c25df116..1304a56a71fe 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -507,6 +507,7 @@ SUBDIR += raspberrypi-userland SUBDIR += raspbsd-led SUBDIR += ree + SUBDIR += retry SUBDIR += rfc SUBDIR += ringtonetools SUBDIR += rname diff --git a/misc/retry/Makefile b/misc/retry/Makefile new file mode 100644 index 000000000000..a7ac1f6c3d41 --- /dev/null +++ b/misc/retry/Makefile @@ -0,0 +1,20 @@ +PORTNAME= retry +DISTVERSION= 1.0.5 +CATEGORIES= misc +MASTER_SITES= https://github.com/minfrin/${PORTNAME}/releases/download/${PORTNAME}-${DISTVERSION}/ + +MAINTAINER= jon@zikomo.xyz +COMMENT= Retry a command until the command succeeds +WWW= https://github.com/minfrin/retry + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= tar:bzip2 + +GNU_CONFIGURE= yes + +PLIST_FILES= bin/retry \ + man/man1/retry.1.gz + +.include diff --git a/misc/retry/distinfo b/misc/retry/distinfo new file mode 100644 index 000000000000..2add2c026ef8 --- /dev/null +++ b/misc/retry/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1694647018 +SHA256 (retry-1.0.5.tar.bz2) = 68e241d10f0e2d784a165634bb2eb12b7baf0a9fd9d27c4d54315382597d892e +SIZE (retry-1.0.5.tar.bz2) = 260264 diff --git a/misc/retry/pkg-descr b/misc/retry/pkg-descr new file mode 100644 index 000000000000..9ca00f4a1774 --- /dev/null +++ b/misc/retry/pkg-descr @@ -0,0 +1,8 @@ +Retry captures stdin into memory as the data is passed to the repeated command, +and this captured stdin is then replayed should the command be repeated. This +makes it possible to embed the retry tool into shell pipelines. + +Retry captures stdout into memory, and if the command was successful stdout is +passed on to stdout as normal, while if the command was repeated stdout is +passed to stderr instead. This ensures that output is passed to stdout once and +once only.