CDPACK(1)

NAME
cdpack - produce multi-CD/DVD binary package images

SYNOPSIS
cdpack [-dnRVv] [-ac | -ec] [-af | -ef] [-dvd] [-h | --help] [-l logfile] [-m machine_architecture] [-o operating_system] [-r os_version] [-X extras_directory] [-x common_directory] packages_directory cd_image_directory

DESCRIPTION
The cdpack utility produces ISO 9660 image files for a multiple CD/DVD collection of binary packages.

The cdpack utility extracts the dependency information from the binary packages in the directory packages_directory specified on the command line. The dependency information is used to determine which packages are placed on which CD/DVD. The directory cd_image_directory is used as a staging area and the final ISO 9660 images are left in that directory. A file, .index, which lists the contents of each CD/DVD will be left in the root directory of each CD/DVD image. cdpack will look for files ending both in .tgz as well as .tbz when scanning the directory packages_directory for binary packages.

-ac Include binary packages marked as NO_BIN_ON_CDROM on the CD/DVD set. The default is to omit any packages which were marked as NO_BIN_ON_CDROM. This option should only be used when making a CD/DVD set for personal use and not for distribution unless you are sure you have not violated any licenses.

-af Include binary packages marked as NO_BIN_ON_FTP on the CD/DVD set. This option is enabled by default.

-d  Enable debugging by not deleting temporary files at the end of the run. These files are left in TMPDIR.

-dvd
    Create DVD sized images rather than the default CD-ROM sized images.

-ec Exclude packages marked as NO_BIN_ON_CDROM from the CD/DVD set. This is the default.

-ef Exclude packages marked as NO_BIN_ON_FTP from the CD/DVD set. The default is to allow packages which are NO_BIN_ON_FTP.

-h

- -help
    Displays a short usage message.

-l logfile
    Log the output of mkisofs -v -v to the file logfile.

-m machine_architecture
    Specifies machine_architecture as the target architecture for the binary packages in the generated README file.

-n  Do not duplicate packages in order to prevent inter-CD/DVD dependencies. The default without the -n option will place a package and all of its dependencies on the same CD/DVD. If a particular package is also required by pacakges on other CD/DVD's, it will be placed there as well. When the -n option is used packages are not duplicated. This results in slightly smaller ISO 9660 images. cdpack places packages which are lower in the dependency tree on lower numbered CD/DVD's and packages which are higher on the higher numbered CD/DVD's. In this fashion, a package on CD/DVD number n will have all of its dependencies on CD/DVD numbers 1 through n

-o operating_system
    Specifies operating_system as the target operating system for the binary packages in the generated README file.

-R  Generate a file, README.txt, which will be placed in the root directory of each CD/DVD image. This README file contains a small amount of information about the contents of the CD/DVD set.

-r os_version
    Specifies os_version as the target operating system version for the binary packages in the generated README file.

-V  Print the program version number and exit.

-v  Be verbose. Currently does not change things much.

-X directory
    Includes the contents of directory on the last CD/DVD in the set. This is useful for adding a pkgsrc.tar.gz tarball, i.e. a file which does not need to be on each CD/DVD.

-x directory
    Includes the contents of directory on each CD/DVD. This is useful for README files, etc., which you want to be present on each CD/DVD in the set.

EXIT STATUS

ENVIRONMENT
cdpack uses the fillowing environment variables if set.

AWK awk implementation to use. Defaults to “/usr/bin/awk”.

BZCAT
    bzcat implementation to use. Defaults to “/usr/bin/bzcat”.

GZCAT
    gzcat implementation to use. Defaults to “/usr/bin/gzcat”.

TMPDIR
    Directory for holding temporary files during the image creation. Defaults to “/tmp”.

EXAMPLES
This example takes all of the binary packages found in /usr/pkgsrc/packages/All and creates cd images in /u2/cdimages/cd{1,2,...}.iso. The directories /u2/cdimages/cd{1,2,...} are used to create the ISO 9660 layouts.
    cdpack /usr/pkgsrc/packages/All /u2/cdimages

To include a common set of files on all CD/DVD's, place them in a directory, /tmp/foo in this example, and pass in the directory name with the -x option.
    cdpack -x /tmp/foo /usr/pkgsrc/packages/All /u2/cdimages

SEE ALSO
cddist(1), mkisofs(1)

HISTORY
The cdpack utility first appeared in the NetBSD packages collection in April, 2001.

AUTHORS
-nosplit The cdpack utility was written by Dan McMahill <dmcmahill@NetBSD.org>. The idea of duplicating packages to eliminate inter-CD/DVD dependencies came from Todd Vierling <tv@NetBSD.org>.