diff options
| author | Antranig Vartanian <antranigv@freebsd.am> | 2026-01-26 17:10:47 +0000 |
|---|---|---|
| committer | Robert Clausecker <fuz@FreeBSD.org> | 2026-01-26 22:59:50 +0000 |
| commit | f3623c7218cc17d09e5fb198368fde7e8e52f5f4 (patch) | |
| tree | 3d2b08e41c7e1bc30cfbba174ae8c5bc435b8c8e | |
| parent | 84a9f8b2f92c69d15b86624681e97e11e83459b9 (diff) | |
sysutils/watchcat: watchcat combines good things about watch and cat
Watchcat is a command-line tool that combines the functionalities of
the 'watch' and 'cat' commands. It allows users to monitor the output
of a command by executing it repeatedly at specified intervals or to
watch a file for changes and display its contents when modified.
Differential Revision: https://reviews.freebsd.org/D54863
| -rw-r--r-- | sysutils/Makefile | 1 | ||||
| -rw-r--r-- | sysutils/watchcat/Makefile | 38 | ||||
| -rw-r--r-- | sysutils/watchcat/distinfo | 9 | ||||
| -rw-r--r-- | sysutils/watchcat/pkg-descr | 4 |
4 files changed, 52 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 1506e7963da0..5b36ce2a9758 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -1588,6 +1588,7 @@ SUBDIR += waitforssh SUBDIR += walk SUBDIR += watchfolder + SUBDIR += watchcat SUBDIR += watchman SUBDIR += watchmen SUBDIR += waynergy diff --git a/sysutils/watchcat/Makefile b/sysutils/watchcat/Makefile new file mode 100644 index 000000000000..8baeb5558964 --- /dev/null +++ b/sysutils/watchcat/Makefile @@ -0,0 +1,38 @@ +PORTNAME= watchcat +DISTVERSION= g20260124 +CATEGORIES= sysutils + +MAINTAINER= antranigv@FreeBSD.am +COMMENT= Combines the functionality of watch and cat + +LICENSE= GPLv2 + +BUILD_DEPENDS= voc:lang/voc + +USE_GITHUB= yes +GH_ACCOUNT= norayr +GH_TAGNAME= f1134a59f6b581d8d500b2678407285a1ee6443b + +GH_TUPLE= norayr:pipes:ef0629a71853b145def2b8b27300d3d02b228739:pipes/dps/pipes \ + norayr:strutils:2a450a1ef94a431787e258e262d053377ac9275c:strutils/dps/strutils \ + norayr:time:8f4d8612518cd69f91e85fa224c85bfe5d506028:time/dps/time + +PLIST_FILES= bin/watchcat + +pre-build: + ${MKDIR} ${WRKSRC}/build/ + +do-build: + (cd ${WRKSRC}/build && \ + ${SETENVI} ${MAKE_ENV} voc \ + ../dps/time/src/time.Mod -s \ + ../dps/strutils/src/strTypes.Mod -s \ + ../dps/strutils/src/strUtils.Mod -s \ + ../dps/pipes/src/pipes.Mod -s \ + ../src/watchcat.Mod -M \ + ) + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/build/watchcat ${STAGEDIR}${PREFIX}/bin/watchcat + +.include <bsd.port.mk> diff --git a/sysutils/watchcat/distinfo b/sysutils/watchcat/distinfo new file mode 100644 index 000000000000..09a568366d1e --- /dev/null +++ b/sysutils/watchcat/distinfo @@ -0,0 +1,9 @@ +TIMESTAMP = 1769447608 +SHA256 (norayr-watchcat-g20260124-f1134a59f6b581d8d500b2678407285a1ee6443b_GH0.tar.gz) = 631ad43c8035b40e1d134c9f906fcf7fa3ab54e3c05255466ca00dfd1cd2b41a +SIZE (norayr-watchcat-g20260124-f1134a59f6b581d8d500b2678407285a1ee6443b_GH0.tar.gz) = 10293 +SHA256 (norayr-pipes-ef0629a71853b145def2b8b27300d3d02b228739_GH0.tar.gz) = aa2c08fbd8b1d7ca0e9511a02e580e387747fdfd44ef876d67009fa7cef162e7 +SIZE (norayr-pipes-ef0629a71853b145def2b8b27300d3d02b228739_GH0.tar.gz) = 8339 +SHA256 (norayr-strutils-2a450a1ef94a431787e258e262d053377ac9275c_GH0.tar.gz) = 4a7d49daf14c707c3a7c257e98a4dd8372ab84a70efa9073c95142bce21a54a5 +SIZE (norayr-strutils-2a450a1ef94a431787e258e262d053377ac9275c_GH0.tar.gz) = 19396 +SHA256 (norayr-time-8f4d8612518cd69f91e85fa224c85bfe5d506028_GH0.tar.gz) = d3985485df35e03171feed80d75d3be4655498a91e2e413003780c7e77074c2e +SIZE (norayr-time-8f4d8612518cd69f91e85fa224c85bfe5d506028_GH0.tar.gz) = 7362 diff --git a/sysutils/watchcat/pkg-descr b/sysutils/watchcat/pkg-descr new file mode 100644 index 000000000000..55182c11b2da --- /dev/null +++ b/sysutils/watchcat/pkg-descr @@ -0,0 +1,4 @@ +Watchcat is a command-line tool that combines the functionalities of +the 'watch' and 'cat' commands. It allows users to monitor the output +of a command by executing it repeatedly at specified intervals or to +watch a file for changes and display its contents when modified. |
