man: add some pkgsrc pages; no more minix diff manpage
This commit is contained in:
+4
-3
@@ -1,9 +1,9 @@
|
||||
MAN= acd.1 anm.1 ar.1 ash.1 asize.1 at.1 banner.1 basename.1 \
|
||||
bsfilt.1 cal.1 \
|
||||
calendar.1 cat.1 cawf.1 cc.1 cdiff.1 chgrp.1 \
|
||||
calendar.1 cat.1 cawf.1 cc.1 chgrp.1 \
|
||||
chmem.1 chmod.1 cksum.1 clear.1 cmp.1 comm.1 compress.1 \
|
||||
cp.1 crc.1 crontab.1 ctags.1 dd.1 dev2name.1 \
|
||||
df.1 dhrystone.1 diff.1 dosdir.1 dosread.1 doswrite.1 du.1 \
|
||||
df.1 dhrystone.1 dosdir.1 dosread.1 doswrite.1 du.1 \
|
||||
dumpcore.1 easypack.1 echo.1 ed.1 eject.1 elvis.1 elvrec.1 \
|
||||
env.1 expand.1 expr.1 factor.1 file.1 \
|
||||
finger.1 flexdoc.1 fmt.1 fold.1 format.1 fortune.1 \
|
||||
@@ -23,7 +23,8 @@ MAN= acd.1 anm.1 ar.1 ash.1 asize.1 at.1 banner.1 basename.1 \
|
||||
term.1 termcap.1 tget.1 time.1 top.1 tr.1 true.1 \
|
||||
truncate.1 tsort.1 tty.1 umount.1 uname.1 unexpand.1 uniq.1 \
|
||||
urlget.1 uud.1 uue.1 vol.1 wc.1 whereis.1 which.1 \
|
||||
who.1 whoami.1 write.1 xargs.1 yap.1 yes.1
|
||||
who.1 whoami.1 write.1 xargs.1 yap.1 yes.1 linkfarm.1 pkg_view.1
|
||||
|
||||
|
||||
.include <bsd.man.mk>
|
||||
.include <bsd.subdir.mk>
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
.TH DIFF 1
|
||||
.SH NAME
|
||||
diff \- print differences between two files
|
||||
.SH SYNOPSIS
|
||||
\fBdiff \fR [\fB\-c \fR|\fB \-e \fR|\fB \-C \fIn\fR\] [\fB\-br\fR]\fIfile1 file2\fR\fR
|
||||
.br
|
||||
.de FL
|
||||
.TP
|
||||
\\fB\\$1\\fR
|
||||
\\$2
|
||||
..
|
||||
.de EX
|
||||
.TP 20
|
||||
\\fB\\$1\\fR
|
||||
# \\$2
|
||||
..
|
||||
.SH OPTIONS
|
||||
.FL "\-C \fIn" "Produce output that contains \fIn\fR lines of context"
|
||||
.FL "\-b" "Ignore white space when comparing"
|
||||
.FL "\-c" "Produce output that contains three lines of context"
|
||||
.FL "\-e" "Produce an \fIed\fR-script to convert \fIfile1\fR into \fIfile2\fR"
|
||||
.FL "\-r" "Apply \fIdiff\fR recursively to files and directories of the same name, when \fIfile1\fR and \fIfile2\fR are both directories"
|
||||
.SH EXAMPLES
|
||||
.EX "diff file1 file2" "Print differences between 2 files"
|
||||
.EX "diff -C 0 file1 file2" "Same as above"
|
||||
.EX "diff -C 3 file1 file2" "Output three lines of context with every difference encountered"
|
||||
.EX "diff -c file1 file2" Same as above"
|
||||
.EX "diff /etc /dev" "Compares recursively the directories \fI/etc\fR and \fI/dev\fR"
|
||||
.EX "diff passwd /etc" "Compares \fI./passwd\fR to \fI/etc/passwd"
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
\fIDiff\fR compares two files and generates a list of lines telling how
|
||||
the two files differ. Lines may not be longer than 128 characters.
|
||||
If the two arguments on the command line are both directories,
|
||||
\fIdiff\fR recursively steps through all subdirectories comparing
|
||||
files of the same name. If a file name is found only in one directory,
|
||||
a diagnostic message is written to \fIstdout\fR. A file that is of
|
||||
either block special, character special or FIFO special type, cannot
|
||||
be compared to any other file.
|
||||
On the other hand, if there is one directory and one file given on the
|
||||
command line, \fIdiff\fR tries to compare the file with the same name
|
||||
as \fIfile\fR in the directory \fIdirectory\fR.
|
||||
.SH "SEE ALSO"
|
||||
.BR cdiff (1),
|
||||
.BR cmp (1),
|
||||
.BR comm (1),
|
||||
.BR patch (1).
|
||||
@@ -0,0 +1,148 @@
|
||||
.\" $NetBSD: linkfarm.1,v 1.6 2009/02/08 23:11:56 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2003 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
.\" are met:
|
||||
.\" 1. Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\" 3. All advertising materials mentioning features or use of this software
|
||||
.\" must display the following acknowledgement:
|
||||
.\" This product includes software developed by the NetBSD
|
||||
.\" Foundation, Inc. and its contributors.
|
||||
.\" 4. Neither the name of The NetBSD Foundation nor the names of its
|
||||
.\" contributors may be used to endorse or promote products derived
|
||||
.\" from this software without specific prior written permission.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
||||
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
||||
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
||||
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd September 2, 2003
|
||||
.Dt LINKFARM 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm linkfarm
|
||||
.Nd manage symbolic links to package files
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl cDnRVv
|
||||
.Op Fl d Ar stowdir
|
||||
.Op Fl s Ar subdir
|
||||
.Op Fl t Ar target
|
||||
.Ar package
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm
|
||||
command is used to manage a "linkfarm", a directory tree of symbolic links in
|
||||
.Ar target
|
||||
to the files in the
|
||||
.Ar package
|
||||
sub-directory of
|
||||
.Ar stowdir .
|
||||
The default action is to create a linkfarm to a package.
|
||||
.Pp
|
||||
The following command-line options are supported:
|
||||
.Bl -tag -width indent
|
||||
.It Fl c
|
||||
Check whether a package contains a linkfarm in
|
||||
.Ar target .
|
||||
If
|
||||
.Ar package
|
||||
has no symbolic links in
|
||||
.Ar target
|
||||
that correspond to its files, then return 0, otherwise return 1.
|
||||
.It Fl D
|
||||
Delete the linkfarm for
|
||||
.Ar package .
|
||||
.It Fl d Ar stowdir
|
||||
Set
|
||||
.Ar stowdir
|
||||
as the directory in which
|
||||
.Ar package
|
||||
can be found.
|
||||
The default
|
||||
.Ar stowdir
|
||||
is the
|
||||
.Pa packages
|
||||
sub-directory in the default
|
||||
.Ar target
|
||||
directory.
|
||||
.It Fl n
|
||||
Don't actually execute the commands for removing and creating the symbolic
|
||||
links and directories.
|
||||
.It Fl R
|
||||
Delete and re-create the linkfarm for
|
||||
.Ar package .
|
||||
.It Fl s Ar subdir
|
||||
The root of the package hierarchy for the linkfarm is the
|
||||
.Ar subdir
|
||||
sub-directory in the package.
|
||||
By default, assume the root of the package hierarchy is simply the
|
||||
.Ar package
|
||||
directory.
|
||||
.It Fl t Ar target
|
||||
Set
|
||||
.Ar target
|
||||
as the directory in which to create and delete the linkfarm for
|
||||
.Ar package .
|
||||
The default
|
||||
.Ar target
|
||||
directory is
|
||||
.Pa /usr/pkg
|
||||
but may be overridden by the
|
||||
.Ev LOCALBASE
|
||||
environment variable.
|
||||
.It Fl V
|
||||
Print version number and exit.
|
||||
.It Fl v
|
||||
Turn on verbose output.
|
||||
Specifying
|
||||
.Fl v
|
||||
multiple times increases the level of verbosity.
|
||||
.El
|
||||
.Sh ENVIRONMENT
|
||||
.Bl -tag -width indent
|
||||
.It Ev LOCALBASE
|
||||
The standard packages directory,
|
||||
.Pa /usr/pkg ,
|
||||
can be overridden by specifying an alternative directory in the
|
||||
.Ev LOCALBASE
|
||||
environment variable.
|
||||
This affects the default
|
||||
.Ar target
|
||||
and
|
||||
.Ar stowdir
|
||||
directories.
|
||||
.It Ev PLIST_IGNORE_FILES
|
||||
This can be used to specify files in
|
||||
.Ar package
|
||||
that should ignored when creating and deleting symbolic links in
|
||||
.Ar target .
|
||||
.Ev PLIST_IGNORE_FILES
|
||||
is a space-separated list of shell glob patterns that match files relative
|
||||
to the
|
||||
.Ar package
|
||||
directory, and it defaults to "info/dir *[~#] *.OLD *.orig *,v".
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr lndir 1 ,
|
||||
.Xr pkg_view 1
|
||||
.Sh AUTHORS
|
||||
The
|
||||
.Nm
|
||||
utility was written by
|
||||
.An Alistair G. Crooks Aq agc@NetBSD.org .
|
||||
@@ -0,0 +1,276 @@
|
||||
.\" $NetBSD: pkg_view.1,v 1.13 2010/01/22 13:30:42 joerg Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2003 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
.\" are met:
|
||||
.\" 1. Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\" 3. All advertising materials mentioning features or use of this software
|
||||
.\" must display the following acknowledgement:
|
||||
.\" This product includes software developed by the NetBSD
|
||||
.\" Foundation, Inc. and its contributors.
|
||||
.\" 4. Neither the name of The NetBSD Foundation nor the names of its
|
||||
.\" contributors may be used to endorse or promote products derived
|
||||
.\" from this software without specific prior written permission.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
||||
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
||||
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
||||
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd September 8, 2003
|
||||
.Dt PKG_VIEW 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm pkg_view
|
||||
.Nd add and delete instances of depoted packages in views
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl nVv
|
||||
.Op Fl d Ar stowdir
|
||||
.Op Fl i Ar ignore
|
||||
.Op Fl k Ar pkg_dbdir
|
||||
.Op Fl W Ar viewbase
|
||||
.Op Fl w Ar view
|
||||
.Ar command
|
||||
.Ar package ...
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm
|
||||
command is used to add and delete instances of depoted packages in
|
||||
.Ar stowdir
|
||||
in a
|
||||
.Ar view
|
||||
in the
|
||||
.Ar viewbase
|
||||
directory.
|
||||
.Sh WARNING
|
||||
.Bf -emphasis
|
||||
Since the
|
||||
.Nm
|
||||
command may execute scripts or programs provided by a package file,
|
||||
your system may be susceptible to
|
||||
.Dq Trojan horses
|
||||
or other subtle
|
||||
attacks from miscreants who create dangerous package files.
|
||||
.Pp
|
||||
You are advised to verify the competence and identity of those who
|
||||
provide installable package files.
|
||||
For extra protection, examine all the package control files in the
|
||||
package database directory
|
||||
.Pa ( /usr/pkg/packages/\*[Lt]pkg-name\*[Gt]/ ) .
|
||||
Pay particular attention to any
|
||||
.Pa +INSTALL
|
||||
or
|
||||
.Pa +DEINSTALL
|
||||
files, and inspect the
|
||||
.Pa +CONTENTS
|
||||
file for
|
||||
.Cm @cwd ,
|
||||
.Cm @mode
|
||||
(check for setuid),
|
||||
.Cm @dirrm ,
|
||||
.Cm @exec ,
|
||||
and
|
||||
.Cm @unexec
|
||||
directives, and/or use the
|
||||
.Xr pkg_info 1
|
||||
command to examine the installed package control files.
|
||||
.Ef
|
||||
.Sh OPTIONS
|
||||
The following command-line options are supported:
|
||||
.Bl -tag -width indent
|
||||
.It Fl d Ar stowdir
|
||||
Set
|
||||
.Ar stowdir
|
||||
as the directory in which the depoted packages can be found.
|
||||
If this option isn't specified, then the
|
||||
.Ar stowdir
|
||||
is taken from the value of the environment variable
|
||||
.Ev DEPOTBASE
|
||||
if it's set, otherwise the default
|
||||
.Ar stowdir
|
||||
is the path to the
|
||||
.Pa packages
|
||||
directory under
|
||||
.Ar viewbase .
|
||||
.It Fl i Ar ignore
|
||||
Add
|
||||
.Ar ignore
|
||||
to the list of files in
|
||||
.Ar package
|
||||
that should ignored when adding or removing the package instance from
|
||||
.Ar view .
|
||||
.It Fl k Ar pkg_dbdir
|
||||
Override the value of the
|
||||
.Dv PKG_DBDIR
|
||||
configuration option with the value
|
||||
.Ar pkg_dbdir .
|
||||
This is used as as the package database directory for the
|
||||
default (empty) view.
|
||||
.It Fl n
|
||||
Don't actually execute the commands for manipulating the package instances.
|
||||
.It Fl V
|
||||
Print the version number and exit.
|
||||
.It Fl v
|
||||
Turn on verbose output.
|
||||
Specifying
|
||||
.Fl v
|
||||
multiple times increases the level of verbosity.
|
||||
.It Fl W Ar viewbase
|
||||
Set
|
||||
.Ar viewbase
|
||||
as the directory in which all the views are managed.
|
||||
The default
|
||||
.Ar viewbase
|
||||
directory is
|
||||
.Pa /usr/pkg
|
||||
but may be overridden by the
|
||||
.Ev LOCALBASE
|
||||
environment variable.
|
||||
.It Fl w Ar view
|
||||
Set
|
||||
.Ar view
|
||||
as the directory in
|
||||
.Ar viewbase
|
||||
in which the package instances should be added or deleted.
|
||||
The default
|
||||
.Ar view
|
||||
is the empty view but may be overridden by the
|
||||
.Ev PKG_VIEW
|
||||
environment variable.
|
||||
.El
|
||||
.Pp
|
||||
The following commands are supported:
|
||||
.Bl -tag -width indent
|
||||
.It Cm add
|
||||
Add the listed package instances into
|
||||
.Ar view .
|
||||
.It Cm check
|
||||
Check whether the listed package instances are present in
|
||||
.Ar view .
|
||||
If they are not present, then return 0, otherwise return 1.
|
||||
.It Cm delete
|
||||
Delete the listed package instances from
|
||||
.Ar view .
|
||||
.El
|
||||
.Sh ENVIRONMENT
|
||||
.Bl -tag -width indent
|
||||
.It Ev DEPOTBASE
|
||||
This is the location of the
|
||||
.Ar stowdir
|
||||
directory inside which all depoted packages are kept.
|
||||
The default
|
||||
.Ar stowdir
|
||||
is the
|
||||
.Pa packages
|
||||
directory under
|
||||
.Ar viewbase .
|
||||
.It Ev LOCALBASE
|
||||
This is the location of the
|
||||
.Ar viewbase
|
||||
directory in which all the views are managed.
|
||||
The default
|
||||
.Ar viewbase
|
||||
directory is
|
||||
.Pa /usr/pkg .
|
||||
.It Ev PKG_DBDIR
|
||||
If the
|
||||
.Fl k
|
||||
flag isn't given, then the value of the environment variable
|
||||
.Ev PKG_DBDIR
|
||||
is the package database directory for the default view,
|
||||
otherwise it defaults to
|
||||
.Pa /var/db/pkg .
|
||||
.It Ev PLIST_IGNORE_FILES
|
||||
This can be used to specify files in
|
||||
.Ar package
|
||||
that should ignored when adding or removing the package instance from
|
||||
.Ar view .
|
||||
.Ev PLIST_IGNORE_FILES
|
||||
is a space-separated list of shell glob patterns that match files relative
|
||||
to the
|
||||
.Ar package
|
||||
depot directory, and it defaults to "info/dir *[~#] *.OLD *.orig *,v".
|
||||
This is overridden by any
|
||||
.Ev _PLIST_IGNORE_FILES
|
||||
setting in a package's
|
||||
.Ar build-info-file
|
||||
(see
|
||||
.Xr pkg_create 1 )
|
||||
if it exists.
|
||||
.It Ev PKG_VIEW
|
||||
The default view can be specified in the
|
||||
.Ev PKG_VIEW
|
||||
environment variable.
|
||||
.El
|
||||
.Sh FILES
|
||||
.Bl -tag -width indent
|
||||
.It Pa \*[Lt]pkg-dbdir\*[Gt]/\*[Lt]package\*[Gt]/+INSTALL
|
||||
If the package contains an
|
||||
.Ar install
|
||||
script (see
|
||||
.Xr pkg_create 1 ) ,
|
||||
then after the package instance is added into a view, the script is
|
||||
executed with the following arguments:
|
||||
.Bl -tag -width package
|
||||
.It Ar package
|
||||
The name of the package instance being added.
|
||||
.It Cm VIEW-INSTALL
|
||||
Keyword denoting that the script is to perform any actions needed after
|
||||
the package instance is added to a view.
|
||||
.El
|
||||
.Pp
|
||||
If the
|
||||
.Ar install
|
||||
script exits with a non-zero status code, the installation is terminated.
|
||||
.It Pa \*[Lt]pkg-dbdir\*[Gt]/\*[Lt]package\*[Gt]/+DEINSTALL
|
||||
If the package contains an
|
||||
.Ar deinstall
|
||||
script (see
|
||||
.Xr pkg_create 1 ) ,
|
||||
then before the package instance is deleted from a view, the script is
|
||||
executed with the following arguments:
|
||||
.Bl -tag -width package
|
||||
.It Ar package
|
||||
The name of the package instance being deleted.
|
||||
.It Cm VIEW-DEINSTALL
|
||||
Keyword denoting that the script is to perform any actions needed before
|
||||
the package instance is deleted from a view.
|
||||
.El
|
||||
.Pp
|
||||
If the
|
||||
.Ar deinstall
|
||||
script exits with a non-zero status code, the de-installation is terminated.
|
||||
.El
|
||||
.Pp
|
||||
The
|
||||
.Ar install
|
||||
and
|
||||
.Ar deinstall
|
||||
scripts are called with the environment variable
|
||||
.Ev PKG_PREFIX
|
||||
set to the path to the
|
||||
.Ar view
|
||||
directory.
|
||||
.Sh SEE ALSO
|
||||
.Xr linkfarm 1 ,
|
||||
.Xr pkg_delete 1
|
||||
.Sh AUTHORS
|
||||
The
|
||||
.Nm
|
||||
utility was written by
|
||||
.An Alistair G. Crooks Aq agc@NetBSD.org .
|
||||
Reference in New Issue
Block a user