.\" .\" CDDL HEADER START .\" .\" The contents of this file are subject to the terms of the .\" Common Development and Distribution License (the "License"). .\" You may not use this file except in compliance with the License. .\" .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE .\" or http://www.opensolaris.org/os/licensing. .\" See the License for the specific language governing permissions .\" and limitations under the License. .\" .\" When distributing Covered Code, include this CDDL HEADER in each .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. .\" If applicable, add the following below this CDDL HEADER, with the .\" fields enclosed by brackets "[]" replaced with your own identifying .\" information: Portions Copyright [yyyy] [name of copyright owner] .\" .\" CDDL HEADER END .\" Copyright 1989 AT&T Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved .\" Portions Copyright (c) 2007 Gunnar Ritter, Freiburg i. Br., Germany .\" .\" Sccsid @(#)pkgproto.1 1.8 (gritter) 2/25/07 .\" .\" from OpenSolaris pkgproto 1 "6 Nov 2000" "SunOS 5.11" "User Commands" .TH PKGPROTO 1 "2/25/07" "Heirloom Packaging Tools" "User Commands" .SH NAME pkgproto \- generate prototype file entries for input to pkgmk command .SH SYNOPSIS .HP .ad l .PD 0 .nh \fBpkgproto\fR [\fB\-i\fR] [\fB\-c\fR \fIclass\fR] [\fIpath1\fR] .HP .PD 0 .ad l \fBpkgproto\fR [\fB\-i\fR] [\fB\-c\fR \fIclass\fR] [\fIpath1=path2\fR]... .br .PD .ad b .hy 1 .SH DESCRIPTION \fBpkgproto\fR scans the indicated paths and generates .IR prototype (5) file entries that may be used as input to the .IR pkgmk (1) command. .PP 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. However, if input is read from \fBstdin\fR, a directory specified as a pathname will not be searched. .TP 10 .B \-i Ignores symbolic links and records the paths as \fBftype\fR=\fBf\fR (a file) versus \fBftype\fR=\fBs\fR (symbolic link). .TP \fB\-c\fR\fI class\fR Maps the class of all paths to \fIclass\fR. .TP 10 \fB\fIpath1\fR Pathname where objects are located. .TP \fB\fIpath2\fR Pathname which should be substituted on output for \fIpath1\fR. .SH EXAMPLES \fBExample 1 \fRExamples of the use of \fBpkgproto.1\fR. .LP The following two examples show uses of \fBpkgproto\fR and a partial listing of the output produced. .PP Example 1: .PP .RS .nf \fB$ pkgproto\fR\fB /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/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 \fR .fi .RE .PP Example 2: .PP .RS .nf \fB$ find / \fR\fB\-type\fR\fB d \fR\fB\-print\fR\fB | 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\fR .fi .RE .SH SEE ALSO .IR pkgmk (1), .IR pkgparam (1), .IR pkgtrans (1), .IR prototype (5) .SH NOTES By default, \fBpkgproto\fR creates symbolic link entries for any symbolic link encountered (\fBftype\fR=\fBs\fR). When you use the \fB\-i\fR option, \fBpkgproto\fR creates a file entry for symbolic links (\fBftype\fR=\fBf\fR). The .IR prototype (5) file would have to be edited to assign such file types as \fBv\fR (volatile), \fBe\fR (editable), or \fBx\fR (exclusive directory). \fBpkgproto\fR detects linked files. If multiple files are linked together, the first path encountered is considered the source of the link. .PP By default, \fBpkgproto\fR prints prototype entries on the standard output. However, the output should be saved in a file (named \fBPrototype\fR or \fBprototype\fR, for convenience) to be used as input to the .IR pkgmk (1) command.