ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/include/defaults.h
Revision: 897
Committed: Sat Nov 3 17:13:32 2007 UTC (16 years, 4 months ago) by db
Content type: text/x-chdr
Original Path: ircd-hybrid-7.2/include/defaults.h
File size: 5966 byte(s)
Log Message:
- Major cleanup of build system (Stu should review this)
  Basically move shared stuff like help messages modules to datadir
  Try to keep to the original layout under prefix if --datadir
  --sysconfdir --localstatedir are not given
- Make the example files have reasonable defaults, this bites me
  all the time anyway.


File Contents

# Content
1 /*
2 * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3 * defaults.h: The ircd defaults header for values and paths.
4 *
5 * Copyright (C) 2002 by the past and present ircd coders, and others.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 * USA
21 *
22 * $Id$
23 */
24
25 #ifndef INCLUDED_defaults_h
26 #define INCLUDED_defaults_h
27
28 /* Here are some default paths. Most except DPATH are
29 * configurable at runtime. */
30
31 /*
32 * Directory paths and filenames for UNIX systems.
33 * IRCD_PREFIX is set using ./configure --prefix, see INSTALL.
34 * The other defaults should be fine.
35 *
36 * NOTE: CHANGING THESE WILL NOT ALTER THE DIRECTORY THAT FILES WILL
37 * BE INSTALLED TO. IF YOU CHANGE THESE, DO NOT USE MAKE INSTALL,
38 * BUT COPY THE FILES MANUALLY TO WHERE YOU WANT THEM.
39 *
40 * IRCD_PREFIX = prefix for all directories
41 * DPATH = root directory of installation
42 * BINPATH = directory for binary files
43 * MSGPATH = directory for language 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/"
53 #ifdef IRCD_DATADIR
54 #define MSGPATH IRCD_DATADIR "/messages"
55 #define MODPATH IRCD_DATADIR "/modules/"
56 #define HPATH IRCD_DATADIR "/help/opers"
57 #define UHPATH IRCD_DATADIR "/help/users"
58 #else
59 #define MSGPATH IRCD_PREFIX "/messages/"
60 #define MODPATH IRCD_PREFIX "/modules/"
61 #define HPATH IRCD_PREFIX "/help/opers"
62 #define UHPATH IRCD_PREFIX "/help/users"
63 #endif
64 #define AUTOMODPATH MODPATH "/autoload/"
65 #ifdef IRCD_SYSCONFDIR
66 #define ETCPATH IRCD_SYSCONFDIR
67 #else
68 #define ETCPATH IRCD_PREFIX "/etc"
69 #endif
70 #ifdef IRCD_LOCALSTATEDIR
71 #define LOGPATH IRCD_LOCALSTATEDIR "/logs"
72 #else
73 #define LOGPATH IRCD_PREFIX "/logs"
74 #endif
75
76 /* files */
77 #define SPATH BINPATH "/ircd" /* ircd executable */
78 #define SLPATH BINPATH "/servlink" /* servlink executable */
79 #define CPATH ETCPATH "/ircd.conf" /* ircd.conf file */
80 #define KPATH ETCPATH "/kline.conf" /* kline file */
81 #define CRESVPATH ETCPATH "/cresv.conf" /* channel resvs file */
82 #define NRESVPATH ETCPATH "/nresv.conf" /* nick resvs file */
83 #define DLPATH ETCPATH "/dline.conf" /* dline file */
84 #define GPATH ETCPATH "/gline.conf" /* gline conffile */
85 #define XPATH ETCPATH "/xline.conf" /* xline file */
86 #define RXPATH ETCPATH "/rxline.conf"
87 #define RKPATH ETCPATH "/rkline.conf"
88 #define MPATH ETCPATH "/ircd.motd" /* MOTD file */
89 #define LPATH LOGPATH "/ircd.log" /* ircd logfile */
90 #define PPATH ETCPATH "/ircd.pid" /* pid file */
91 #define OPATH ETCPATH "/opers.motd" /* oper MOTD file */
92 #define LIPATH ETCPATH "/links.txt" /* cached links file */
93
94 /* this file is included to supply default
95 * values for things which are now configurable at runtime.
96 */
97
98 #define HANGONRETRYDELAY 60 /* Recommended value: 30-60 seconds */
99 #define HYBRID_SOMAXCONN 25
100 #define MAX_TDKLINE_TIME (24*60*10)
101 #define HANGONGOODLINK 3600 /* Recommended value: 30-60 minutes */
102
103 /* tests show that about 7 fds are not registered by fdlist.c, these
104 * include std* descriptors + some others (by OpenSSL etc.). Note this is
105 * intentionally too high, we don't want to eat fds up to the last one */
106 #define LEAKED_FDS 10
107 /* how many (privileged) clients can exceed max_clients */
108 #define MAX_BUFFER 60
109
110 #define MAXCLIENTS_MAX (hard_fdlimit - LEAKED_FDS - MAX_BUFFER)
111 #define MAXCLIENTS_MIN 32
112
113 /* class {} default values */
114 #define DEFAULT_SENDQ 9000000 /* default max SendQ */
115 #define PORTNUM 6667 /* default outgoing portnum */
116 #define DEFAULT_PINGFREQUENCY 120 /* Default ping frequency */
117 #define DEFAULT_CONNECTFREQUENCY 600 /* Default connect frequency */
118
119 #define WATCHSIZE_MIN 1
120 #define WATCHSIZE_DEFAULT 32
121 #define TS_MAX_DELTA_MIN 10 /* min value for ts_max_delta */
122 #define TS_MAX_DELTA_DEFAULT 600 /* default for ts_max_delta */
123 #define TS_WARN_DELTA_MIN 10 /* min value for ts_warn_delta */
124 #define TS_WARN_DELTA_DEFAULT 30 /* default for ts_warn_delta */
125
126 /* ServerInfo default values */
127 #define NETWORK_NAME_DEFAULT "EFnet" /* default for network_name */
128 #define NETWORK_DESC_DEFAULT "Eris Free Network" /* default for network_desc */
129
130 /* General defaults */
131 #define MAXIMUM_LINKS_DEFAULT 0 /* default for maximum_links */
132
133 #define CLIENT_FLOOD_DEFAULT 2560 /* default for client_flood */
134 #define CLIENT_FLOOD_MAX 8000
135 #define CLIENT_FLOOD_MIN 512
136
137 #define LINKS_DELAY_DEFAULT 300
138
139 #define MAX_TARGETS_DEFAULT 4 /* default for max_targets */
140
141 #define INIT_LOG_LEVEL L_NOTICE /* default for log_level */
142
143 #define CONNECTTIMEOUT 30 /* Recommended value: 30 */
144 #define IDENT_TIMEOUT 10
145
146 #define MIN_JOIN_LEAVE_TIME 60
147 #define MAX_JOIN_LEAVE_COUNT 25
148 #define OPER_SPAM_COUNTDOWN 5
149 #define JOIN_LEAVE_COUNT_EXPIRE_TIME 120
150
151 #define MIN_SPAM_NUM 5
152 #define MIN_SPAM_TIME 60
153
154 #endif /* INCLUDED_defaults_h */

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision