1 .\" Copyright (c) 1997 Robert Nordier
2 .\" All rights reserved.
4 .\" $FreeBSD: head/usr.sbin/ckdist/ckdist.1 213573 2010-10-08 12:40:16Z uqs $
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS
16 .\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 .\" DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT,
19 .\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20 .\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21 .\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
23 .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24 .\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 .\" POSSIBILITY OF SUCH DAMAGE.
32 .Nd check software distributions
45 files (which are assumed to specify components
46 of a software distribution) and verifies the integrity of the
47 distribution by validating the checksum of each component file.
49 .Dq "message digest" )
53 formats are supported.
57 operands may refer to regular files or to directories.
66 assumed to be of the implied type, otherwise format is determined from
68 If a directory is specified, it is searched for
69 appropriately-named files only.
71 The options are as follows:
72 .\"Bl -tag -width ".Fl n Ar name"
73 .Bl -tag -width 8n -offset indent
75 Report on all distribution components, not just those in respect of
76 which errors are detected.
78 Ignore missing distribution components.
80 Search specified directories recursively.
82 Suppress complaints about inaccessible checksum files and directories.
84 Verify the existence of distribution components (and also check sizes,
87 files), but omit the more time-consuming step of
88 actually computing and comparing checksums.
90 Look for distribution components in the directory
93 Access distribution components using the filename
97 file components, append the appropriate
98 extension to the filename.
100 Assume that all specified checksum files are of the format
102 and search directories only for files in this format (where
112 utility exits with one of the following values:
113 .Bl -tag -width indent
115 No errors were detected.
117 Errors were found in a distribution.
119 Usage errors, inaccessible input files, or
120 other system errors were encountered.