diff -r 71503088f51b -r f880f219c566 openpkg/mirror.pod --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/openpkg/mirror.pod Tue Jul 31 12:23:42 2012 +0200 @@ -0,0 +1,137 @@ +## +## mirror.pod -- OpenPKG Package Mirroring +## Copyright (c) 2011-2012 OpenPKG GmbH +## +## This software is property of the OpenPKG GmbH, DE MUC HRB 160208. +## All rights reserved. Licenses which grant limited permission to use, +## copy, modify and distribute this software are available from the +## OpenPKG GmbH. +## +## THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +=pod + +=head1 NAME + +B - B Package Mirroring + +=head1 SYNOPSIS + +B +B +[B<-h>] +[B<-f>] +[B<-q>] +[B<-C> I] +[B<-r> I] +[B<-p> I] +I ... + +=head1 DESCRIPTION + +The B tool is a frontend for mirroring OpenPKG +repositories, based on the OpenPKG XML/RDF index files B creates. The resulting mirror can then be used with +B. + +=head1 COMMAND LINE ARGUMENTS + +The following command line options and arguments exist: + +=over 4 + +=item B<-h> + +Print usage help. + +=item B<-f> + +Force deletion of local files, even if more than 30% of the existing +local files have to be removed. + +=item B<-q> + +More quiet operation, i.e., do not print interactive download progress +bars. + +=item B<-C> I + +Use the text-file I for caching size/mtime/MD5 +information of local files in order to especially avoid the expensive +re-calculation of MD5 message digests of local files on every mirror +operation. It is strongly advised to use such a cache. Do NOT place +I under I. + +=item B<-r> I + +The OpenPKG repository URL. By default the same URL as for B is used: C + +=item B<-p> I + +In case the I (option B<-r> above) points NOT to a +root/base directory of the remote repository, it is required to +provide the corresponding base directory I in +order to allow all remote paths to be correctly mapped to sub-paths +under I. By default I is +just I. For the public OpenPKG default repository URL +C the corresponding +I is C. + +=item I + +The local base directory under which the mirror is established. +Content-wise it directly corresponds to I (option +B<-p> above). + +=back + +=head1 EXAMPLE + +The following command mirrors the public OpenPKG-CURRENT repository +files from download.openpkg.org to the local directory F. The +prefix specification is important as the OpenPKG-CURRENT stack index +points upwards. + + $ openpkg mirror \ + -C download.cache \ + -r http://download.openpkg.org/stacks/current/source/ \ + -p http://download.openpkg.org/ \ + download/ + +The mirror now can be used with B: + + $ openpkg build \ + -r file://`pwd`/download/stacks/current/source/ \ + -Uaq | sh + +=head1 SEE ALSO + +index(8). + +=head1 HISTORY + +The B command was invented in May 2012 by I Erse@engelschall.comE for use inside the +B project Ehttp://www.openpkg.org/E. + +=head1 AUTHORS + + Ralf S. Engelschall + rse@engelschall.com + www.engelschall.com + +=cut +