1997-01-21 12:58:53 +00:00
|
|
|
.\" Copyright (c) 1997 Robert Nordier
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
1999-08-28 01:35:59 +00:00
|
|
|
.\" $FreeBSD$
|
1997-01-21 12:58:53 +00:00
|
|
|
.\"
|
|
|
|
.\" 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.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``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 AUTHOR(S) 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 January 20, 1997
|
|
|
|
.Dt CKDIST 1
|
2001-07-15 08:06:20 +00:00
|
|
|
.Os
|
1997-01-21 12:58:53 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm ckdist
|
|
|
|
.Nd check software distributions
|
|
|
|
.Sh SYNOPSIS
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1997-01-21 12:58:53 +00:00
|
|
|
.Bq Fl airsx
|
|
|
|
.Bq Fl d Ar dir
|
|
|
|
.Bq Fl n Ar name
|
|
|
|
.Bq Fl t Ar type
|
1997-09-15 06:33:52 +00:00
|
|
|
.Ar
|
1997-01-21 12:58:53 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
1997-09-15 06:33:52 +00:00
|
|
|
.Nm
|
2006-12-27 13:52:57 +00:00
|
|
|
utility reads
|
|
|
|
.Dq checksum
|
|
|
|
files (which are assumed to specify components
|
1997-01-21 12:58:53 +00:00
|
|
|
of a software distribution) and verifies the integrity of the
|
|
|
|
distribution by validating the checksum of each component file.
|
2006-12-27 13:52:57 +00:00
|
|
|
Both MD5 (128-bit
|
|
|
|
.Dq "message digest" )
|
|
|
|
and
|
|
|
|
.Pa .inf
|
|
|
|
(32-bit CRC) checksum
|
1997-01-21 12:58:53 +00:00
|
|
|
formats are supported.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Ar file
|
2004-07-02 23:13:00 +00:00
|
|
|
operands may refer to regular files or to directories.
|
|
|
|
Regular files
|
2006-12-27 13:52:57 +00:00
|
|
|
named
|
|
|
|
.Pa md5 ,
|
|
|
|
or which have an
|
|
|
|
.Pa .md5
|
|
|
|
or an
|
|
|
|
.Pa .inf
|
|
|
|
extension, are
|
1997-01-21 12:58:53 +00:00
|
|
|
assumed to be of the implied type, otherwise format is determined from
|
2004-07-02 23:13:00 +00:00
|
|
|
content.
|
|
|
|
If a directory is specified, it is searched for
|
1997-01-21 12:58:53 +00:00
|
|
|
appropriately-named files only.
|
|
|
|
.Pp
|
2006-12-27 13:52:57 +00:00
|
|
|
The options are as follows:
|
|
|
|
.\"Bl -tag -width ".Fl n Ar name"
|
1997-01-21 12:58:53 +00:00
|
|
|
.Bl -tag -width 8n -offset indent
|
|
|
|
.It Fl a
|
|
|
|
Report on all distribution components, not just those in respect of
|
|
|
|
which errors are detected.
|
|
|
|
.It Fl i
|
|
|
|
Ignore missing distribution components.
|
|
|
|
.It Fl r
|
|
|
|
Search specified directories recursively.
|
|
|
|
.It Fl s
|
|
|
|
Suppress complaints about inaccessible checksum files and directories.
|
|
|
|
.It Fl x
|
|
|
|
Verify the existence of distribution components (and also check sizes,
|
2006-12-27 13:52:57 +00:00
|
|
|
in the case of
|
|
|
|
.Pa .inf
|
|
|
|
files), but omit the more time-consuming step of
|
1997-01-21 12:58:53 +00:00
|
|
|
actually computing and comparing checksums.
|
|
|
|
.It Fl d Ar dir
|
|
|
|
Look for distribution components in the directory
|
|
|
|
.Ar dir .
|
|
|
|
.It Fl n Ar name
|
|
|
|
Access distribution components using the filename
|
|
|
|
.Ar name .
|
2006-12-27 13:52:57 +00:00
|
|
|
When accessing
|
|
|
|
.Pa .inf
|
|
|
|
file components, append the appropriate
|
1997-09-15 06:33:52 +00:00
|
|
|
extension to the filename.
|
1997-01-21 12:58:53 +00:00
|
|
|
.It Fl t Ar type
|
|
|
|
Assume that all specified checksum files are of the format
|
|
|
|
.Ar type ,
|
|
|
|
and search directories only for files in this format (where
|
2001-07-15 08:06:20 +00:00
|
|
|
.Ar type
|
2006-12-27 13:52:57 +00:00
|
|
|
is either
|
|
|
|
.Cm md5
|
|
|
|
or
|
|
|
|
.Cm inf ) .
|
1997-01-21 12:58:53 +00:00
|
|
|
.El
|
2005-01-17 07:44:44 +00:00
|
|
|
.Sh EXIT STATUS
|
2006-12-27 13:52:57 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility exits with one of the following values:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It 0
|
|
|
|
No errors were detected.
|
|
|
|
.It 1
|
|
|
|
Errors were found in a distribution.
|
|
|
|
.It 2
|
|
|
|
Usage errors, inaccessible input files, or
|
1997-01-21 12:58:53 +00:00
|
|
|
other system errors were encountered.
|
2006-12-27 13:52:57 +00:00
|
|
|
.El
|
2005-01-18 20:02:45 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr cksum 1 ,
|
|
|
|
.Xr md5 1
|
1997-01-21 12:58:53 +00:00
|
|
|
.Sh NOTES
|
2001-08-14 10:01:54 +00:00
|
|
|
Both
|
|
|
|
.Bx
|
|
|
|
and
|
|
|
|
.Tn DOS
|
|
|
|
versions of
|
1997-09-15 06:33:52 +00:00
|
|
|
.Nm
|
1997-01-21 12:58:53 +00:00
|
|
|
are available.
|