From 93b71d3919adb93943ea63bf72e610078b6d3270 Mon Sep 17 00:00:00 2001 From: asami Date: Wed, 25 May 1994 18:00:04 +0000 Subject: 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. --- usr.sbin/pkg_install/lib/lib.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.sbin/pkg_install/lib') 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, -- cgit v1.1