PING : THE SOFTWARE DEPOT COOKBOOK : CREATING DEPOT FILES OR TAPES
Swpackage is also used to re-package existing software selections from an existing depot into a depot tape or file. For example, to re-package the "procmail" product from the depot directory, "/home/bass/depot", into a depot file, "/tmp/procmail.depot", use the following:
# swpackage -d /tmp/procmail.depot -x target_type=tape -s /home/bass/depot procmail
The addition of the "-x target_type=tape" forces swpackage to write the depot sequentially to the tape (or file) instead of creating a distribution directory.
To create a tape, substitute the file name given to the "-d" flag with the tape device:
# swpackage -d /dev/rmt/0m -x target_type=tape -s /home/bass/depot procmail
The "-d" argument may also be a pipe to a UNIX command, like so:
# swpackage -d "| gzip -c > /tmp/procmail.depot.gz" -x target_type=tape ...