diff options
author | jlam <jlam@pkgsrc.org> | 2005-02-04 09:10:13 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-02-04 09:10:13 +0000 |
commit | cb184155ea5af10df48c35273b3651920d9be8a7 (patch) | |
tree | df2d36a484c7d28e736c190735e7552bd6610240 /pkgtools/pkg_install/files/add/pkg_add.1 | |
parent | d8c54367d664fcfdc8a1667a18c77c8af4a8e620 (diff) | |
download | pkgsrc-cb184155ea5af10df48c35273b3651920d9be8a7.tar.gz |
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}.
Diffstat (limited to 'pkgtools/pkg_install/files/add/pkg_add.1')
-rw-r--r-- | pkgtools/pkg_install/files/add/pkg_add.1 | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/pkgtools/pkg_install/files/add/pkg_add.1 b/pkgtools/pkg_install/files/add/pkg_add.1 index 82d412ce6e4..1a204acee75 100644 --- a/pkgtools/pkg_install/files/add/pkg_add.1 +++ b/pkgtools/pkg_install/files/add/pkg_add.1 @@ -1,4 +1,4 @@ -.\" $NetBSD: pkg_add.1,v 1.11 2005/02/04 01:19:03 jlam Exp $ +.\" $NetBSD: pkg_add.1,v 1.12 2005/02/04 09:10:13 jlam Exp $ .\" .\" FreeBSD install - a package for the installation and maintenance .\" of non-core utilities. @@ -17,7 +17,7 @@ .\" .\" @(#)pkg_add.1 .\" -.Dd December 10, 2004 +.Dd February 4, 2005 .Dt PKG_ADD 1 .Os .Sh NAME @@ -514,6 +514,14 @@ is installed, even if the user might change it with the .Fl p flag to .Cm pkg_add . +The scripts are also called with the +.Ev PKG_METADATA_DIR +environment variable set to the location of the +.Ar +* +meta-data files, and with the +.Ev PKG_REFCOUNT_DBDIR +environment variable set to the location of the package reference counts +database directory. .Sh ENVIRONMENT .Bl -tag -width PKG_TMPDIR .It Ev LOCALBASE @@ -543,6 +551,12 @@ Each entry consists of a directory name or URL. The current directory may be indicated implicitly by an empty directory name, or explicitly by a single period. FTP URLs may not end with a slash. +.It Ev PKG_REFCOUNT_DBDIR +Location of the package reference counts database directory. +The default location is the path to the package database directory with +.Do .refcount Dc +appended to the path, e.g. +.Pa /var/db/pkg.refcount . .It Ev PKG_TMPDIR Staging directory for installing packages, defaults to /var/tmp. Set to directory with lots of free disk if you run out of |