fastest_pkg
fastest_pkg copied to clipboard
If /usr/local/bin/uclcmd exists, consider using uclcmd to append to FreeBSD.conf
Background
In the example at https://github.com/ehaupt/fastest_pkg/issues/2#issuecomment-997171512 I intentionally did not bother to change my preferred shell /bin/csh
to sh
before following the example:
root@mowa219-gjp4-8570p-freebsd:~ # echo 'FreeBSD: { url: "http://pkg0.bme.freebsd.org/${ABI}/latest" }' \
? > /usr/local/etc/pkg/repos/FreeBSD.conf
root@mowa219-gjp4-8570p-freebsd:~ #
PEBKAM (intentional), but it's the type of mistake that other users might make.
Idea
https://github.com/ehaupt/fastest_pkg/blob/master/fastest_pkg might be enhanced:
-
if
/usr/local/bin/uclcmd
exists (from devel/uclcmd) -
then offer to write a suggested line to
/usr/local/etc/pkg/repos/FreeBSD.conf
.
Criterion
For this to work acceptably, case sensitivity must be observed.
https://github.com/allanjude/uclcmd/issues/17 ▶ https://github.com/allanjude/uclcmd/pull/28 ◀ https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258451#c1
- … Just need someone to update the port …
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258451#c0 included a ucl set
example that currently results in unwanted change of case from FreeBSD to freebsd.