1 .\" Copyright (c) 1997 Robert Nordier
2 .\" All rights reserved.
4 .\" $FreeBSD: src/usr.sbin/ckdist/ckdist.1,v 1.4.2.3 2001/08/16 15:55:45 ru Exp $
5 .\" $DragonFly: src/usr.sbin/ckdist/ckdist.1,v 1.3 2006/02/17 19:40:13 swildner Exp $
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
16 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS
17 .\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 .\" DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT,
20 .\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 .\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22 .\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
24 .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
25 .\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 .\" POSSIBILITY OF SUCH DAMAGE.
33 .Nd check software distributions
44 utility reads "checksum" files (which are assumed to specify components
45 of a software distribution) and verifies the integrity of the
46 distribution by validating the checksum of each component file.
47 Both MD5 (128-bit "message digest") and .inf (32-bit CRC) checksum
48 formats are supported.
52 operands may refer to regular files or to directories. Regular files
53 named "md5", or which have an ".md5" or an ".inf" extension, are
54 assumed to be of the implied type, otherwise format is determined from
55 content. If a directory is specified, it is searched for
56 appropriately-named files only.
58 Options are as follows:
59 .Bl -tag -width 8n -offset indent
61 Report on all distribution components, not just those in respect of
62 which errors are detected.
64 Ignore missing distribution components.
66 Search specified directories recursively.
68 Suppress complaints about inaccessible checksum files and directories.
70 Verify the existence of distribution components (and also check sizes,
71 in the case of .inf files), but omit the more time-consuming step of
72 actually computing and comparing checksums.
74 Look for distribution components in the directory
77 Access distribution components using the filename
79 When accessing .inf file components, append the appropriate
80 extension to the filename.
82 Assume that all specified checksum files are of the format
84 and search directories only for files in this format (where
86 is either "md5" or "inf").
89 Exit status is 0 if no errors were detected, 1 if errors were found in
90 a distribution, and 2 if usage errors, inaccessible input files, or
91 other system errors were encountered.