.\" $NetBSD: builddb.1,v 1.1.1.1 2003/07/13 16:15:34 wiz Exp $ .\" .\" Copyright (c) 2003 Thomas Klausner .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR, THOMAS KLAUSNER, .\" ``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 July 13, 2003 .Dt BUILDDB 1 .Os .Sh NAME .Nm builddb .Nd create database from file system or tar file .Sh SYNOPSIS .Nm .Op Fl hv .Op Fl o Ar db-file .Ar tar-file | Ar directory .Op Ar ... .Sh DESCRIPTION .Nm reads the tar file .Ar tar-file or the contents of the directory hierarchy starting at .Ar directory and creates a database from it which can be used by .Nm pkg_filecheck . .Pp Supported options: .Bl -tag -width XoXdbXfileX -offset indent .It Fl h Display a short help message. .It Fl o Ar db-file Use .Ar db-file as database output file instead of the default .Pa /var/db/pkg/xdb.byfile.db . .It Fl v Verbose mode. Report each file found. .El .Sh SEE ALSO .Xr pkg_filecheck 1 .Sh BUGS .Nm is written in Perl.