.\" $NetBSD: pbulk-scan.1,v 1.2 2015/12/07 16:52:40 joerg Exp $ .\" .\" Copyright (c) 2007 Thomas Klausner and Joerg Sonnenberger. .\" 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 NETBSD FOUNDATION, INC. AND CONTRIBUTORS .\" ``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 June 11, 2007 .Dt PBULK-SCAN 1 .Os .Sh NAME .Nm pbulk-scan .Nd extracts information for pbulk from a pkgsrc tree .Sh SYNOPSIS .Nm .Op Fl v .Fl c Oo Ar host: Oc Ns Ar port .Fl M Ar make .Ar pkgsrc .Nm .Op Fl lv .Op Fl I Ar start_script .Op Fl m Oo Ar host: Oc Ns Ar port .Fl M Ar make .Ar pkgsrc output .Sh DESCRIPTION .Nm extracts information for a pbulk bulk build from a pkgsrc tree. .Pp Supported options are: .Bl -tag -width 15n -offset indent .It Fl c Oo Ar host: Oc Ns Ar port Connect to pbulk bulk build master process on .Ar port (or .Ar host:port ) . .It Fl I Ar start_script Run .Ar start_script after opening the socket and wait for completion before entering scan loop. .It Fl l Read the list of locations to scan from stdin, one line per location. Otherwise the list of locations is built from the .Va SUBDIRS variable in the top-level Makefile and the .Va SUBDIRS variables in the category Makefiles. .It Fl M Ar make Use .Ar make to extract the data. Usually .Dq make or .Dq bmake . .It Fl m Oo Ar host: Oc Ns Ar port Enter master mode. In this mode, .Nm waits for connections on .Ar port (or .Ar host:port ) . .It Fl v Log each location to be scanned or other progress to stdout. .El .Ar pkgsrc is the path to the pkgsrc checkout and .Ar output is the output file. .Pp A warning is printed to stderr if the same package name occurs more than once in the scan output. .Sh EXIT STATUS .Nm exits with return value 1 on internal errors.