]>
Commit | Line | Data |
---|---|---|
3bd189cb JR |
1 | # @(#)$Id: m4macros,v 1.3 2002/05/19 22:45:47 jv Exp $ |
2 | ||
3 | The following macros are included in "ircd.m4" for use with the m4 text | |
4 | preprocessor. "ircd.m4" is parsed before the IRC server conf file so they | |
5 | are all available for use with that. | |
6 | ||
7 | NOTE: The "ircd.m4" file is *ONLY* created by a "make install". | |
8 | ||
9 | VERSION - current version string as in patchlevel.h | |
10 | DEBUGMODE - if DEBUGMODE is define in config.h, is also defined for m4. | |
11 | HOSTNAME - taken from hostname(1) | |
12 | USER - username of person doing the "make install" | |
13 | PORT - default port number as in config.h | |
14 | PFREQ - default ping frequency as in config.h | |
15 | CFREQ - default connect frequency as in config.h | |
16 | MAXSENDQ - default max sendq as in config.h | |
17 | CL - use this to wrap a class number | |
18 | HOST - use this to wrap a hostname | |
19 | HOSTM - use this to wrap the hostmask number in N-lines | |
20 | ID - when wrapping the host field in an I-line, causes ident string return | |
21 | to be used instead of user supplised username. | |
22 | PASS - use this to wrap passwords in C/N/I/O lines | |
23 | PING - use this to wrap the ping value in Y-lines | |
24 | APORT - use this to wrap the port number in I-lines | |
25 | CPORT - use this to wrap the port number in C-lines | |
26 | SERV - use this to wrap server names | |
27 | ||
28 | You might use some of these as | |
29 | C:foo.bar.edu:PASS(boo):foo.bar.edu:CPORT(6667) | |
30 | I:ID(128.250.*)::ID(*.mu.oz.au):APORT(6667) | |
31 | ||
32 | In addition to these (rather weak macros), some more complete ones are | |
33 | defined which already perform the above. | |
34 | ||
35 | ADMIN - provide fields to it as you would an A-line | |
36 | ALLOW - provide fields to it as you would an N-line | |
37 | BAN - provide fields to it as you would an K-line | |
38 | CLASS - provide fields to it as you would an Y-line | |
39 | CLIENT - provide fields to it as you would an I-line | |
40 | RESTRICTED - provide fields to it as you would an i-line | |
41 | CONNECT - provide fields to it as you would an C-line | |
42 | ME - provide fields to it as you would an M-line | |
43 | HUB - first parameter is server you want to hub, second is optional and is | |
44 | a mask against which other servers introduced must match against. | |
45 | LEAF - works like HUB, except that the mask is matched against server names | |
46 | to check if the link should be dropped. | |
47 | SERVER - uses 6 fields, the first 4 as are found in an N-line, the last two | |
48 | should be as you would use in a C-line. It expands out to provide | |
49 | both a C and N line. | |
50 | EXCLUDEVERSION - provide fields to it as you would a V-line | |
51 | SERVICE - provide fields to it as you would an S-line | |
52 | EXTRAPORT - first parameter is the additional port you want to listen on, | |
53 | second is optional and is the IP to bind to. |