Re: FreeBSD-base.conf in the wiki

From: Emmanuel Vadot <manu_at_bidouilliste.com>
Date: Mon, 08 Jul 2024 06:09:00 UTC
On Sun, 7 Jul 2024 15:28:34 +0100
Graham Perrin <grahamperrin@gmail.com> wrote:

> Hi
> 
> FYI
> 
> Re: 
> <https://wiki.freebsd.org/action/info/PkgBase?action=diff&rev2=94&rev1=93>
> 
> The cat approach in the wiki was ambiguous, it failed for me as shown 
> below. At the '> ' prompt, I keyed Control-C to regain a normal prompt.

 I guess you've simply copy/pasted the whole block with the '>' ?
 I specifically did it that way so people won't blindly copy/paste
something but copy/paste each line so they will read it. Please revert.

> The example that's now in the wiki should be a valid JSON text data 
> file. (Not that strict JSON is essential, it's simply a good example.)

 It's not JSON it's UCL.

> root@macbookpro:/usr/local/etc/pkg/repos # sh
> # cat <<EOF >/usr/local/etc/pkg/repos/FreeBSD-base.conf
>  >
>  > > FreeBSD-base: {
>  > >   url: "pkg+https://pkg.FreeBSD.org/\${ABI}/base_release_0",
>  > >   mirror_type: "srv",
>  > >   signature_type: "fingerprints",
>  > >   fingerprints: "/usr/share/keys/pkg",
>  > >   enabled: yes
>  > > }
>  > > EOF
>  >
>  >
> # file /usr/local/etc/pkg/repos/FreeBSD-base.conf
> /usr/local/etc/pkg/repos/FreeBSD-base.conf: cannot open 
> `/usr/local/etc/pkg/repos/FreeBSD-base.conf' (No such file or directory)
> # exit


-- 
Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>