Disable cert verification for pkg-bootstrap when no cert.pem
authorAaron LI <aly@aaronly.me>
Thu, 12 Jul 2018 03:38:48 +0000 (11:38 +0800)
committerAaron LI <aly@aaronly.me>
Thu, 12 Jul 2018 03:38:48 +0000 (11:38 +0800)
commiteae13f14bc173e25f89316687afcc60dbd1fc5b0
treec885acad350a8a90ed2221b7bbcee0efe38e94b3
parent1014e37c0dbcf7bafaa4b981a9b5019e2bb52100
Disable cert verification for pkg-bootstrap when no cert.pem

Our site uses HTTPs and fetch(1) requires /etc/ssl/cert.pem or
/usr/local/etc/ssl/cert.pem to verify the server's certificate.
However, when one needs to bootstrap the 'pkg', that cert.pem
generally doesn't exist since it is installed by the ca_root_nss
package.  So disable certificate verification for fetch(1) in
such a case.

Split out 'pkg-bootstrap-{fetch,install}' targets to get rid of
some duplicate codes.
etc/Makefile.usr