Baptiste Daroussin
959bd87986
Fix build with gcc
...
MFC after: 3 days
2013-10-23 15:29:42 +00:00
Baptiste Daroussin
35e07a7a52
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
Obtained from: pkg git repo
MFC after: 3 days
2013-10-23 14:06:07 +00:00
Baptiste Daroussin
8ad6d9175c
Fix a bad calloc(3) call
...
MFC after: 2 weeks
2013-06-08 23:48:13 +00:00
Baptiste Daroussin
8cc0ef19d2
Directly uses calloc(3) instread of malloc(3) + memset(3)
...
Reported by: Jeremy Chadwick <jdc@koitsu.org>
MFC after: 3 days
2013-01-14 07:17:38 +00:00
Baptiste Daroussin
29aaa96159
if PACKAGESITE url scheme is not 'file://', always try to revolv SRV records and
...
use them if any. It allows the bootstrap to use directly pkg.FreeBSD.org instead
of pkgbeta.FreeBSD.org
MFC after: 1 month
2012-12-05 11:35:50 +00:00