1.\" Copyright (c) 1997 Robert Nordier 2.\" All rights reserved. 3.\" 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 $ 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions 9.\" are met: 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. 15.\" 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. 27.\" 28.Dd January 20, 1997 29.Dt CKDIST 1 30.Os 31.Sh NAME 32.Nm ckdist 33.Nd check software distributions 34.Sh SYNOPSIS 35.Nm 36.Bq Fl airsx 37.Bq Fl d Ar dir 38.Bq Fl n Ar name 39.Bq Fl t Ar type 40.Ar 41.Sh DESCRIPTION 42The 43.Nm 44utility reads "checksum" files (which are assumed to specify components 45of a software distribution) and verifies the integrity of the 46distribution by validating the checksum of each component file. 47Both MD5 (128-bit "message digest") and .inf (32-bit CRC) checksum 48formats are supported. 49.Pp 50The 51.Ar file 52operands may refer to regular files or to directories. Regular files 53named "md5", or which have an ".md5" or an ".inf" extension, are 54assumed to be of the implied type, otherwise format is determined from 55content. If a directory is specified, it is searched for 56appropriately-named files only. 57.Pp 58Options are as follows: 59.Bl -tag -width 8n -offset indent 60.It Fl a 61Report on all distribution components, not just those in respect of 62which errors are detected. 63.It Fl i 64Ignore missing distribution components. 65.It Fl r 66Search specified directories recursively. 67.It Fl s 68Suppress complaints about inaccessible checksum files and directories. 69.It Fl x 70Verify the existence of distribution components (and also check sizes, 71in the case of .inf files), but omit the more time-consuming step of 72actually computing and comparing checksums. 73.It Fl d Ar dir 74Look for distribution components in the directory 75.Ar dir . 76.It Fl n Ar name 77Access distribution components using the filename 78.Ar name . 79When accessing .inf file components, append the appropriate 80extension to the filename. 81.It Fl t Ar type 82Assume that all specified checksum files are of the format 83.Ar type , 84and search directories only for files in this format (where 85.Ar type 86is either "md5" or "inf"). 87.El 88.Sh DIAGNOSTICS 89Exit status is 0 if no errors were detected, 1 if errors were found in 90a distribution, and 2 if usage errors, inaccessible input files, or 91other system errors were encountered. 92.Sh SEE ALSO 93.Xr cksum 1 , 94.Xr md5 1 95.Sh NOTES 96Both 97.Bx 98and 99.Tn DOS 100versions of 101.Nm 102are available. 103