diff options
author | jkh <jkh@FreeBSD.org> | 1995-04-19 14:02:01 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-04-19 14:02:01 +0000 |
commit | 496b8887e48a335e5e33705160dc24bae20631d5 (patch) | |
tree | 3b42c69766f04e0b864e2304219ca415145e0c76 /usr.sbin/pkg_install/lib | |
parent | 0ff5903c59102c69837dc4317ea80fe6d8a12450 (diff) | |
download | FreeBSD-src-496b8887e48a335e5e33705160dc24bae20631d5.zip FreeBSD-src-496b8887e48a335e5e33705160dc24bae20631d5.tar.gz |
Add support for the ${PKG_DBDIR} environment variable. /var/db/pkg is the
default, and probably not something you'd ever change, but now it's
possible to do so for local/custom installations.
Diffstat (limited to 'usr.sbin/pkg_install/lib')
-rw-r--r-- | usr.sbin/pkg_install/lib/lib.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/lib/lib.h b/usr.sbin/pkg_install/lib/lib.h index abcfed7..80d69f2 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.11 1994/11/17 10:51:46 jkh Exp $ */ +/* $Id: lib.h,v 1.12 1994/12/06 00:51:49 jkh Exp $ */ /* * FreeBSD install - a package for the installation and maintainance @@ -56,8 +56,10 @@ /* Usually "rm", but often "echo" during debugging! */ #define RMDIR_CMD "rmdir" -/* Where we put logging information */ -#define LOG_DIR "/var/db/pkg" +/* Where we put logging information by default, else ${PKG_DBDIR} if set */ +#define DEF_LOG_DIR "/var/db/pkg" +/* just in case we change the environment variable name */ +#define PKG_DBDIR "PKG_DBDIR" /* The names of our "special" files */ #define CONTENTS_FNAME "+CONTENTS" |