/*
* pathnames.h - define default paths for pppd
*
* Copyright (c) 1999-2024 Paul Mackerras. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO
* THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
* SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/*
* Paths are controlled by configure. Typically, one would pass the following options
* to configure:
* ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
*
* Note that if the prefix variable do control all the other directory variables, e.g
* sysconfdir is ${prefix}/etc. Setting prefix to /usr, you'll have to override
* sysconfdir with /etc to avoid installing config files into /usr/etc.
*
* In addition, there are three explicit variables that has overrides via configure:
* - PPPD_RUNTIME_DIR, set by --with-runtime-dir=<dir>
* - PPPD_LOGFILE_DIR, set by --with-logfile-dir=<dir>
* - PPPD_PLUGIN_DIR, set by --with-plugin-dir=<dir>
*/
#ifndef PPP_PATHNAMES_H
#define PPP_PATHNAMES_H
/*
* PPPD_RUNTIME_DIR is set by passing --with-runtime-dir=<path> via configure
* the default value set by configure when option is absent is ${localstatedir}/run/pppd
*/
#ifdef PPPD_RUNTIME_DIR
#define PPP_PATH_VARRUN PPPD_RUNTIME_DIR
#else
#define PPP_PATH_VARRUN _PATH_VARRUN
#endif
/*
* PPPD_LOGFILE_DIR is set by passing --with-logfile-dir=<path> via configure
* the default value set by configure when option is absent is ${localstatedir}/log/ppp
*/
#ifdef PPPD_LOGFILE_DIR
#define PPP_PATH_VARLOG PPPD_LOGFILE_DIR
#else
#define PPP_PATH_VARLOG _PATH_VARRUN "/log/ppp"
#endif
/*
* PPPD_PLUGIN_DIR is set by passing --with-plugin-dir=<path> via configure
* the default value set by configure when option is absent is ${libdir}/pppd/${version}
*/
#ifdef PPPD_PLUGIN_DIR
#define PPP_PATH_PLUGIN PPPD_PLUGIN_DIR
#endif /* PPPD_PLUGIN_DIR */