summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/lib
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/lib
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/lib')
-rw-r--r--usr.sbin/pkg_install/lib/lib.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/lib/lib.h b/usr.sbin/pkg_install/lib/lib.h
index 7acf8ed..54e8251 100644
--- a/usr.sbin/pkg_install/lib/lib.h
+++ b/usr.sbin/pkg_install/lib/lib.h
@@ -1,4 +1,4 @@
-/* $Id: lib.h,v 1.5 1994/04/05 14:08:46 jkh Exp $ */
+/* $Id: lib.h,v 1.6 1994/05/25 06:27:23 jkh Exp $ */
/*
* FreeBSD install - a package for the installation and maintainance
@@ -69,6 +69,8 @@
#define CMD_CHAR '@' /* prefix for extended PLIST cmd */
+/* The name of the "prefix" environment variable given to scripts */
+#define PKG_PREFIX_VNAME "PKG_PREFIX"
enum _plist_t {
PLIST_FILE, PLIST_CWD, PLIST_CMD, PLIST_CHMOD,
OpenPOWER on IntegriCloud