aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg/config.h
Commit message (Collapse)AuthorAgeFilesLines
* MFC r326276:Eitan Adler2018-03-051-0/+2
| | | | | | | | | | | | | | | | | | | various: general adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/stable/11/; revision=330449
* Implement pubkey support for the bootstrapBaptiste Daroussin2015-09-081-0/+1
| | | | | | | | | | | | | | | | | Note that to not interfer with finger print it expects a signature on pkg itself which is named pkg.txz.pubkeysign To genrate it: echo -n "$(sha256 -q pkg.txz)" | openssl dgst -sha256 -sign /thekey \ -binary -out ./pkg.txz.pubkeysig Note the "echo -n" which prevent signing the '\n' one would get otherwise PR: 202622 MFC after: 1 week Notes: svn path=/head/; revision=287579
* Fix multi-repository support by properly respecting 'enabled' flag.Bryan Drewery2013-12-121-0/+2
| | | | | | | | | | | | | | | This will read the REPOS_DIR env/config setting (default is /etc/pkg and /usr/local/etc/pkg/repos) and use the last enabled repository. This can be changed in the environment using a comma-separated list, or in /usr/local/etc/pkg.conf with JSON array syntax of: REPOS_DIR: ["/etc/pkg", "/usr/local/etc/pkg/repos"] Approved by: bapt MFC after: 1 week Notes: svn path=/head/; revision=259266
* Support checking signature for pkg bootstrap.Bryan Drewery2013-10-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the pkg.conf is configured with SIGNATURE_TYPE: FINGERPRINTS, and FINGERPRINTS: /etc/keys/pkg then a pkg.sig file is fetched along with pkg.txz. The signature contains the signature provided by the signing server, and the public key. The .sig is the exact output from the signing server in the following format: SIGNATURE <openssl signed> CERT <rsa public key> END The signature is verified with the following logic: - If the .sig file is missing, it fails. - If the .sig doesn't validate, it fails. - If the public key in the .sig is not in the known trusted fingerprints, it fails. - If the public key is in the revoked key list, it fails. Approved by: bapt MFC after: 2 days Discussed by: bapt with des, jonathan, gavin Notes: svn path=/head/; revision=257147
* Add support for reading configuration files from /etc/pkg.Bryan Drewery2013-10-261-0/+5
| | | | | | | | | | | | | | | | | | | For now only /etc/pkg/FreeBSD.conf is supported. Its style is: Repo: { URL: "...", MIRROR_TYPE: "...", ... } The configuration will be read from /usr/local/etc/pkg.conf if exists, otherwise /etc/pkg/FreeBSD.conf Approved by: bapt MFC after: 2 days Notes: svn path=/head/; revision=257145
* Add support for using "pkg+http://" for the PACKAGESITE.Bryan Drewery2013-10-241-0/+1
| | | | | | | | | | | | | pkg 1.2 is adding this support as well. This should help lessen the confusion on why the default SRV PACKAGESITE does not load in a browser. Adapated from: matthew's upstream pkg change Approved by: bapt MFC after: 2 days Notes: svn path=/head/; revision=257051
* Add the ability to correctly read pkg.conf is exists.Baptiste Daroussin2013-03-051-0/+52
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 Notes: svn path=/head/; revision=247841