]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add the ability to correctly read pkg.conf is exists.
authorbapt <bapt@FreeBSD.org>
Tue, 5 Mar 2013 13:31:06 +0000 (13:31 +0000)
committerbapt <bapt@FreeBSD.org>
Tue, 5 Mar 2013 13:31:06 +0000 (13:31 +0000)
commit94bcfee7d03e5cb5f1dcc2ad73cea265c42f8dcc
treee64f6994c4e29f7642d77ef29d6261923ef6d8cc
parent75fa845336bfbd8edfd6c7babd608b10ca5fe89c
Add the ability to correctly read pkg.conf is exists.

Only look for boostrap useful options:
 - PACKAGESITE
 - ABI
 - MIRROR_TYPE
 - ASSUME_ALWAYS_YES

While here makes PACKAGESITE expand the ${ABI} variable.
Allow to deactivate any SRV record look up (MIRROR_TYPE=none)
Use the same mechanism as for pkgng itself: first get configuration out of
environment variable and fallback on pkg.conf if exists.

Reviewed by: bdrewery
usr.sbin/pkg/Makefile
usr.sbin/pkg/config.c [new file with mode: 0644]
usr.sbin/pkg/config.h [new file with mode: 0644]
usr.sbin/pkg/pkg.c