]> jfr.im git - solanum.git/blame - include/config.h
Move module description headers to the top
[solanum.git] / include / config.h
CommitLineData
212380e3
AC
1/*
2 * ircd-ratbox: A slightly useful ircd.
3 * config.h: The ircd compile-time-configurable header.
4 *
5 * Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
6 * Copyright (C) 1996-2002 Hybrid Development Team
7 * Copyright (C) 2002-2004 ircd-ratbox development team
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 * USA
212380e3
AC
23 */
24
25#ifndef INCLUDED_config_h
26#define INCLUDED_config_h
27
28#include "setup.h"
29
55abcbb2 30/*
212380e3
AC
31 * Directory paths and filenames for UNIX systems.
32 * IRCD_PREFIX is set using ./configure --prefix, see INSTALL.
33 * The other defaults should be fine.
34 *
35 * NOTE: CHANGING THESE WILL NOT ALTER THE DIRECTORY THAT FILES WILL
36 * BE INSTALLED TO. IF YOU CHANGE THESE, DO NOT USE MAKE INSTALL,
37 * BUT COPY THE FILES MANUALLY TO WHERE YOU WANT THEM.
38 *
39 * IRCD_PREFIX = prefix for all directories,
40 * DPATH = root directory of installation,
41 * BINPATH = directory for binary files,
42 * ETCPATH = directory for configuration files,
43 * LOGPATH = directory for logfiles,
44 * MODPATH = directory for modules,
45 * AUTOMODPATH = directory for autoloaded modules
46 */
47
48/* dirs */
49#define DPATH IRCD_PREFIX
50#define BINPATH IRCD_PREFIX "/bin/"
212380e3
AC
51#define MODPATH MODULE_DIR
52#define AUTOMODPATH MODULE_DIR "/autoload/"
55abcbb2 53#define ETCPATH ETC_DIR
212380e3
AC
54#define LOGPATH LOG_DIR
55#define UHPATH HELP_DIR "/users"
56#define HPATH HELP_DIR "/opers"
57
58/* files */
d610d3f3 59#define SPATH BINPATH "/" PROGRAM_PREFIX "charybdis" /* ircd executable */
212380e3 60#define CPATH ETCPATH "/ircd.conf" /* ircd.conf file */
212380e3
AC
61#define MPATH ETCPATH "/ircd.motd" /* MOTD file */
62#define LPATH LOGPATH "/ircd.log" /* ircd logfile */
c74836dc 63#define PPATH PKGRUNDIR "/ircd.pid" /* pid file */
212380e3 64#define OPATH ETCPATH "/opers.motd" /* oper MOTD file */
c74836dc 65#define DBPATH PKGLOCALSTATEDIR "/ban.db" /* bandb file */
212380e3
AC
66
67/* IGNORE_BOGUS_TS
68 * Ignore bogus timestamps from other servers. Yes this will desync
69 * the network, but it will allow chanops to resync with a valid non TS 0
70 *
71 * This should be enabled network wide, or not at all.
72 */
73#undef IGNORE_BOGUS_TS
74
212380e3
AC
75/* HANGONGOODLINK and HANGONRETRYDELAY
76 * Often net breaks for a short time and it's useful to try to
77 * establishing the same connection again faster than CONNECTFREQUENCY
78 * would allow. But, to keep trying on bad connection, we require
79 * that connection has been open for certain minimum time
80 * (HANGONGOODLINK) and we give the net few seconds to steady
81 * (HANGONRETRYDELAY). This latter has to be long enough that the
82 * other end of the connection has time to notice it broke too.
83 * 1997/09/18 recommended values by ThemBones for modern EFnet
84 */
85#define HANGONRETRYDELAY 60 /* Recommended value: 30-60 seconds */
86#define HANGONGOODLINK 3600 /* Recommended value: 30-60 minutes */
87
88/* KILLCHASETIMELIMIT -
89 * Max time from the nickname change that still causes KILL
90 * automatically to switch for the current nick of that user. (seconds)
91 */
92#define KILLCHASETIMELIMIT 90 /* Recommended value: 90 */
93
638d2862 94/* CHARYBDIS_SOMAXCONN
55abcbb2 95 * Use SOMAXCONN if OS has it, otherwise use this value for the
212380e3
AC
96 * listen(); backlog. 5 for AIX/SUNOS, 25 for other OSs.
97 */
638d2862 98#define CHARYBDIS_SOMAXCONN 25
212380e3 99
fddc5ee4
JT
100/* MAX_BUFFER
101 * The amount of fds to reserve for clients exempt from limits
102 * and dns lookups.
103 */
104#define MAX_BUFFER 60
105
212380e3
AC
106/* ----------------------------------------------------------------
107 * STOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOP
108 * ----------------------------------------------------------------
109 * The options below this line should NOT be modified.
110 * ----------------------------------------------------------------
111 */
112
638d2862 113#define CONFIG_CHARYBDIS_LEVEL_2
212380e3
AC
114
115#include "defaults.h"
116#endif /* INCLUDED_config_h */