Bldcat
Build your own catalogs
If you have test packages that you have built for CSW or your very own packages that have dependencies to each other you may want to use pkgutil to install them. For that to work you need a catalog for your packages just like the ones CSW publishes.
There's now a simple perl script to parse your packages in a directory and build a catalog for them. The one argument is the directory to parse for *.pkg.gz files (default is the current directory). It creates two files: catalog and descriptions.
Note that to create a CSW catalog you need to follow the guidelines on how to name and version packages, see http://www.opencsw.org/standards/build#versioning.
$ bldcat
xv 3.10a,REV=2008.10.15 CSWxv xv-3.10a,REV=2008.10.15-SunOS5.8-sparc-CSW.pkg.gz d887c7aed0e849471467e4944d14c2eb 1877768 CSWcommon|CSWtiff|CSWpng|CSWjpeg|CSWzlib none
$ bldcat . > catalog
$ ls -l
-rw-r--r-- 1 bonivart csw 167 Oct 22 17:19 catalog
-rw-r--r-- 1 bonivart csw 167 Oct 22 17:19 descriptions
-rw-r--r-- 1 bonivart csw 1877768 Oct 22 17:19 xv-3.10a,REV=2008.10.15-SunOS5.8-sparc-CSW.pkg.gz
$ more catalog
xv 3.10a,REV=2008.10.15 CSWxv xv-3.10a,REV=2008.10.15-SunOS5.8-sparc-CSW.pkg.gz d887c7aed0e849471467e4944d14c2eb 1877768 CSWcommon|CSWtiff|CSWpng|CSWjpeg|CSWzlib none
The script is a part of the official pkgutil package.
page_revision: 2, last_edited: 1236448275|%e %b %Y, %H:%M %Z (%O ago)





