diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2013-10-29 18:36:44 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2013-10-29 18:36:44 +0000 |
commit | 7046958142fcbc1e0f447f73cf6049ffc395b5ca (patch) | |
tree | f40ea8ace6b95a21e03808d27d810254044c9a8f /usr.sbin/pkg/config.h | |
parent | 2d60d1851a80cfae2603a0ed8a5b19372d8b77ba (diff) | |
download | FreeBSD-src-7046958142fcbc1e0f447f73cf6049ffc395b5ca.zip FreeBSD-src-7046958142fcbc1e0f447f73cf6049ffc395b5ca.tar.gz |
MFC: r256770,r257142,r257145,r257146,r257147,r257148,
r257149,r257150,r257158,r257159,r257164,r257168,
r257193
- Support checking signature for pkg bootstrap from remote
and for 'pkg add ./pkg.txz'
- Be verbose on where pkg is being bootstrapped from.
- Add support for reading configuration files from /etc/pkg.
For now only /etc/pkg/FreeBSD.conf is supported.
- Add test package signing key fingerprint into /etc/keys/pkg/trusted.
- Disable fingerprint checking by default for now as the official
packages are not yet signed.
Approved by: bapt
Approved by: re (glebius)
Diffstat (limited to 'usr.sbin/pkg/config.h')
-rw-r--r-- | usr.sbin/pkg/config.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.sbin/pkg/config.h b/usr.sbin/pkg/config.h index c3d877e..72d2ec0 100644 --- a/usr.sbin/pkg/config.h +++ b/usr.sbin/pkg/config.h @@ -37,6 +37,8 @@ typedef enum { ABI, MIRROR_TYPE, ASSUME_ALWAYS_YES, + SIGNATURE_TYPE, + FINGERPRINTS, CONFIG_SIZE } pkg_config_key; @@ -45,6 +47,11 @@ typedef enum { PKG_CONFIG_BOOL, } pkg_config_t; +typedef enum { + CONFFILE_PKG=0, + CONFFILE_REPO, +} pkg_conf_file_t; + int config_init(void); void config_finish(void); int config_string(pkg_config_key, const char **); |