diff --git a/misc/Makefile b/misc/Makefile --- 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 --- /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 --- /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 --- /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.