From 30aa93f3f41c98f129f23106e736d911cbaaf902 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 2 May 2010 14:58:53 +0200 Subject: Update documentation --- man/5/caretaker.conf.pod | 82 ++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 66 insertions(+), 16 deletions(-) (limited to 'man/5') diff --git a/man/5/caretaker.conf.pod b/man/5/caretaker.conf.pod index bf625a7..5fbbc3a 100644 --- a/man/5/caretaker.conf.pod +++ b/man/5/caretaker.conf.pod @@ -20,25 +20,14 @@ The text in (braces) refers to the ct commandline option with which the config setting may be overridden (if present). The text in [these braces] is the default value. -=over - -=item B=(I I I<...>) (--packageroot I) - -the package root paths, at least one must be set. -I may either be of the form C or C, -the supported protocols are C and C. -Note that pushing is not possible when the C protocol is used. - -=item B=I [$PKG_PATH/pkglist] +=head2 GENERAL OPTIONS -path to pkglist on the package root, to generate the package list. -In the default, $PKG_PATH means the path component of $PKG_ROOT. +=over -=item B=I [0] +=item B=(I I I<...>) -If true, B will always be executed on the local machine, regardless -of where the B lies. For possible uses of this setting, see -L +The package roots to use, at least one must be set. +For the package root definitions, see below. =item B=I (--packagedir I) [$HOME/packages] @@ -100,6 +89,48 @@ Example: function pkg_hook_post-update {clear_line; echo "Hello from package $1! =back +=head2 ROOT-SPECIFIC OPTIONS + +Each package root is defined as a function, more precisely, +C<< function pkgroot_I { I } >>. +You need at least one package root, and it must be enabled by putting its +I into B (see above). + +The I consists of variables like above. + +=over + +=item B=I + +Protocol to use. May be anything understood by git, e.g. file, git, ssh, http, +etc. Note that by default only file and ssh are supported, for other protocols +you will have to write your own pkglist script + +=item B=I + +If B supports authentication, sets the login username. If +authentication is not required/supported, don't set this or leave it empty + +=item B=I + +Remote host to connect to. Leave empty if you use the "file" protocol + +=item B=I + +Absolute path in which your repositories are stored. E.g. +"/home/derf/var/packages_root" + +=item B=I [$PKG_PATH/pkglist] + +Path to the script generating the package list. + +=item B=I [0] + +If true, execute the package list on the local machine. Otherwise (e.g. wit +the ssh protocol) it will be executed on the remote host. + +=back + =head2 COLOURS Colours are defined in the same way as options. They take an ANSI escape code @@ -117,6 +148,25 @@ Colour for warning and error messages (default: red) =back +=head1 EXAMPLE + + PKG_ROOTS=(aneurysm) + + function pkgroot_aneurysm { + PKG_PROTO=ssh + PKG_HOST=aneurysm + PKG_PATH=${HOME}/var/packages_root + } + + # This will not be used, but may be enabled by appending it to the + # PKG_ROOTS array. In this case we use a custom list script which does not + # require PKG_USER / PKG_HOST / PKG_PATH to be set. + function pkgroot_github { + PKG_PROTO=https + PKGLIST_LOCAL=1 + PKGLIST_PATH=${HOME}/libexec/pkglist-github + } + =head1 SEE ALSO L(1), L(1) -- cgit v1.2.3