Source-Changes archive

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

CVS commit: src/usr.sbin/pkg_install



Module Name:    src
Committed By:   jlam
Date:           Fri Feb  4 09:03:03 UTC 2005

Modified Files:
        src/usr.sbin/pkg_install/add: perform.c pkg_add.1
        src/usr.sbin/pkg_install/delete: perform.c pkg_delete.1
        src/usr.sbin/pkg_install/lib: file.c lib.h pkgdb.c version.h

Log Message:
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}.

Bump the pkg_install version to 20050204.


To generate a diff of this commit:
cvs rdiff -r1.105 -r1.106 src/usr.sbin/pkg_install/add/perform.c
cvs rdiff -r1.54 -r1.55 src/usr.sbin/pkg_install/add/pkg_add.1
cvs rdiff -r1.53 -r1.54 src/usr.sbin/pkg_install/delete/perform.c
cvs rdiff -r1.35 -r1.36 src/usr.sbin/pkg_install/delete/pkg_delete.1
cvs rdiff -r1.72 -r1.73 src/usr.sbin/pkg_install/lib/file.c
cvs rdiff -r1.73 -r1.74 src/usr.sbin/pkg_install/lib/lib.h
cvs rdiff -r1.19 -r1.20 src/usr.sbin/pkg_install/lib/pkgdb.c
cvs rdiff -r1.62 -r1.63 src/usr.sbin/pkg_install/lib/version.h

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




Home | Main Index | Thread Index | Old Index