The attached patch updates sysutils/supuner to 0.2. supuner runs commands and suppresses their stderr/stdout unless the command fails, which can be useful for chatty scripts, cron jobs etc. More details at https://tratt.net/laurie/src/supuner/ for those who are interested.
supuner 0.2 does have a small Python 3 test suite: I've hard-coded TEST_DEPENDS to python-3.8 for want of a better idea. Laurie -- Personal http://tratt.net/laurie/ Software Development Team http://soft-dev.org/ https://github.com/ltratt http://twitter.com/laurencetratt Index: Makefile =================================================================== RCS file: /cvs/ports/sysutils/supuner/Makefile,v retrieving revision 1.3 diff -u -r1.3 Makefile --- Makefile 12 Jul 2019 20:49:52 -0000 1.3 +++ Makefile 17 Feb 2020 14:37:09 -0000 @@ -1,8 +1,8 @@ # $OpenBSD: Makefile,v 1.3 2019/07/12 20:49:52 sthen Exp $ -COMMENT = SUPress command stdout / stderr UNless ERror +COMMENT = SUPress stdout / stderr UNless ERror -DISTNAME = supuner-0.1 +DISTNAME = supuner-0.2 CATEGORIES = sysutils HOMEPAGE = http://tratt.net/laurie/src/supuner/ @@ -14,7 +14,13 @@ MASTER_SITES = ${HOMEPAGE}releases/ -NO_TEST = Yes +EXTRACT_SUFX = .tgz + NO_BUILD = Yes + +TEST_DEPENDS = lang/python/3.8 + +do-test: + cd ${WRKSRC} && python3 test.py .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/sysutils/supuner/distinfo,v retrieving revision 1.2 diff -u -r1.2 distinfo --- distinfo 18 Jan 2015 03:15:15 -0000 1.2 +++ distinfo 17 Feb 2020 14:37:09 -0000 @@ -1,2 +1,2 @@ -SHA256 (supuner-0.1.tar.gz) = UU2b2SLASobZ0Kdfz9CPPLdexpo7i2gM4B2oLvvGH+E= -SIZE (supuner-0.1.tar.gz) = 3248 +SHA256 (supuner-0.2.tgz) = epGiDXtIOFv20SY07Z5P9AWWnWUWsP5e9yfHD2irnFE= +SIZE (supuner-0.2.tgz) = 4057 Index: pkg/DESCR =================================================================== RCS file: /cvs/ports/sysutils/supuner/pkg/DESCR,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 DESCR --- pkg/DESCR 4 Jul 2011 20:04:54 -0000 1.1.1.1 +++ pkg/DESCR 17 Feb 2020 14:37:09 -0000 @@ -1,3 +1,4 @@ -supuner executes a command and manipulates its stderr and stdout, -allowing the user control over when they are displayed and / or -outputted. +supuner (SUPpress UNless ERror) executes a command and manipulates its stderr +and stdout. By default, it captures both stderr and stdout and only outputs +their combined value to stdout if the command fails. supuner is useful for +"chatty" commands whose output is only relevant if the command fails.