Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pkgproto(1M) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pkgmk(1M)

pkgparam(1M)

pkgtrans(1M)

pkgproto(1M)                                                   pkgproto(1M)

NAME
     pkgproto - generate a prototype file

SYNOPSIS
     pkgproto [-inx] [-c class] [path1[=path2] ...]

DESCRIPTION
     pkgproto scans the indicated paths and generates a prototype on stdout
     that may be used as input to the pkgmk command.

     Pathnames in a call to pkgproto must be in absolute form.

OPTIONS
     -i        Ignores symbolic links and records the paths as ftype=f (a
               file) versus ftype=s (symbolic link).

     -c        Maps the class of all paths to class.

     -n        Only path2 is entered in the prototype when calling with
               path1=path2 (except for links).

     -x        Attaches size, checksum, and modification time to every
               entry, i.e. output similar to pkgmap is created.

     path1     Pathname where objects are located.

     path2     Pathname which should be substituted on output for path1.

     If no paths are specified on the command line, standard input is
     assumed to be a list of paths. If the pathname listed on the command
     line is a directory, the contents of the directory is searched. How-
     ever, if input is read from stdin, a directory specified as a pathname
     will not be searched.






















Page 1                       Reliant UNIX 5.44                Printed 11/98

pkgproto(1M)                                                   pkgproto(1M)

EXAMPLE
     The following two examples show uses of pkgproto and a partial listing
     of the output produced.

     Example 1:

          $ pkgproto /usr/bin=bin /usr/usr/bin=usrbin /etc=etc
          f none bin/sed=/bin/sed 0775 bin bin
          f none bin/sh=/bin/sh 0755 bin daemon
          f none bin/sort=/bin/sort 0755 bin bin
          f none usrbin/sdb=/usr/bin/sdb 0775 bin bin
          f none usrbin/shl=/usr/bin/shl 4755 bin bin
          d none etc/master.d 0755 root daemon
          f none etc/master.d/kernel=/etc/master.d/kernel 0644 root daemon
          f none etc/rc=/etc/rc 0744 root daemon

     Example 2:

          $ find / -type d -print | pkgproto
          d none / 755 root root
          d none /usr 755 root root
          d none /usr/bin 775 bin bin
          d none /etc 755 root root
          d none /tmp 777 root root

NOTES
     By default, pkgproto creates symbolic link entries for any symbolic
     link encountered (ftype=s). When you use the -i option, pkgproto
     creates a file entry for symbolic links (ftype=f). The prototype file
     would have to be edited to assign such file types as "v" (volatile),
     "e" (editable), or "x" (exclusive directory). A file or directory with
     the access rights 000 has a ? entered as the mode. If you would like
     to actually install the file with the mode 000, ? must be changed to
     000. pkgproto detects linked files. If multiple files are linked
     together, the first path encountered is considered the source of the
     link.

SEE ALSO
     pkgmk(1M), pkgparam(1M), pkgtrans(1M).















Page 2                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026