Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jul 2024 15:28:34 +0100
From:      Graham Perrin <grahamperrin@gmail.com>
To:        freebsd-pkgbase@freebsd.org
Subject:   FreeBSD-base.conf in the wiki
Message-ID:  <3b8b7151-5cc7-44d4-b945-1f546c9a3af6@gmail.com>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------BthfAz7vSWq08SBxDgFz3dZC
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

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.

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.)

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

--------------BthfAz7vSWq08SBxDgFz3dZC
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html data-lt-installed="true">
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body style="padding-bottom: 1px;">
    <p>Hi</p>
    <p>FYI</p>
    <p>Re:
<a class="moz-txt-link-rfc2396E" href="https://wiki.freebsd.org/action/info/PkgBase?action=diff&amp;rev2=94&amp;rev1=93">&lt;https://wiki.freebsd.org/action/info/PkgBase?action=diff&amp;rev2=94&amp;rev1=93&gt;</a><br>;
    </p>
    <p>The cat approach in the wiki was ambiguous, it failed for me as
      shown below. At the '&gt; ' prompt, I keyed Control-C to regain a
      normal prompt.</p>
    <p>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.)<br>
    </p>
    <p><span style="font-family:monospace"><span
          style="color:#000000;background-color:#ffffff;">root@macbookpro:/usr/local/etc/pkg/repos
          # sh
        </span><br>
        # cat &lt;&lt;EOF &gt;/usr/local/etc/pkg/repos/FreeBSD-base.conf
        <br>
        &gt;  <br>
        &gt; &gt; FreeBSD-base: {
        <br>
        &gt; &gt;   url:
        "pkg+https://pkg.FreeBSD.org/\${ABI}/base_release_0",
        <br>
        &gt; &gt;   mirror_type: "srv",
        <br>
        &gt; &gt;   signature_type: "fingerprints",
        <br>
        &gt; &gt;   fingerprints: "/usr/share/keys/pkg",
        <br>
        &gt; &gt;   enabled: yes
        <br>
        &gt; &gt; }
        <br>
        &gt; &gt; EOF
        <br>
        &gt;  <br>
        &gt;  <br>
        # file /usr/local/etc/pkg/repos/FreeBSD-base.conf
        <br>
        /usr/local/etc/pkg/repos/FreeBSD-base.conf: cannot open
        `/usr/local/etc/pkg/repos/FreeBSD-base.conf' (No such file or
        directory)
        <br>
        # exit<br>
        <br>
      </span></p>
  </body>
  <lt-container></lt-container>
</html>

--------------BthfAz7vSWq08SBxDgFz3dZC--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3b8b7151-5cc7-44d4-b945-1f546c9a3af6>