]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r256968, r256971, r256978
authorbapt <bapt@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 29 Oct 2013 07:33:53 +0000 (07:33 +0000)
committerbapt <bapt@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 29 Oct 2013 07:33:53 +0000 (07:33 +0000)
commit25e368d72e048c2227ba0e620b75b72291147134
treea4dc1a314a9048d73cecca507572032d8f97e1b8
parent309bca1d0cff3774e54d9e3ef85acd0f6a3e65c7
MFC: r256968, r256971, r256978

Improve SRV records support for the pkg(8) bootstrap:
- order srv records by priorities
- for all entries of the same priority, order randomly respect the weight
- select the port where to fetch from respect the port provided in the SRV
record

Allow to bootstrap by doing pkg add ./a/path/to/a/pkg_package.txz

Approved by: re (glebius)

git-svn-id: svn://svn.freebsd.org/base/stable/10@257309 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/pkg/dns_utils.c
usr.sbin/pkg/dns_utils.h
usr.sbin/pkg/pkg.c