Subject: CVS commit: pkgsrc/pkgtools/pkg_install/files
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 02/04/2005 09:10:13
Module Name:	pkgsrc
Committed By:	jlam
Date:		Fri Feb  4 09:10:13 UTC 2005

Modified Files:
	pkgsrc/pkgtools/pkg_install/files/add: perform.c pkg_add.1 pkg_add.cat1
	pkgsrc/pkgtools/pkg_install/files/delete: perform.c pkg_delete.1
	    pkg_delete.cat1
	pkgsrc/pkgtools/pkg_install/files/lib: file.c lib.h pkgdb.c version.h

Log Message:
Update pkgtools/pkg_install to 20050204 (latest release from the HEAD
branch of src).  Changes from version 20050106:

  Teach pkg_add(1) and pkg_delete(1) to pass PKG_METADATA_DIR and
  PKG_REFCOUNT_DBDIR in the environment when running the +* scripts.
  PKG_METADATA_DIR is the location of the +* files after the package is
  registered.  PKG_REFCOUNT_DBDIR is the location of the reference counts
  database directory.  If PKG_REFCOUNT_DBDIR is left unset, then it
  defaults the the location of the package database directory with
  ".refcount" appended to the path, e.g. /var/db/pkg.refcount.

  pkgviews users should explicitly set PKG_REFCOUNT_DBDIR in the shell
  environment to ensure that all packages will use the same refcount
  database.

  These changes allow the +INSTALL and +DEINSTALL script to keep state
  in +* files within ${PKG_METADATA_DIR}, and to store reference counts
  in ${PKG_REFCOUNT_DBDIR} to handle usage of resources outside of
  ${LOCALBASE}.


To generate a diff of this commit:
cvs rdiff -r1.27 -r1.28 pkgsrc/pkgtools/pkg_install/files/add/perform.c
cvs rdiff -r1.11 -r1.12 pkgsrc/pkgtools/pkg_install/files/add/pkg_add.1
cvs rdiff -r1.12 -r1.13 pkgsrc/pkgtools/pkg_install/files/add/pkg_add.cat1
cvs rdiff -r1.13 -r1.14 pkgsrc/pkgtools/pkg_install/files/delete/perform.c
cvs rdiff -r1.9 -r1.10 pkgsrc/pkgtools/pkg_install/files/delete/pkg_delete.1
cvs rdiff -r1.10 -r1.11 \
    pkgsrc/pkgtools/pkg_install/files/delete/pkg_delete.cat1
cvs rdiff -r1.13 -r1.14 pkgsrc/pkgtools/pkg_install/files/lib/file.c
cvs rdiff -r1.15 -r1.16 pkgsrc/pkgtools/pkg_install/files/lib/lib.h
cvs rdiff -r1.22 -r1.23 pkgsrc/pkgtools/pkg_install/files/lib/pkgdb.c
cvs rdiff -r1.39 -r1.40 pkgsrc/pkgtools/pkg_install/files/lib/version.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.