New custom configuration file format that does not need confuse.

This commit is contained in:
Juan RP
2014-02-25 16:42:52 +01:00
parent 1ad01b952a
commit f74bf1c1c8
13 changed files with 388 additions and 324 deletions

View File

@@ -1,58 +1,56 @@
# Configuration file for XBPS.
# ============================
#
# Root directory.
#RootDir = /
#
# Cache directory to store downloaded binary packages.
# If string begins with '/' it will be treated as full path,
# otherwise it will be treated as relative to the root-directory.
#CacheDir = var/cache/xbps
#
# Default global limit of cached connections when fetching files.
#FetchCacheConnections = 10
#
# Default per-host limit of cached connections when fetching files.
#FetchCacheConnectionsPerHost = 3
#
# Default timeout limit for connections, in seconds.
#FetchTimeoutConnection = 30
#
# Enable syslog messages, set the value to false or 0 to disable.
#Syslog = true
# - Lines starting with # are ignored.
# - Values are set after the equal sign, and don't accept blanks nor newlines.
# Repositories.
#
# You can specify here your list of repositories, the first
# repository matching a package expression will be used for most
# targets in xbps-install(8) and xbps-query(8).
#
# Optionally a non default HTTP port can also be specified such as:
# http://foo.local:8080/xbps-repo
#
# By default we use the official "public" repositories. You can add
# your own repositories by specifying the path to the directory
# where the <arch>-repodata file is stored.
#
# Repositories not matching the host architecture are simply ignored.
#
repositories = {
http://repo.voidlinux.eu/current,
#http://repo.voidlinux.eu/current/nonfree,
#
# MIRRORS
#
#http://xbps.nopcode.org/repos/current,
#http://xbps.nopcode.org/repos/current/nonfree
}
# Set root directory, by default set to /. This expects an absolute path.
#rootdir=/
# Virtual packages.
# Set cache directory, if starts with / it's an absolute path,
# otherwise it's relative to rootdir.
#cachedir=var/cache/xbps
# comment it out to disable syslog logging.
syslog=true
## REPOSITORIES
#
# The following syntax is used:
# virtual-package <realpkgname> { targets = <virtualpkgname-version> }
# Local or remote repositories are accepted.
#
# If a package supports multiple virtual packages these can be
# specified in the 'targets' option such as:
# - Local repositories expect an absolute path to the directory that stores
# the <arch>-repodata file.
# - Accepted protocols for remote repositories: ftp, http or https.
# - Repositories are added in the order in which are specified (top->bottom).
#
# virtual-package foo { targets = blah-0, baz-1, ... }
repository=http://repo.voidlinux.eu/current
# Uncomment this one for "non-free" packages.
#repository=http://repo.voidlinux.eu/current/nonfree
# REPOSITORY MIRRORS
#repository=http://xbps.nopcode.org/repos/current
#repository=http://xbps.nopcode.org/repos/current/nonfree
## VIRTUAL PACKAGES
#
# Virtual package overrides. You can set your own list of preferred virtual
# packages in your system. This expects two arguments separated by a colon:
# <vpkgver>:<realpkgname>.
#
# - <vpkgver> means "virtual package name" and "version/revision"
# separated by a dash, i.e 'foo-1.0_1".
# - <realpkgname> means a real package name (without any version).
#
# By default we prefer the `dcron` package as default cron daemon.
virtualpkg=cron-daemon-0_1:dcron
# Sets the virtual package directory looking for .conf files with
# virtual package settings.
#
# If starts with / it's an absolute path, otherwise it's relative to rootdir.
# By default it's set to <rootdir>/etc/xbps/virtualpkg.d.
#virtualpkgdir=etc/xbps/virtualpkg.d
# You can also include additional files by using the "include" keyword.
# This expects an absolute path to a file.
#include=/path/to/another/file.conf