diff options
| author | Kirill Ponomarev <krion@FreeBSD.org> | 2007-11-10 10:21:29 +0000 |
|---|---|---|
| committer | Kirill Ponomarev <krion@FreeBSD.org> | 2007-11-10 10:21:29 +0000 |
| commit | 01ea2a88225771d58d58641582e066b897b3638c (patch) | |
| tree | 8cef66b06544157ad48f99b95a0d55a2ed2f3927 /usr.sbin/pkg_install/lib | |
| parent | 2cd24b447e19d6d3771d57fa83f397a81a0b6c5a (diff) | |
Notes
Diffstat (limited to 'usr.sbin/pkg_install/lib')
| -rw-r--r-- | usr.sbin/pkg_install/lib/lib.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/lib/lib.h b/usr.sbin/pkg_install/lib/lib.h index 14d43777b2ba3..cfa95cac0392b 100644 --- a/usr.sbin/pkg_install/lib/lib.h +++ b/usr.sbin/pkg_install/lib/lib.h @@ -57,6 +57,13 @@ /* Usually "rm", but often "echo" during debugging! */ #define RMDIR_CMD "/bin/rmdir" +/* Where the ports lives by default */ +#define DEF_PORTS_DIR "/usr/ports" +/* just in case we change the environment variable name */ +#define PORTSDIR "PORTSDIR" +/* macro to get name of directory where the ports lives */ +#define PORTS_DIR (getenv(PORTSDIR) ? getenv(PORTSDIR) : DEF_PORTS_DIR) + /* 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 */ |
