From 04ece80c9baa879b3f989f79e174b24bcd5e42cf Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Wed, 28 Sep 2005 13:44:36 +0000 Subject: Add a manpage for gendistrib(1) --- gendistrib | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 59 insertions(+), 2 deletions(-) (limited to 'gendistrib') diff --git a/gendistrib b/gendistrib index 5e3f854..e950a4d 100755 --- a/gendistrib +++ b/gendistrib @@ -419,8 +419,6 @@ gendistrib - generates a mirror tree for a distribution gendistrib [options] directory -=head1 DESCRIPTION - =head1 OPTIONS =over 4 @@ -493,8 +491,67 @@ Silent mode. =back +=head1 DESCRIPTION + +F is a tool that helps to generate the structure of a Mandriva +RPM repository, compatible with Mandriva tools (F, F, +etc.) + +=head2 General Structure of a Repository + +A typical repository, under a root directory F, has the following +structure: + + ROOT/ - media/ + |- contrib/ + | `- media_info/ + |- main/ + | `- media_info/ + `- media_info/ + +In this example, we have two media, called I
and I. The +RPMs packages are placed in the F
and F subdirectories. +Repository metadata is contained in the top-level F directory. +Per-media metadata are contained in the F
and +F subdirectories. + +=head2 Configuration of the distribution tree + +Before using F, you must create a file F +to describe your repository. (An empty file will work, but this isn't +recommended.) The syntax of this file is reminiscent of F<.ini> files. + +A first section C<[media_info]> contains global information about the +repository: + + [media_info] + version=2006.0 + branch=Cooker + arch=i586 + +Then, supply one section per media. + + [main] + hdlist=hdlist_main.cz + name=Main + +Here, the C parameter specifies what will be the name of the +hdlist file in the top-level F directory. C is a human +readable label for the media. + +=head2 Operation + +F should be passed the F directory as parameter. It will +then generate the hdlist and synthesis files and all other files needed +for proper repository operation. + +F will also verify any broken dependencies in your repository +and report them. + =head1 SEE ALSO +genhdlist(1) + =head1 COPYRIGHT Copyright (C) 1999-2005 Mandrakesoft -- cgit v1.2.1