pkgproto(1) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

pkgproto(1)

pkgproto(1)                      User Commands                     pkgproto(1)

NAME
       pkgproto - generate SVR4 package prototype file entries for pkgmk

SYNOPSIS
       pkgproto [-i] [-c class] [path1]


       pkgproto [-i] [-c class] [path1=path2]...

DESCRIPTION
       pkgproto  scans the indicated paths and generates prototype(5) file en‐
       tries that may be used as input to the pkgmk(1) command for building an
       SVR4 package.


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

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


       -c class    Maps the class of all paths to class.


OPERANDS
       path1    Pathname where objects are located.


       path2    Pathname which should be substituted on output for path1.


EXAMPLES
       Example 1 Basic Usage




       The following example shows a common usage of pkgproto  and  a  partial
       listing of the output produced.


         example% pkgproto /bin=bin /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/config.d 0755 root daemon
         f none etc/config.d/kernel=/etc/config.d/kernel 0644 root daemon
         f none etc/rc=/etc/rc 0744 root daemon


       Example 2 Using pkgproto in a Pipeline



       The  following  command shows pkgproto accepting the output of the find
       command.


         example% find / -type d -print | pkgproto
         d none / 755 root root
         d none /bin 755 bin bin
         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


EXIT STATUS
       0     Successful completion.


       >0    An error occurred.


USAGE
       The pkgproto command is used to create prototype files for legacy  SVR4
       packages  as  were used for Solaris 10 and older releases. Packages for
       Solaris 11 and later releases should use the  IPS  package  system  in‐
       stead.  See the generate subcommand of pkgsend(1) for similar function‐
       ality in IPS.

ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

       tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE  TYPEAT‐
       TRIBUTE VALUE _ Availabilitypackage/svr4


SEE ALSO
       pkgmk(1),   pkgparam(1),   pkgtrans(1),   prototype(5),  attributes(7),
       pkgadd(8)

NOTES
       By default, pkgproto creates symbolic link  entries  for  any  symbolic
       link  encountered  (ftype=s). When you use the -i option, pkgproto cre‐
       ates a file entry for symbolic links (ftype=f). The  prototype(5)  file
       would  have  to  be edited to assign such file types as v (volatile), e
       (editable), or x (exclusive directory). pkgproto detects linked  files.
       If  multiple  files  are linked together, the first path encountered is
       considered the source of the link.


       By default, pkgproto prints prototype entries on the  standard  output.
       However,  the output should be saved in a file (named Prototype or pro‐
       totype, for convenience) to be used as input to the pkgmk(1) command.

HISTORY
       The pkgproto utility, including support for the -c and -i options,  was
       added to Solaris in Solaris 2.0.

Oracle Solaris 11.4               3 Jan 2025                       pkgproto(1)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3