summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/delete/pkg_delete.1
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1994-05-25 18:00:04 +0000
committerasami <asami@FreeBSD.org>1994-05-25 18:00:04 +0000
commit93b71d3919adb93943ea63bf72e610078b6d3270 (patch)
tree623ac33447f4f82558dea7d7cb6bab8078024ec5 /usr.sbin/pkg_install/delete/pkg_delete.1
parent2469c867a164210ce96143517059f21db7f1fd17 (diff)
downloadFreeBSD-src-93b71d3919adb93943ea63bf72e610078b6d3270.zip
FreeBSD-src-93b71d3919adb93943ea63bf72e610078b6d3270.tar.gz
The environment variable PKG_PREFIX is set to the first @cwd command
in the packing list, or the argument to -p if it is specified, before the requirements/installation/deinstallation scripts are called. This enables the scripts to be written to work on the final installation destination, even if the user uses -p to override the package's default.
Diffstat (limited to 'usr.sbin/pkg_install/delete/pkg_delete.1')
-rw-r--r--usr.sbin/pkg_install/delete/pkg_delete.114
1 files changed, 14 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/delete/pkg_delete.1 b/usr.sbin/pkg_install/delete/pkg_delete.1
index e5a9454..cde1ba6 100644
--- a/usr.sbin/pkg_install/delete/pkg_delete.1
+++ b/usr.sbin/pkg_install/delete/pkg_delete.1
@@ -99,6 +99,20 @@ is a keyword denoting that this is a deinstallation. Passing the keyword
lets you potentially write only one program/script that handles all
aspects of installation and deletion.
.PP
+All scripts are called with the environment variable
+.B PKG_PREFIX
+set to the installation prefix (see the
+.B -p
+option above). This allows a package author to write a script
+that reliably performs some action on the directory where the package
+is installed, even if the user might have changed it by
+.B -p
+when
+.B pkg_add
+or
+.B pkg_delete
+is run.
+.PP
.SH BUGS
Sure to be some.
.SH "SEE ALSO"
OpenPOWER on IntegriCloud