Added support for system/config virtualpkg.d directories.

The system virtualpkg directory set to <rootdir>/usr/share/xbps/virtualpkg.d contains
virtualpkg configuration files (.conf/.vpkg) that can be overrided by the admin
in <rootdir>/etc/xbps/virtualpkg.d bearing the same file name.

This obsoletes the "virtualpkgdir" keyword support from the xbps configuration file.
This commit is contained in:
Juan RP
2014-05-31 07:05:57 +02:00
parent 387987b146
commit 776865b548
4 changed files with 79 additions and 55 deletions

View File

@@ -48,7 +48,7 @@
*
* This header documents the full API for the XBPS Library.
*/
#define XBPS_API_VERSION "20140530"
#define XBPS_API_VERSION "20140531"
#ifndef XBPS_VERSION
#define XBPS_VERSION "UNSET"
@@ -578,14 +578,6 @@ struct xbps_handle {
* If unset, defaults to \a XBPS_CACHE_PATH (relative to rootdir).
*/
char metadir[XBPS_MAXPATH-1];
/**
* @var virtualpkgdir
*
* Virtual packages directory, with configuration files to override
* system virtual packages.
* If unset, defaults to \a XBPS_VPKG_PATH (relative to rootdir).
*/
char virtualpkgdir[XBPS_MAXPATH-1];
/**
* @var native_arch
*