1pkgproto(1)                      User Commands                     pkgproto(1)
2
3
4

NAME

6       pkgproto - generate prototype file entries for input to pkgmk command
7

SYNOPSIS

9       pkgproto [-i] [-c class] [path1]
10
11
12       pkgproto [-i] [-c class] [path1=path2]...
13
14

DESCRIPTION

16       pkgproto  scans  the  indicated  paths  and generates prototype(4) file
17       entries that may be used as input to the pkgmk(1) command.
18
19
20       If no paths are specified  on  the  command  line,  standard  input  is
21       assumed  to  be  a list of paths. If the pathname listed on the command
22       line is a directory,  the contents of the directory is  searched.  How‐
23       ever,  if input is read from stdin, a directory specified as a pathname
24       will not be searched.
25
26
27       Package commands, such as pkgproto, are largefile(5)-aware. They handle
28       files  larger  than  2 GB in the same way they handle smaller files. In
29       their current implementations, pkgadd(1M), pkgtrans(1) and other  pack‐
30       age commands can process a datastream of  up to 4 GB.
31

OPTIONS

33       -i          Ignores  symbolic links and records the paths as ftype=f (a
34                   file) versus ftype=s (symbolic link).
35
36
37       -c class    Maps the class of all paths to class.
38
39

OPERANDS

41       path1    Pathname where objects are located.
42
43
44       path2    Pathname which should be substituted on output for path1.
45
46

EXAMPLES

48       Example 1 Basic Usage
49
50
51       The following example shows a common usage of pkgproto  and  a  partial
52       listing of the output produced.
53
54
55         example% pkgproto /bin=bin /usr/bin=usrbin /etc=etc
56         f none bin/sed=/bin/sed 0775 bin bin
57         f none bin/sh=/bin/sh 0755 bin daemon
58         f none bin/sort=/bin/sort 0755 bin bin
59         f none usrbin/sdb=/usr/bin/sdb 0775 bin bin
60         f none usrbin/shl=/usr/bin/shl 4755 bin bin
61         d none etc/master.d 0755 root daemon
62         f none etc/master.d/kernel=/etc/master.d/kernel 0644 root daemon
63         f none etc/rc=/etc/rc 0744 root daemon
64
65
66
67       Example 2 Using pkgproto in a Pipeline
68
69
70       The  following  command shows pkgproto accepting the output of the find
71       command.
72
73
74         example% find / -type d -print | pkgproto
75         d none / 755 root root
76         d none /bin 755 bin bin
77         d none /usr 755 root root
78         d none /usr/bin 775 bin bin
79         d none /etc 755 root root
80         d none /tmp 777 root root
81
82
83

EXIT STATUS

85       0     Successful completion.
86
87
88       >0    An error occurred.
89
90

ATTRIBUTES

92       See attributes(5) for descriptions of the following attributes:
93
94
95
96
97       ┌─────────────────────────────┬─────────────────────────────┐
98       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
99       ├─────────────────────────────┼─────────────────────────────┤
100       │Availability                 │SUNWcsu                      │
101       └─────────────────────────────┴─────────────────────────────┘
102

SEE ALSO

104       pkgmk(1),   pkgparam(1),   pkgtrans(1),    pkgadd(1M),    prototype(4),
105       attributes(5), largefile(5)
106
107
108       Application Packaging Developer's Guide
109

NOTES

111       By  default,  pkgproto  creates  symbolic link entries for any symbolic
112       link encountered (ftype=s). When you use the -i option,  pkgproto  cre‐
113       ates  a  file entry for symbolic links (ftype=f). The prototype(4) file
114       would have to be edited to assign such file types as  v  (volatile),  e
115       (editable),  or x (exclusive directory). pkgproto detects linked files.
116       If multiple files are linked together, the first  path  encountered  is
117       considered the source of the link.
118
119
120       By  default,  pkgproto prints prototype entries on the standard output.
121       However, the output should be saved in a file (named Prototype or  pro‐
122       totype, for convenience) to be used as input to the pkgmk(1) command.
123
124
125
126SunOS 5.11                        30 Oct 2007                      pkgproto(1)
Impressum