diff options
Diffstat (limited to 'usr.sbin/pkg_install/updating/pathnames.h')
-rw-r--r-- | usr.sbin/pkg_install/updating/pathnames.h | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/usr.sbin/pkg_install/updating/pathnames.h b/usr.sbin/pkg_install/updating/pathnames.h index d5ec1a0..7eed1b4 100644 --- a/usr.sbin/pkg_install/updating/pathnames.h +++ b/usr.sbin/pkg_install/updating/pathnames.h @@ -10,19 +10,8 @@ * */ -/* Copy from ../version/version.h */ - -/* Where the ports lives by default */ -#define DEF_PORTS_DIR "/usr/ports/UPDATING" -/* just in case we change the environment variable name */ -#define PORTSDIR "PORTSDIR" -/* macro to get name of directory where we put logging information */ +/* Where the updating file lives by default */ +#define DEF_UPDATING "/usr/ports/UPDATING" +/* macro to define location of the UPDATING file */ #define UPDATING (getenv(PORTSDIR) ? strcat(getenv(PORTSDIR), \ - "/UPDATING") : 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 */ -#define PKG_DBDIR "PKG_DBDIR" -/* macro to get name of directory where we put logging information */ -#define LOG_DIR (getenv(PKG_DBDIR) ? getenv(PKG_DBDIR) : DEF_LOG_DIR) + "/UPDATING") : DEF_UPDATING) |