pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[ANN] pkg_digger, package searcher for PkgSrc



I've just finished pkg_digger, powerful and flexible package searcher
for pkgsrc. It is a part of wip/pkg_summary-util package.  Unlike many
other searchers it doesn't scan pkgsrc tree thus it works much faster.

Maybe those of you who use pkg_summary(5) files will find it helpful.

Below are samples of use.

$ export PKG_DIGGER_SUMMARY=/usr/pkgsrc/packages/pkg_summary.txt
$ pkg_digger -s
synonym | full name  | description
--------------------------------------
      e        exact   Match exactly
      p       prefix   Match prefixes
      u       suffix   Match suffixes
      s    substring   Match substring
      w         word   Match separate words
      f        first   Match the first word
      l         last   Match the last word
      r           re   POSIX 1003.2 (modern) regular expressions
             strfile   Match the words from file
             strlist   Match the specified words
                 awk   Match using AWK expression
               empty   Match an empty string
                  kw   "keyword" match

$ pkg_digger -f
synonym | full name
--------------------------
          PKGTOOLS_VERSION
          MACHINE_ARCH
          OS_VERSION
          PKG_OPTIONS
          SUPERSEDES
          SIZE_PKG
          CONFLICTS
          LICENSE
      n   PKGNAME
          REQUIRES
      p   PKGPATH
          PROVIDES
          CATEGORIES
      d   DESCRIPTION
          DEPENDS
          BUILD_DATE
          FILE_SIZE
          OPSYS
          HOMEPAGE
          PREV_PKGPATH
  empty   COMMENT
          FILE_NAME

$ pkg_digger dictionary -spell -chinese -japanese -korean
textproc/dict-client      - Dictionary Service Protocol client
textproc/dict-dictionaries(dict-data) - Dictionary data for DICTD
textproc/dict-server      - Dictionary Service Protocol server
textproc/dictem           - Dictionary client (RFC-2229) for [X]Emacs
textproc/ebview           - GTK2 based EPWING dictionary browser
textproc/emacs-dict-client - Emacs package for talking to a dictionary server
audio/festlex-cmu         - CMU American English pronunciation dictionary for 
Festival
audio/festlex-oald        - Oxford Advanced Learner's pronunciation dictionary 
for Festival
audio/festlex-ogi         - Composite pronunciation dictionary from ogi.edu for 
festival
inputmethod/kasumi        - Dictionary management tool for anthy
misc/latin-words-bin      - Latin-to-English dictionary program (Linux binary)
misc/lookup               - Electric dictionary agent for Emacs
inputmethod/skkserv       - Dictionary server for Simple Kana-Kanji conversion 
programs
textproc/xfce4-dict-plugin - Xfce dictionary server plugin

$ pkg_digger PKGNAME:prefix:dict
textproc/dict-client      - Dictionary Service Protocol client
textproc/dict-dictionaries(dict-data) - Dictionary data for DICTD
textproc/dict-server      - Dictionary Service Protocol server
textproc/dictem           - Dictionary client (RFC-2229) for [X]Emacs
textproc/diction          - GNU version of diction and style

$ pkg_digger COMMENT:word:dns PKGPATH:prefix:net
net/adns                  - Asynchronous-capable DNS client library and 
utilities
net/bind9(bind)           - Version 9 of the Berkeley Internet Name Daemon, 
implementation of DNS
net/bind95(bind)          - Version 9 of the Berkeley Internet Name Daemon, 
implementation of DNS
net/bind96(bind)          - Version 9 of the Berkeley Internet Name Daemon, 
implementation of DNS
net/ddclient              - Client to update dynamic DNS entries
net/djbdns                - Collection of secure and reliable DNS tools
net/dlint                 - Internet Domain Name System (DNS) error checking 
utility
net/dnsdoctor             - DNS zones misconfigurations or inconsistencies 
diagnostic tool
net/dnsmasq               - Lightweight, easy to configure DNS forwarder
net/dnstop                - Diagnose tcpdump trace for DNS queries/replies
net/dnstracer             - Tool to trace dns queries
net/dynipclient           - Client for the dynip.com dynamic DNS service
net/ez-ipupdate           - Client to update dynamic DNS entries
net/fpdns                 - Fingerprinting DNS servers
net/host                  - Powerful DNS query and testing tool
net/inadyn                - Dynamic DNS client
net/ldns                  - Library for simplified DNS programming
net/libares               - Asynchronous DNS resolver library
net/maradns               - Secure DNS server for *NIX systems
net/mydns-mysql           - MySQL-based DNS server
net/mydns-pgsql           - PostgreSQL-based DNS server
net/nsd                   - Authoritative-only DNS server
net/nslint                - Perform consistency checks on DNS zone files
net/py-adns(py24-adns-python) - Python interface to the GNU asynchronous DNS 
resolver library
net/py-dns(py24-dns)      - Python DNS toolkit
net/py-adns(py25-adns-python) - Python interface to the GNU asynchronous DNS 
resolver library
net/py-dns(py25-dns)      - Python DNS toolkit
net/py-adns(py26-adns-python) - Python interface to the GNU asynchronous DNS 
resolver library
net/py-dns(py26-dns)      - Python DNS toolkit
net/queryperf             - DNS performance and load tester
net/rbldnsd               - Efficient DNS daemon to serve DNSBL zones
net/rootprobe             - Root DNS server performance analysis
net/totd                  - DNS proxy that supports IPv6 <==> IPv4 record 
translation
net/udns                  - Lightweight DNS resolver supporting asynchronous 
queries
net/unbound               - DNS resolver and recursive server
net/walker                - Retrieve a DNS zone using NXT/NSEC traversal

$ pkg_digger -9 lang/mawk
-----------------------------------------------------------
PKGNAME:        mawk-1.3.3
COMMENT:        Mike Brennan's fast awk clone
SIZE_PKG:       139119
BUILD_DATE:     2009-08-23 05:21:10 +0000
CATEGORIES:     lang
MACHINE_ARCH:   i386
OPSYS:          NetBSD
OS_VERSION:     5.0.1
PKGPATH:        lang/mawk
PKGTOOLS_VERSION:20090724
REQUIRES:
    /usr/lib/libc.so.12
    /usr/lib/libm.so.0
FILE_NAME:      mawk-1.3.3.tgz
FILE_SIZE:      62441
DESCRIPTION:
    Mike Brennan's awk clone.
    It's fast (faster than gawk), and relatively small.


$ pkg_digger oberon
lang/oo2c                 - Optimizing Oberon-2 Compiler

$ pkg_digger dns server
net/dhisd                 - DynDNS server
net/fpdns                 - Fingerprinting DNS servers
net/maradns               - Secure DNS server for *NIX systems
net/mydns-mysql           - MySQL-based DNS server
net/mydns-pgsql           - PostgreSQL-based DNS server
net/nsd                   - Authoritative-only DNS server
net/powerdns-recursor(pdns-recursor) - PowerDNS resolver/recursing nameserver
net/powerdns              - Modern, advanced and high performance nameserver
net/rootprobe             - Root DNS server performance analysis
net/unbound               - DNS resolver and recursive server
sysutils/wbm-bind8        - Webmin module for managing ISC BIND 8.x DNS servers

$ pkg_digger FILE_SIZE:awk:'fvalue+0 > 100000000'
games/et                  - Wolfenstein: Enemy Territory for Linux
games/flightgear-base     - FlightGear Simulator (data files)
lang/gcc44                - GNU Compiler Collection 4.4
x11/kdebase-workspace4    - base workspace for the KDE 4 integrated X11 desktop
misc/kdeedu4              - Edu{tainment,cation} tools for the KDE integrated 
X11 desktop
x11/kdelibs4              - Support libraries for the KDE integrated X11 desktop
misc/kdepim4              - Personal Information Management tools for the KDE 
desktop
misc/openoffice2          - Integrated office productivity suite (version 2)
misc/openoffice2-bin      - Integrated office productivity suite (binary pkg)
misc/openoffice3          - Integrated office productivity suite (version 3)
misc/openoffice3-bin      - Integrated office productivity suite (binary pkg)
games/ufoai               - UFO Alien Invasion
games/wesnoth             - Fantasy turn-based strategy game

$ pkg_digger -q spreadsheet
math/abs                  - Free spreadsheet with graphical user interface
math/gnumeric             - Spreadsheet program from the GNOME project 
(development version)
math/sc                   - Curses-based spreadsheet program
misc/siag                 - Poor man's office suite with spreadsheet, word 
processor, etc

$ pkg_digger -q3r spreadsheet
PKGNAME=abs-0.8nb2
COMMENT=Free spreadsheet with graphical user interface
CATEGORIES=math x11
HOMEPAGE=http://home.scarlet.be/~pin01858/abs.html
PKGPATH=math/abs
DESCRIPTION=  Abs is a free spreadsheet with graphical user interface running
DESCRIPTION=under NetBSD, Linux, and Aix.  Basic functions are:
DESCRIPTION=
DESCRIPTION=  * a  clear and easy to use graphical user interface
DESCRIPTION=
DESCRIPTION=  * macro language a la Visual Basic
DESCRIPTION=      Programming language with the same syntax as Microsoft Visual 
Basic.
DESCRIPTION=
DESCRIPTION=  * XY, pie and bar charts
DESCRIPTION=
DESCRIPTION=  * Printing of selected areas to files
DESCRIPTION=      The file format used is Fig.
DESCRIPTION=      This file format can be sent to printer through the fig2dev
DESCRIPTION=      and gs programs or edited and printed with the Xfig drawing 
tool.
DESCRIPTION=
DESCRIPTION=  * multi-documents management
DESCRIPTION=      20 documents open simultaneously.
DESCRIPTION=      Copy, Cut and Paste between documents
DESCRIPTION=
DESCRIPTION=  * Excel exportable file format through VBA macro file.
DESCRIPTION=      The file format used to save abs worksheets is directly 
importable
DESCRIPTION=      to Excel with the Excel macro editor.
DESCRIPTION=
DESCRIPTION=Homepage:
DESCRIPTION=http://home.scarlet.be/~pin01858/abs.html

PKGNAME=gnumeric-1.8.4nb4
COMMENT=Spreadsheet program from the GNOME project (development version)
CATEGORIES=math gnome
HOMEPAGE=http://www.gnome.org/projects/gnumeric/
PKGPATH=math/gnumeric
DESCRIPTION=Gnumeric is a powerful and easy to use spreadsheet program from
DESCRIPTION=the GNOME project.  The goal for this spreadsheet is to compete
DESCRIPTION=with the commercial offerings.  Users of Excel should be already
DESCRIPTION=familiar with Gnumeric advanced features.  A plugin system lets
DESCRIPTION=you extend Gnumeric with GPL extensions, and an optional
DESCRIPTION=Python and Perl plugins let you define complex functions in those
DESCRIPTION=popular languages.
DESCRIPTION=
DESCRIPTION=Homepage:
DESCRIPTION=http://www.gnome.org/projects/gnumeric/

PKGNAME=sc-6.21nb2
COMMENT=Curses-based spreadsheet program
CATEGORIES=math
PKGPATH=math/sc
DESCRIPTION=The spreadsheet calculator sc is based on rectangular tables much 
like
DESCRIPTION=a financial spreadsheet.  When invoked it presents you with a table
DESCRIPTION=organized as rows and columns of cells.  If invoked without a file
DESCRIPTION=argument, the table is initially empty.  Each cell may have 
associated
DESCRIPTION=with it a numeric value, a label string, and/or an expression 
(formula)
DESCRIPTION=which evaluates to a numeric value or label string, often based on 
other
DESCRIPTION=cell values.

PKGNAME=siag-3.6.1nb3
COMMENT=Poor man's office suite with spreadsheet, word processor, etc
CATEGORIES=misc editors math textproc
HOMEPAGE=http://siag.nu/
PKGPATH=misc/siag
DESCRIPTION=Siag Office is a tightly integrated, free office package.
DESCRIPTION=
DESCRIPTION=egon:        Egon Animator, presentation generator, similar to MS 
PowerPoint
DESCRIPTION=gvu:         Postscript previewer
DESCRIPTION=pw:  Pathetic Writer, text processor, similar to MS Word (well... 
:-)
DESCRIPTION=siag:        Scheme In A Grid, spreadsheet, similar to MS Excel
DESCRIPTION=tsiag:       Curses-based version of siag
DESCRIPTION=xedplus: Lightweight text editor which can easily be configured away
DESCRIPTION=xfiler:      File manager
DESCRIPTION=
DESCRIPTION=Homepage:
DESCRIPTION=http://siag.nu/


$

-- 
Best regards, Aleksey Cheusov.


Home | Main Index | Thread Index | Old Index