]>
Commit | Line | Data |
---|---|---|
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 | |
23 | * | |
be462ae7 | 24 | * $Id: config.h 3354 2007-04-03 09:21:31Z nenolod $ |
212380e3 AC |
25 | */ |
26 | ||
27 | #ifndef INCLUDED_config_h | |
28 | #define INCLUDED_config_h | |
29 | ||
30 | #include "setup.h" | |
31 | ||
32 | /* | |
33 | * Directory paths and filenames for UNIX systems. | |
34 | * IRCD_PREFIX is set using ./configure --prefix, see INSTALL. | |
35 | * The other defaults should be fine. | |
36 | * | |
37 | * NOTE: CHANGING THESE WILL NOT ALTER THE DIRECTORY THAT FILES WILL | |
38 | * BE INSTALLED TO. IF YOU CHANGE THESE, DO NOT USE MAKE INSTALL, | |
39 | * BUT COPY THE FILES MANUALLY TO WHERE YOU WANT THEM. | |
40 | * | |
41 | * IRCD_PREFIX = prefix for all directories, | |
42 | * DPATH = root directory of installation, | |
43 | * BINPATH = directory for binary files, | |
44 | * ETCPATH = directory for configuration files, | |
45 | * LOGPATH = directory for logfiles, | |
46 | * MODPATH = directory for modules, | |
47 | * AUTOMODPATH = directory for autoloaded modules | |
48 | */ | |
49 | ||
50 | /* dirs */ | |
51 | #define DPATH IRCD_PREFIX | |
52 | #define BINPATH IRCD_PREFIX "/bin/" | |
be462ae7 JT |
53 | #define MODPATH MODULE_DIR |
54 | #define AUTOMODPATH MODULE_DIR "/autoload/" | |
55 | #define ETCPATH ETC_DIR | |
56 | #define LOGPATH LOG_DIR | |
57 | #define UHPATH HELP_DIR "/users" | |
58 | #define HPATH HELP_DIR "/opers" | |
212380e3 AC |
59 | |
60 | /* files */ | |
d610d3f3 | 61 | #define SPATH BINPATH "/" PROGRAM_PREFIX "charybdis" /* ircd executable */ |
bac8c482 AC |
62 | #define CPATH ETCPATH "/ircd.conf" /* ircd.conf file */ |
63 | #define MPATH ETCPATH "/ircd.motd" /* MOTD file */ | |
64 | #define LPATH LOGPATH "/ircd.log" /* ircd logfile */ | |
65 | #define PPATH PKGRUNDIR "/ircd.pid" /* pid file */ | |
66 | #define OPATH ETCPATH "/opers.motd" /* oper MOTD file */ | |
67 | #define DBPATH PKGLOCALSTATEDIR "/ban.db" /* bandb file */ | |
212380e3 AC |
68 | |
69 | /* IGNORE_BOGUS_TS | |
70 | * Ignore bogus timestamps from other servers. Yes this will desync | |
71 | * the network, but it will allow chanops to resync with a valid non TS 0 | |
72 | * | |
73 | * This should be enabled network wide, or not at all. | |
74 | */ | |
75 | #undef IGNORE_BOGUS_TS | |
76 | ||
be462ae7 | 77 | /* HANGONGOODLINK and HANGONRETRYDELAY |
212380e3 AC |
78 | * Often net breaks for a short time and it's useful to try to |
79 | * establishing the same connection again faster than CONNECTFREQUENCY | |
80 | * would allow. But, to keep trying on bad connection, we require | |
81 | * that connection has been open for certain minimum time | |
82 | * (HANGONGOODLINK) and we give the net few seconds to steady | |
83 | * (HANGONRETRYDELAY). This latter has to be long enough that the | |
84 | * other end of the connection has time to notice it broke too. | |
85 | * 1997/09/18 recommended values by ThemBones for modern EFnet | |
86 | */ | |
87 | #define HANGONRETRYDELAY 60 /* Recommended value: 30-60 seconds */ | |
88 | #define HANGONGOODLINK 3600 /* Recommended value: 30-60 minutes */ | |
89 | ||
90 | /* KILLCHASETIMELIMIT - | |
91 | * Max time from the nickname change that still causes KILL | |
92 | * automatically to switch for the current nick of that user. (seconds) | |
93 | */ | |
94 | #define KILLCHASETIMELIMIT 90 /* Recommended value: 90 */ | |
95 | ||
96 | /* RATBOX_SOMAXCONN | |
97 | * Use SOMAXCONN if OS has it, otherwise use this value for the | |
98 | * listen(); backlog. 5 for AIX/SUNOS, 25 for other OSs. | |
99 | */ | |
100 | #define RATBOX_SOMAXCONN 25 | |
101 | ||
fddc5ee4 JT |
102 | /* MAX_BUFFER |
103 | * The amount of fds to reserve for clients exempt from limits | |
104 | * and dns lookups. | |
105 | */ | |
106 | #define MAX_BUFFER 60 | |
107 | ||
212380e3 AC |
108 | /* ---------------------------------------------------------------- |
109 | * STOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOPSTOP | |
110 | * ---------------------------------------------------------------- | |
111 | * The options below this line should NOT be modified. | |
112 | * ---------------------------------------------------------------- | |
113 | */ | |
114 | ||
212380e3 AC |
115 | #define CONFIG_RATBOX_LEVEL_2 |
116 | ||
117 | #include "defaults.h" | |
118 | #endif /* INCLUDED_config_h */ |