2007-01-25 06:40:21 +00:00
|
|
|
/*
|
|
|
|
* ircd-ratbox: A slightly useful ircd.
|
|
|
|
* config.h: The ircd compile-time-configurable header.
|
|
|
|
*
|
|
|
|
* Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
|
|
|
|
* Copyright (C) 1996-2002 Hybrid Development Team
|
|
|
|
* Copyright (C) 2002-2004 ircd-ratbox development team
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
* USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INCLUDED_config_h
|
|
|
|
#define INCLUDED_config_h
|
|
|
|
|
|
|
|
#include "setup.h"
|
|
|
|
|
2016-03-18 19:43:50 +00:00
|
|
|
/*
|
2007-01-25 06:40:21 +00:00
|
|
|
* Directory paths and filenames for UNIX systems.
|
|
|
|
* IRCD_PREFIX is set using ./configure --prefix, see INSTALL.
|
|
|
|
* The other defaults should be fine.
|
|
|
|
*
|
|
|
|
* NOTE: CHANGING THESE WILL NOT ALTER THE DIRECTORY THAT FILES WILL
|
|
|
|
* BE INSTALLED TO. IF YOU CHANGE THESE, DO NOT USE MAKE INSTALL,
|
|
|
|
* BUT COPY THE FILES MANUALLY TO WHERE YOU WANT THEM.
|
|
|
|
*
|
|
|
|
* IRCD_PREFIX = prefix for all directories,
|
|
|
|
* DPATH = root directory of installation,
|
|
|
|
* BINPATH = directory for binary files,
|
|
|
|
* ETCPATH = directory for configuration files,
|
|
|
|
* LOGPATH = directory for logfiles,
|
|
|
|
* MODPATH = directory for modules,
|
|
|
|
* AUTOMODPATH = directory for autoloaded modules
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* dirs */
|
|
|
|
#define DPATH IRCD_PREFIX
|
|
|
|
#define BINPATH IRCD_PREFIX "/bin/"
|
2008-01-04 17:33:36 +00:00
|
|
|
#define MODPATH MODULE_DIR
|
|
|
|
#define AUTOMODPATH MODULE_DIR "/autoload/"
|
2016-03-18 19:43:50 +00:00
|
|
|
#define ETCPATH ETC_DIR
|
2008-01-04 17:33:36 +00:00
|
|
|
#define LOGPATH LOG_DIR
|
|
|
|
#define UHPATH HELP_DIR "/users"
|
|
|
|
#define HPATH HELP_DIR "/opers"
|
2007-01-25 06:40:21 +00:00
|
|
|
|
|
|
|
/* files */
|
2016-01-06 08:00:12 +00:00
|
|
|
#define SPATH BINPATH "/" PROGRAM_PREFIX "charybdis" /* ircd executable */
|
2015-12-11 18:14:34 +00:00
|
|
|
#define CPATH ETCPATH "/ircd.conf" /* ircd.conf file */
|
|
|
|
#define MPATH ETCPATH "/ircd.motd" /* MOTD file */
|
|
|
|
#define LPATH LOGPATH "/ircd.log" /* ircd logfile */
|
|
|
|
#define PPATH PKGRUNDIR "/ircd.pid" /* pid file */
|
|
|
|
#define OPATH ETCPATH "/opers.motd" /* oper MOTD file */
|
|
|
|
#define DBPATH PKGLOCALSTATEDIR "/ban.db" /* bandb file */
|
2007-01-25 06:40:21 +00:00
|
|
|
|
2008-01-04 17:33:36 +00:00
|
|
|
/* HANGONGOODLINK and HANGONRETRYDELAY
|
2007-01-25 06:40:21 +00:00
|
|
|
* Often net breaks for a short time and it's useful to try to
|
|
|
|
* establishing the same connection again faster than CONNECTFREQUENCY
|
|
|
|
* would allow. But, to keep trying on bad connection, we require
|
|
|
|
* that connection has been open for certain minimum time
|
|
|
|
* (HANGONGOODLINK) and we give the net few seconds to steady
|
|
|
|
* (HANGONRETRYDELAY). This latter has to be long enough that the
|
|
|
|
* other end of the connection has time to notice it broke too.
|
|
|
|
*/
|
|
|
|
#define HANGONRETRYDELAY 60 /* Recommended value: 30-60 seconds */
|
|
|
|
#define HANGONGOODLINK 3600 /* Recommended value: 30-60 minutes */
|
|
|
|
|
|
|
|
/* KILLCHASETIMELIMIT -
|
|
|
|
* Max time from the nickname change that still causes KILL
|
|
|
|
* automatically to switch for the current nick of that user. (seconds)
|
|
|
|
*/
|
|
|
|
#define KILLCHASETIMELIMIT 90 /* Recommended value: 90 */
|
|
|
|
|
2016-03-07 11:01:31 +00:00
|
|
|
/* CHARYBDIS_SOMAXCONN
|
2016-03-18 19:43:50 +00:00
|
|
|
* Use SOMAXCONN if OS has it, otherwise use this value for the
|
2007-01-25 06:40:21 +00:00
|
|
|
* listen(); backlog. 5 for AIX/SUNOS, 25 for other OSs.
|
|
|
|
*/
|
2016-03-07 11:01:31 +00:00
|
|
|
#define CHARYBDIS_SOMAXCONN 25
|
2007-01-25 06:40:21 +00:00
|
|
|
|
2008-01-04 17:42:59 +00:00
|
|
|
/* MAX_BUFFER
|
|
|
|
* The amount of fds to reserve for clients exempt from limits
|
|
|
|
* and dns lookups.
|
|
|
|
*/
|
|
|
|
#define MAX_BUFFER 60
|
|
|
|
|
2007-01-25 06:40:21 +00:00
|
|
|
/* ----------------------------------------------------------------
|
|
|
|
* STOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOP
|
|
|
|
* ----------------------------------------------------------------
|
|
|
|
* The options below this line should NOT be modified.
|
|
|
|
* ----------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2016-03-07 11:01:31 +00:00
|
|
|
#define CONFIG_CHARYBDIS_LEVEL_2
|
2007-01-25 06:40:21 +00:00
|
|
|
|
|
|
|
#include "defaults.h"
|
|
|
|
#endif /* INCLUDED_config_h */
|