Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Dec 2021 15:47:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 260518] ports-mgmt/fastest_pkg consider using a pkg+http:// or pkg+https:// (etc.) URL scheme
Message-ID:  <bug-260518-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260518

            Bug ID: 260518
           Summary: ports-mgmt/fastest_pkg consider using a pkg+http:// or
                    pkg+https:// (etc.) URL scheme
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://github.com/ehaupt/fastest_pkg/blob/5bd4e8c1794
                    cfaa7e0a3231a50568b14e021417d/fastest_pkg#L139
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ehaupt@FreeBSD.org
          Reporter: grahamperrin@gmail.com
             Flags: maintainer-feedback?(ehaupt@FreeBSD.org)
          Assignee: ehaupt@FreeBSD.org

<https://github.com/ehaupt/fastest_pkg/blob/5bd4e8c1794cfaa7e0a3231a50568b1=
4e021417d/fastest_pkg#L139>=20
exemplifies http://=20

>             'FreeBSD: { url: "http://%s/${ABI}/latest" }'


>From the manual page for pkg.conf(5):=20

> =E2=80=A6 Where MIRROR_TYPE is SRV, you should use a pkg+http:// or pkg+h=
ttps://=20
> (etc.) URL scheme. =E2=80=A6

<https://www.freebsd.org/cgi/man.cgi?query=3Dpkg.conf&sektion=3D5&manpath=
=3DPorts#REPOSITORY_CONFIGURATION>

----

A working pkg+http:// example
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D

% uclcmd get --file /usr/local/etc/pkg/repos/FreeBSD.conf FreeBSD.url
"pkg+http://pkg0.bme.freebsd.org/${ABI}/latest"
% uclcmd get --file /usr/local/etc/pkg/repos/FreeBSD.conf FreeBSD.mirror_ty=
pe
null
% uclcmd get --file /etc/pkg/FreeBSD.conf FreeBSD.mirror_type
"srv"
% sudo pkg update -f -r FreeBSD
Updating FreeBSD repository catalogue...
Fetching meta.conf: 100%    163 B   0.2kB/s    00:01=20=20=20=20
Fetching packagesite.pkg: 100%    6 MiB   6.6MB/s    00:01=20=20
=E2=80=A6

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260518-7788>