diff options
author | krion <krion@FreeBSD.org> | 2007-11-10 10:21:29 +0000 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2007-11-10 10:21:29 +0000 |
commit | 4a3708c0c32da7c70de4a7ece2f3e37951bf40cf (patch) | |
tree | 8cef66b06544157ad48f99b95a0d55a2ed2f3927 /usr.sbin/pkg_install/lib | |
parent | 2f2d57f5929b63ec4a6f50fe8e25891bda1f37b0 (diff) | |
download | FreeBSD-src-4a3708c0c32da7c70de4a7ece2f3e37951bf40cf.zip FreeBSD-src-4a3708c0c32da7c70de4a7ece2f3e37951bf40cf.tar.gz |
Some code cleanups, including removing of stale getopt argument and
hardcoded +CONTENTS defines.
PR: bin/117855
Submitted by: Beat Gaetzi <beat@chruetertee.ch>
MFC after: 14 days
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 14d4377..cfa95ca 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 */ |