This directory contains the packaging and preparation code for the
various open source components destined for OSR5, UW7 and Legend.
The input for these scripts ar the virgin handoffs from a
'make install' for all of the respective packages. These scripts
can create packages for:

   Standalone installation on OSR5
   Standalone installation on UnixWare 7.1.4
   Standalone installation on OSR6

In order for these scripts to work, you need the 'dist' directory
correctly populated. For a full packaging run, the following files
are needed:

   dist/uw7/gwxlibs.cpio      UnixWare 7.1.4 built GWXLIBS
   dist/uw7/xorg.cpio         UnixWare 7.1.4 built XOrg
   dist/uw7/perl.cpio         UnixWare 7.1.4 built Perl
   dist/uw7/apache.cpio       UnixWare 7.1.4 built Apache
   dist/uw7/extshells.cpio    UnixWare 7.1.4 built extshells
   dist/uw7/vim.cpio          UnixWare 7.1.4 built VIM
   dist/uw7/vim.cpio          UnixWare 7.1.4 built VIM
   dist/uw7/openssh.cpio      UnixWare 7.1.4 built OpenSSH
   dist/osr5/gwxlibs.cpio     OpenServer 5.0.7 built GWXLIBS
   dist/osr5/xorg.cpio        OpenServer 5.0.7 built XOrg
   dist/osr5/perl.cpio        OpenServer 5.0.7 built Perl
   dist/osr5/apache.cpio      OpenServer 5.0.7 built Apache
   dist/osr5/extshells.cpio   OpenServer 5.0.7 built extshells
   dist/osr5/vim.cpio         OpenServer 5.0.7 built VIM
   dist/osr5/openssh.cpio     OpenServer 5.0.7 built OpenSSH

These files must unwind to specific paths:
   uw7/gwxlibs.cpio and osr5/gwxlibs.cpio
    Must both expand to a directory gwxlibs/, which contains the
    sub-packages (gwxlibs, tcl, expect etc)
  uw7/xorg.cpio and osr5/xorg.cpio
    Must both expand to a directory xorg/, which contains the full
    XOrg distribution as produced by 'make install' and 'make install.man'.
  uw7/perl.cpio and osr5/perl.cpio
    Must both expand to a directory perl/ which contains the directories
    perl (the result of the main perl interpreter make install) and
    perlext (the result of make install on all of the perl extensions)
  uw7/apache.cpio and osr5/apache.cpio
    Must both expand to a directory apache/ which contains the various
    subpackages (apache/ for the Apache web server itself, modperl for
    all of the modperl modules, perlASP for the perl ASP support, php4
    for PHP, and AxKit for the perl AxKit package).
  uw7/extshells.cpio and osr5/extshells.cpio
    Must both expand to a directory extshells which contains the
    extended shells, one per directory (bash, tcsh, zsh).
  uw7/vim.cpio and osr5/vim.cpio
    Must both expand to a directory vim which contains the full ViM
    distribution as produced by make install.
  uw7/openssh.cpio and osr5/openssh.cpio
    Must both expand to a directory openssh, which contains two
    directories: openssh for OpenSSH itself, and prngd for the
    PRNGD distribution.

With all of these archives in place, you can run the mklegend script
to create the packages you choose. This script takes one or more
arguments of the OSes to package for. By default, it will package for
all three.  Use 'osr5' for just OSR5, 'osr6' for Legend, or 'uw7' for
UnixWare 7. For example: mklegend osr5 will package just for OSR5.

HOW TO POPULATE THIS DIRECTORY BEFORE A PACKAGING RUN
=====================================================
1.  Build GWXLIBS on OSR5.
2.  Create a cpio of the install directory and put it in dist/osr5/gwxlibs.cpio
3.  Build XORG on OSR5
4.  Create a cpio of the install directory and put it in dist/osr5/xorg.cpio
5.  Build Perl on OSR5
6.  Create a cpio of the install directory and put it in dist/osr5/perl.cpio
7.  Build Apache on OSR5
8.  Create a cpio of the install directory and put it in dist/osr5/apache.cpio
9.  Build extshells on OSR5
10. Create a cpio of the install directory and put it in
    dist/osr5/extshells.cpio
11. Build VIM on OSR5
12. Create a cpio of the install directory and put it in dist/osr5/vim.cpio
13. Build OpenSSH and PRNGD on OSR5
14. Create a cpio of the install directory and put it in dist/osr5/openssh.cpio
15. Repeat all of the above on UnixWare 7.1.4MP2, and change the paths from
    osr5 to uw7 in the above instructions.
16. Copy *.gwxlibs from the gwxlibs bldtools/packaging directory to
    the data/ directory. Note that these apply to both OSR5 and UW7 now.
17. Copy *.perl from the perl CDMT directory to the data/ directory. Note
    that these apply to both OSR5 and UW7 now.
18. Copy *.apache from the Apache CDMT directory to the data/ directory. Note
    that these apply to both OSR5 and UW7 now.
19. Copy *.xorg and the xorg directory from the X.Org packaging directory
    to the data/ directory. Note that these apply to both OSR5 and UW7 now.
20. Copy the *.vim files from the packaging directory to the data/ directory.
    These apply to both OSR5 and UW7.
21. Copy the *.openssh files from the OpenSSH packaging directory to the
    data/ directory. These apply to both OSR5 and UW7.
22. Run the mklegend script.

Note that some additional packaging files are provided along with this
script, they are not part of the individual source archives (all of the
stuff in data/common).
