pathnames.h revision 173295
1/*- 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <beat@chruetertee.ch> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Beat G�tzi 7 * ---------------------------------------------------------------------------- 8 * 9 * $FreeBSD: head/usr.sbin/pkg_install/updating/pathnames.h 173295 2007-11-02 22:46:30Z krion $ 10 * 11 */ 12 13/* Copy from ../version/version.h */ 14 15/* Where the ports lives by default */ 16#define DEF_PORTS_DIR "/usr/ports/UPDATING" 17/* just in case we change the environment variable name */ 18#define PORTSDIR "PORTSDIR" 19/* macro to get name of directory where we put logging information */ 20#define UPDATING (getenv(PORTSDIR) ? strcat(getenv(PORTSDIR), \ 21 "/UPDATING") : DEF_PORTS_DIR) 22 23/* Where we put logging information by default, else ${PKG_DBDIR} if set */ 24#define DEF_LOG_DIR "/var/db/pkg" 25/* just in case we change the environment variable name */ 26#define PKG_DBDIR "PKG_DBDIR" 27/* macro to get name of directory where we put logging information */ 28#define LOG_DIR (getenv(PKG_DBDIR) ? getenv(PKG_DBDIR) : DEF_LOG_DIR) 29