- online man pages   

SunOS man pages : pkgmk (1)

User Commands                                            pkgmk(1)


pkgmk - produce an installable package


pkgmk [ -o ] [ -a arch ] [ -b base_src_dir ] [ -d device ] [ -f prototype ] [ -l limit ] [ -p pstamp ] [ -r root_path ] [ -v version ] [ variable=value ... ] [ pkginst ]


pkgmk produces an installable package to be used as input to the pkgadd(1M) command. The package contents will be in directory structure format. The command uses the package prototype(4) file as input and creates a pkgmap(4) file. The contents for each entry in the prototype file is copied to the appropriate output location. Information concerning the contents (checksum, file size, modification date) is computed and stored in the pkgmap file, along with attribute information specified in the prototype file.


The following options are supported: -o Overwrite the same instance; package instance will be overwritten if it already exists. -a arch Override the architecture information provided in the pkginfo(4) file with arch. -b base_src_dir Prepend the indicated base_src_dir to locate relocat- able objects on the source machine. -d device Create the package on device. device can be an abso- lute directory pathname or the identifiers for a floppy disk or removable disk (for example, /dev/diskette). The default device is the installation spool directory (/var/spool/pkg). -f prototype Use the file prototype as input to the command. The default prototype filename is [Pp]rototype. -l limit Specify the maximum size in 512 byte blocks of the output device as limit. By default, if the output file is a directory or a mountable device, pkgmk will employ the df(1M) command to dynamically calculate the SunOS 5.8 Last change: 15 Aug 1997 1 User Commands pkgmk(1) amount of available space on the output device. This option is useful in conjunction with pkgtrans(1) to create a package with a datastream format. -p pstamp Override the production stamp definition in the pkginfo(4) file with pstamp. -r root_path Ignore destination paths in the prototype(4) file. Instead, use the indicated root_path with the source pathname appended to locate objects on the source machine, using a comma (,) as the separator for the path elements. -v version Override the version information provided in the pkginfo(4) file with version. variable=value Place the indicated variable in the packaging environ- ment. (See prototype(4) for definitions of variable specifications.)


The following operand is supported: pkginst A package designation by its instance. An instance can be the package abbreviation or a specific instance (for example, inst.1 or inst.2). All instances of a package can be requested by inst.*. The asterisk char- acter (*) is a special character to some shells and may need to be escaped. In the C-Shell, "*" must be surrounded by single quotes (') or preceded by a backslash (\).


The following exit values are returned: 0 Successful completion. >0 An error occurred.


See attributes(5) for descriptions of the following attri- butes: SunOS 5.8 Last change: 15 Aug 1997 2 User Commands pkgmk(1) ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Availability | SUNWcsu | |_____________________________|_____________________________|


pkgparam(1), pkgproto(1), pkgtrans(1), uname(1), df(1M), pkgadd(1M), pkginfo(4), pkgmap(4), prototype(4), attributes(5) Application Packaging Developer's Guide


Architecture information is provided on the command line with the -a option or in the prototype(4) file. If no archi- tecture information is supplied, pkgmk uses the output of uname -m (see uname(1)). Version information is provided on the command line with the -v option or in the pkginfo(4) file. If no version informa- tion is supplied, a default based on the current date will be provided. Command line definitions for both architecture and version override the prototype(4) definitions. SunOS 5.8 Last change: 15 Aug 1997 3