When does a newly committed port become installable via 'pkg'?

Mike Clarke jmc-freebsd2 at milibyte.co.uk
Sun Jan 28 22:21:06 UTC 2018


On Sunday 28 Jan 2018 17:01:09 James E Keenan wrote:
> Thanks.  Upon reading 'man 5 pkg.conf', which identified the system-wide 
> configuration file as being located as /etc/pkg/FreeBSD.conf.  That file 
> does contain this entry:
> 
> #####
> url: "pkg+http://pkg.FreeBSD.org/${ABI}/quarterly",
> #####
> 
> That file also states that to modify that file, create a new file as:
> 
> #####
> /usr/local/etc/pkg/repos/FreeBSD.conf
> #####
> 
> I have done so, and in that file I have placed this entry:
> 
> ####
> FreeBSD: {
>    url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
>    mirror_type: "srv",
>    signature_type: "fingerprints",
>    fingerprints: "/usr/share/keys/pkg",
>    enabled: yes
> }
> #####
> 
> Should that suffice?

That would work but it's better to leave /etc/pkg/FreeBSD.conf untouched and create 
/usr/local/etc/pkg/repos/FreeBSD.conf with the following:

FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
}

That way your setting doesn't get wiped out with the next update to base.

-- 
Mike Clarke


More information about the freebsd-ports mailing list