summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pkg_add.1
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-02-20 19:13:52 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-02-20 19:13:52 +0000
commit1204e10bf6cb87fa424624663421df07db02559a (patch)
tree4d1bc01934d083ad6d33ffee5a546d3cfb99c2ce /usr.sbin/pkg_add/pkg_add.1
parent435c17a13e8f9d1812ab43949d16176ac349e7b5 (diff)
PKG_DESTDIR / -B support in pkg_add.
Diffstat (limited to 'usr.sbin/pkg_add/pkg_add.1')
-rw-r--r--usr.sbin/pkg_add/pkg_add.120
1 files changed, 18 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pkg_add.1 b/usr.sbin/pkg_add/pkg_add.1
index 93b81faf99a..d0aca48181a 100644
--- a/usr.sbin/pkg_add/pkg_add.1
+++ b/usr.sbin/pkg_add/pkg_add.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pkg_add.1,v 1.11 2004/01/28 22:12:01 espie Exp $
+.\" $OpenBSD: pkg_add.1,v 1.12 2004/02/20 19:13:51 espie Exp $
.\"
.\" FreeBSD install - a package for the installation and maintenance
.\" of non-core utilities.
@@ -26,6 +26,7 @@
.Sh SYNOPSIS
.Nm pkg_add
.Op Fl Inv
+.Op Fl B Ar pkg-destdir
.Op Fl f Ar keys
.Op Fl L Ar localbase
.Ar pkg-name Op Ar ...
@@ -120,6 +121,10 @@ If an installation script exists for a given package, do not execute it.
.It Fl n
Don't actually install a package, just report the steps that
would be taken if it was.
+.It Fl B Ar pkg-destdir
+Set
+.Ar pkg-destdir
+as the prefix to prepend to any object extracted from the package.
.It Fl f Ar keys
Force installation of the package.
.Ar keys
@@ -300,7 +305,7 @@ through
as it will safely record an interrupted install as
.Pa borked.n .
.Sh ENVIRONMENT
-.Bl -tag -width PKG_TMPDIR
+.Bl -tag -width PKG_DESTDIR
.It Ev PKG_PATH
If a given package name cannot be found,
the directories named by
@@ -315,6 +320,17 @@ period
.It Ev PKG_DBDIR
Where to register packages instead of
.Pa /var/db/pkg .
+.It Ev PKG_DESTDIR
+Value for
+.Ar pkg-destdir ,
+if no
+.Fl B
+option is specified;
+value passed to any
+.Cm INSTALL
+or
+.Cm REQUIRE
+script invoked from the package.
.It Ev PKG_TMPDIR
Temporary area where package information files will be extracted, instead of
.Pa /var/tmp .