PKG_DIGGER_SUMMARY(1)

NAME
pkg_digger_summary - pkg_digger backend for search in pkg_summary(5)

SYNOPSIS
pkg_digger_summary -h
pkg_digger_summary -f
pkg_digger_summary -s
pkg_digger_summary [-n limit] f:s:q1 [f:s:q2...]
pkg_digger_summary -1|-3-9|-i [-q] pkgid1 [pkgid2 ...]

DESCRIPTION
pkg_digger_summary is a backend for pkg_digger(1) searching in pkg_summary(5) file specified in PKG_DIGGER_SUMMARY environment variable. pkgid has PKGPATH,PKGBASE format. If it is specified, summary for the specified package is output. f:s:q means field to search in, search strategy and query separated by colon, for example PKGBASE:prefix:dict. If it is specified, found pkgids are outputs, one per line.

OPTIONS

-h  Display help message.

-s  Output supported search strategies. Supported search strategies are documented in pkg_grep_summary.

-f  Output supported fields to search in, for example, PKGPATH, PKGBASE, COMMENT, DESCRIPTION.

-1  Only PKGPATH, PKGNAME (if needed) and COMMENT are output (oneline format).

-3  Only basic fields are output, i.e. PKGNAME, PKGPATH, COMMENT, DESCRIPTION and some others.

-9|-i
    Full summaries are output. -3 or -9.

-q  Quiet mode, do not print "No matches found" to stderr

-n limit
    Maximum number of returned matches.

EXAMPLES
$ export PKG_DIGGER_SUMMARY=/usr/pkgsrc/pkg_src_summary.txt $ pkg_digger_summary PKGBASE:exact:digest pkgtools/digest,digest $ pkg_digger_summary -1 pkgtools/digest,digest PKGNAME=digest-20111104 PKGPATH=pkgtools/digest COMMENT=Message digest wrapper utility $ pkg_digger_summary -3 pkgtools/digest,digest PKGNAME=digest-20111104 PKGPATH=pkgtools/digest HOMEPAGE=http://www.NetBSD.org/docs/software/packages.html COMMENT=Message digest wrapper utility MAINTAINER=agc@NetBSD.org CATEGORIES=pkgtools DESCRIPTION=This utility is a wrapper for the DESCRIPTION= DESCRIPTION= + md5(3), DESCRIPTION= + rmd160(3), DESCRIPTION= + sha1(3), DESCRIPTION= + sha256, DESCRIPTION= + sha384 DESCRIPTION= + sha512 DESCRIPTION= + tiger DESCRIPTION= + whirlpool DESCRIPTION= DESCRIPTION=message digest routines. $ pkg_digger_summary COMMENT:word:'dns proxy' COMMENT:word:'dns server' net/totd,totd wip/dnrd,dnrd net/mydns-mysql,mydns-mysql net/rootprobe,rootprobe net/knot,knot net/maradns,maradns net/nsd,nsd net/mydns-pgsql,mydns-pgsql wip/py-oak,py27-oak wip/py-oak,py26-oak $ pkg_digger_summary -n5 PKGPATH:substring:dict textproc/diction,diction textproc/dict-mueller7,dict-mueller7 wip/aspell-dictionaries,aspell-dictionaries wip/dict-freedict-eng-ara,dict-freedict-eng-ara misc/JMdict,JMdict $ pkg_digger_summary PLIST:exact:bin/blockdiag graphics/py-blockdiag,py27-blockdiag graphics/py-blockdiag,py26-blockdiag $

ENVIRONMENT

PKG_DIGGER_SUMMARY
    Summary file to search in.

TMPDIR
    Directory for temporary files, by default /tmp is used.

SEE ALSO
pkg_summary-utils(7), pkg_summary(5), pkg_grep_summary(1), pkg_digger(1)

AUTHOR
Aleksey Cheusov <vle@gmx.net>