Subject: Re: pkg_info: patch to create summary file
To: Hubert Feyrer <hubert@feyrer.de>
From: Dieter Baron <dillo@danbala.tuwien.ac.at>
List: tech-pkg
Date: 04/11/2006 16:20:08
hi,

> >attached is a patch that adds an option to pkg_info to output summary
> >information about packages, as discussed a while back on this list.
> 
> Can you please post some example usage and output?

  [This is without Jeremy's patches for the new BUILD_INFO variables.]

$ pkg_info -X /usr/pkgsrc/packages/All/apache-1.3.34nb1.tgz # binary package
PKGNAME=apache-1.3.34nb1
DEPENDS=expat>=1.95.7
DEPENDS=libmm>=1.2.1
CONFLICTS=apache-*ssl-[0-9]*
CONFLICTS=apache6-[0-9]*
COMMENT=Apache HTTP (Web) server 
SIZE_PKG=5710849
PKG_OPTIONS=
PKGPATH=www/apache
OPSYS=NetBSD
OS_VERSION=3.0
MACHINE_ARCH=i386
LICENSE=
REQUIRES=/usr/lib/libc.so.12
REQUIRES=/usr/lib/libcrypt.so.0
REQUIRES=/usr/lib/libgcc_s.so.1
REQUIRES=/usr/lib/libm.so.0
REQUIRES=/usr/lib/libm387.so.0
REQUIRES=/usr/lib/libpthread.so.0
REQUIRES=/usr/local/lib/libexpat.so.0
REQUIRES=/usr/local/lib/libmm.so.14
FILE_SIZE=1534128
DESCRIPTION=The Apache HTTP Server Project is a collaborative software development
DESCRIPTION=effort aimed at creating a robust, commercial-grade, featureful, and
DESCRIPTION=freely-available source code implementation of an HTTP (Web) server.
DESCRIPTION=
DESCRIPTION=Homepage:
DESCRIPTION=http://httpd.apache.org/

$ pkg_info -X png # installed package
PKGNAME=png-1.2.8
COMMENT=Library for manipulating PNG images 
SIZE_PKG=691818
PKGPATH=graphics/png
OPSYS=NetBSD
OS_VERSION=3.0
MACHINE_ARCH=i386
LICENSE=
PROVIDES=/usr/local/lib/libpng.so.3
REQUIRES=/usr/lib/libm.so.0
REQUIRES=/usr/lib/libm387.so.0
REQUIRES=/usr/lib/libz.so.0
DESCRIPTION=Libpng was written as a companion to the PNG specification, as a
DESCRIPTION=way to reduce the amount of time and effort it takes to support
DESCRIPTION=the PNG file format in application programs.  Most users will not
DESCRIPTION=have to modify the library significantly; advanced users may want
DESCRIPTION=to modify it more.  The library was coded for both users.  All
DESCRIPTION=attempts were made to make it as complete as possible, while
DESCRIPTION=keeping the code easy to understand.  Currently, this library
DESCRIPTION=only supports C.  Support for other languages is being considered.
DESCRIPTION=
DESCRIPTION=Homepage:
DESCRIPTION=http://www.libpng.org/pub/png/

$

						yours,
						dillo