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

[ CVSweb ] [ Homepage ] [ RSS feed ]

Version: 1.5, Package name: portroach-cli-1.5
Maintained by: Klemens Nanni
Description
portroach-cli queries a portroach(1) instance for outdated ports.

It can filter results and prints them on standard output similar to portroach's
web interface.


Version History (View Complete History)
  • (2021-02-14) Updated to version: portroach-cli-1.5
  • (2021-02-11) Updated to version: portroach-cli-1.4
  • (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-03-12 12:02:45 by Klemens Nanni | Files touched by this commit (2)
Log message:
Fix shellcheck TEST_DEPENDS, remove empty mdoc macro
   2021-02-14 08:55:30 by Klemens Nanni | Files touched by this commit (3)
Log message:
Add "-U" to show unmaintained ports
   2021-02-14 08:23:31 by Klemens Nanni | Files touched by this commit (3)
Log message:
Add code comment, improve "-j" example
   2021-02-10 16:25:43 by Klemens Nanni | Files touched by this commit (3)
Log message:
Update to portroach-cli 1.4
Add "-j" to print results in raw JSON format;  for example,
to get all outdated ports in a category but defer processing
to an external filter:
$ portroach-cli -j -o -m . -p ^sysutils/ | jq -f ./filter
   2021-01-28 15:01:55 by Klemens Nanni | Files touched by this commit (3)
Log message:
Improve DESCR[IPTION], add AUTHORS section
   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).