./sysutils/portroach-cli [query portroach(1)]
[+] Add this package to your ports tracker

[ CVSweb ] [ Homepage ] [ RSS feed ]

Version: 1.3, Package name: portroach-cli-1.3
Maintained by: Klemens Nanni
Description
portroach-cli is a utility to query a portroach(1) instance.

It can filter ports and prints results on standard output.


Version History (View Complete History)
  • (2021-01-16) Updated to version: portroach-cli-1.3
  • (2021-01-12) Updated to version: portroach-cli-1.2
  • (2021-01-12) Updated to version: portroach-cli-1.1
  • (2021-01-12) Package added to openports.se, version portroach-cli-1.0 (created)
[show/hide] View available PLISTS (Can be a lot of data)

CVS Commit History:

   2021-01-15 22:24:42 by Klemens Nanni | Files touched by this commit (2)
Log message:
Print column headers
   2021-01-12 06:20:41 by Klemens Nanni | Files touched by this commit (2)
Log message:
Show COMMENT if HOMEPAGE is empty, disable empty matches for regexes
   2021-01-12 01:34:58 by Klemens Nanni | Files touched by this commit (2)
Log message:
Fail on URLs without scheme, add missing RCS id
Otherwise ftp(1) drops into the "ftp> " prompt
(I fixed that bug myself in sysupgrade.sh r1.42 but forgot about it here.)
wget(1) and curl(1) always exit either way instead of blocking, *but*:
- cURL does not URL encode unsafe characters (just like ftp).
- Wget cannot be quiet except for error messages AND write files to stdout:
1. --quiet drops *every* message (incl. warnings/errors),
2. --no-verbose is silent but not quiet (still progress/stats on stdout),
3. --output-file redirects *every* message (progress *and* errors);
So no way to tell it "quiet, errors on stderr, content on stdout)...
So three different tools of which none of them gets all three things right:
- ftp fails on URLs without schema
- cURL does not URL encode its input (on purpose according to manual)
- Wget fails to provide basic stdio primitives
Stick to ftp(1), "validate" the URL with glob patterns and encode it with
jq(1) (as done before) to keep RUN_DEPENDS down at one (jq).